Class ResourceDAO
java.lang.Object
ru.bgcrm.plugin.bgbilling.dao.BillingDAO
ru.bgcrm.plugin.bgbilling.proto.dao.BillingModuleDAO
ru.bgcrm.plugin.bgbilling.proto.dao.ResourceDAO
-
Field Summary
Fields inherited from class ru.bgcrm.plugin.bgbilling.proto.dao.BillingModuleDAO
moduleId
Fields inherited from class ru.bgcrm.plugin.bgbilling.dao.BillingDAO
dbInfo, jsonMapper, jsonTypeFactory, transferData, user
-
Constructor Summary
ConstructorDescriptionResourceDAO
(User user, String billingId, int moduleId) ResourceDAO
(User user, DBInfo dbInfo, int moduleId) -
Method Summary
Modifier and TypeMethodDescriptiongetFreeIpResourceRangeList
(Set<Integer> categoryIds, int range, int max) Возвращает список свободных IP адресов.getFreeVlan
(Set<Integer> vlanResourceCategoryIds, Date dateFrom, Date dateTo) Methods inherited from class ru.bgcrm.plugin.bgbilling.proto.dao.BillingModuleDAO
getModuleId, setModuleId
Methods inherited from class ru.bgcrm.plugin.bgbilling.dao.BillingDAO
doRequest, getDbInfo, getPage, getParameterId, getVersion, linesToString, readJsonValue, setPage
-
Constructor Details
-
ResourceDAO
-
ResourceDAO
-
-
Method Details
-
getFreeIpResourceRangeList
public List<IpResourceRange> getFreeIpResourceRangeList(Set<Integer> categoryIds, int range, int max) Возвращает список свободных IP адресов.- Parameters:
categoryIds
-range
-max
-- Returns:
-
getFreeVlan
-