Interface InetServService
public interface InetServService
-
Method Summary
Modifier and TypeMethodDescriptionintauthorizationRequest(int contractId, int servId, boolean accountingPeriodActivate, long timeout) byte[]inetGetIpFromParent(InetServ serv) voidinetOptionDelete(int id) inetOptionGet(int id) voidinetOptionMove(int newParentId, Set<Integer> ids) intvoidinetServDelete(int id, boolean force) Удаление сервиса договора по его ID.inetServGet(int inetServId) Получение сервиса (аккаунта) договора по его ID.voidinetServIsActive(InetServ inetServ) inetServList(int contractId) Deprecated.inetServList(int contractId, String orderBy) Получение списка сервисов определенного договора с возможностью сортировки списка.voidinetServMove(InetServ inetServ, int cidTo) inetServOptionList(int inetServId) inetServPasswordGenerate(int inetServTypeId) inetServRestrictionList(int inetServId) Deprecated.inetServRestrictionList(int contractId, int inetServId) voidinetServRestrictionListUpdate(int contractId, int inetServId, List<InetServRestriction> restrictionList) voidinetServRestrictionListUpdate(int inetServId, List<InetServRestriction> restrictionList) Deprecated.voidinetServSaReinit(int id) voidinetServStateModify(int inetServId, short state, int accessCode) inetServTree(int contractId) Получение дерева сервисов (аккаунтов) договора.voidinetServTypeDelete(int id) Удаление типа сервиса.inetServTypeGet(int id) Получение типа сервиса по его ID.Json с данными о интерфейсе и суперклассе обработчика IP протоколаПолучение списка типов сервиса.intinetServTypeUpdate(InetServType inetServType) Создание/обновление типа сервиса.intinetServUpdate(InetServ inetServ, List<InetServOption> optionList, boolean generateLogin, boolean generatePassword, long saWaitTimeout) Создание/обновление сервиса договора.inetServWithChildGet(int inetServId) voidinetServWrap(InetServ inetServ, int cidTo, Date date) ipResourceCategoryIds(int deviceId, int interfaceId, int serviceTypeId) voidsearchInetServ(InetServSearchParam searchParam, Page page) voidtrafficTypeDelete(int id) trafficTypeGet(int id) voidtrafficTypeLinkDelete(int id) trafficTypeLinkGet(int id) intintintvlanResourceCategoryId(int deviceId) Deprecated.vlanResourceCategoryIds(int deviceId)
-
Method Details
-
inetServTypeGet
Получение типа сервиса по его ID.- Parameters:
id- ID типа сервиса.- Returns:
- тип сервиса.
- Throws:
ru.bitel.bgbilling.common.BGException
-
inetServTypeList
Получение списка типов сервиса.- Returns:
- список типов сервиса.
- Throws:
ru.bitel.bgbilling.common.BGException
-
inetServTypeTitleList
- Throws:
ru.bitel.bgbilling.common.BGException
-
inetServTypeUpdate
Создание/обновление типа сервиса.- Parameters:
inetServType- обновляемый тип сервиса, если idinvalid input: '<'=0, то создается новый.- Returns:
- ID созданного/обновленного типа сервиса.
- Throws:
ru.bitel.bgbilling.common.BGException
-
inetServTypeDelete
void inetServTypeDelete(int id) throws ru.bitel.bgbilling.common.BGException Удаление типа сервиса. Если в БД есть сервисы данного типа, то будет брошен BGMessageException.- Parameters:
id- ID типа сервиса.- Throws:
ru.bitel.bgbilling.common.BGException
-
inetServTypeIpClass
Json с данными о интерфейсе и суперклассе обработчика IP протокола- Returns:
- Throws:
ru.bitel.bgbilling.common.BGException
-
inetServGet
Получение сервиса (аккаунта) договора по его ID.- Parameters:
inetServId- ID сервиса.- Returns:
- сервис договора.
- Throws:
ru.bitel.bgbilling.common.BGException
-
inetServWithChildGet
- Throws:
ru.bitel.bgbilling.common.BGException
-
inetServList
@RequestWrapper(className="ru.bitel.bgbilling.modules.inet.common.service.jaxws.InetServListOldRequest") @ResponseWrapper(className="ru.bitel.bgbilling.modules.inet.common.service.jaxws.InetServListOldResponse") @Deprecated List<InetServ> inetServList(int contractId) throws ru.bitel.bgbilling.common.BGException Deprecated.- Throws:
ru.bitel.bgbilling.common.BGException
-
inetServList
List<InetServ> inetServList(int contractId, String orderBy) throws ru.bitel.bgbilling.common.BGException Получение списка сервисов определенного договора с возможностью сортировки списка.- Parameters:
contractId- код договора.orderBy- строка с параметрами сортировки. Используется в sql-выражении order by по полям таблицы inet_serv_-MID-. Если сортировка не требуется, то в данный метод можно передать null.- Returns:
- список сервисов договора.
- Throws:
ru.bitel.bgbilling.common.BGException
-
inetServTree
Получение дерева сервисов (аккаунтов) договора.- Parameters:
contractId- ID договора- Returns:
- дерево сервисов договора, корень данного дерева - фиктивный сервис с ID=0.
- Throws:
ru.bitel.bgbilling.common.BGException
-
inetServUpdate
int inetServUpdate(InetServ inetServ, List<InetServOption> optionList, boolean generateLogin, boolean generatePassword, long saWaitTimeout) throws ru.bitel.bgbilling.common.BGException Создание/обновление сервиса договора.- Parameters:
inetServ- сервис (аккаунт) договора.optionList- список статических опций.generateLogin- нужно ли генерировать логин (или использовать тот, что в переданном объекте inetServ).generatePassword- нужно ли генерировать пароль (или использовать тот, что в переданном объекте inetServ).saWaitTimeout-- Returns:
- ID созданного/обновленного сервиса договора.
- Throws:
ru.bitel.bgbilling.common.BGException
-
inetServDelete
void inetServDelete(int id, boolean force) throws ru.bitel.bgbilling.common.BGException Удаление сервиса договора по его ID.- Parameters:
id- ID сервиса договора.force- если true - то принудительное удаление договора, без проверки на период и активные сессии.- Throws:
ru.bitel.bgbilling.common.BGException
-
inetServIsActive
- Throws:
ru.bitel.bgbilling.common.BGException
-
inetServStateModify
void inetServStateModify(int inetServId, short state, int accessCode) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
inetServLoginGenerate
- Throws:
ru.bitel.bgbilling.common.BGException
-
inetServPasswordGenerate
- Throws:
ru.bitel.bgbilling.common.BGException
-
inetServWrap
void inetServWrap(InetServ inetServ, int cidTo, Date date) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
inetServMove
- Throws:
ru.bitel.bgbilling.common.BGException
-
inetOptionGet
- Throws:
ru.bitel.bgbilling.common.BGException
-
inetOptionList
- Throws:
ru.bitel.bgbilling.common.BGException
-
inetOptionTree
- Throws:
ru.bitel.bgbilling.common.BGException
-
inetOptionUpdate
- Throws:
ru.bitel.bgbilling.common.BGException
-
inetOptionDelete
void inetOptionDelete(int id) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
inetOptionMove
- Throws:
ru.bitel.bgbilling.common.BGException
-
trafficTypeGet
- Throws:
ru.bitel.bgbilling.common.BGException
-
trafficTypeList
- Throws:
ru.bitel.bgbilling.common.BGException
-
trafficTypeUpdate
- Throws:
ru.bitel.bgbilling.common.BGException
-
trafficTypeDelete
void trafficTypeDelete(int id) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
trafficTypeLinkGet
- Throws:
ru.bitel.bgbilling.common.BGException
-
trafficTypeLinkList
- Throws:
ru.bitel.bgbilling.common.BGException
-
trafficTypeLinkUpdate
- Throws:
ru.bitel.bgbilling.common.BGException
-
trafficTypeLinkDelete
void trafficTypeLinkDelete(int id) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
inetServOptionList
List<InetServOption> inetServOptionList(int inetServId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
inetServRestrictionList
@RequestWrapper(className="ru.bitel.bgbilling.modules.inet.common.service.jaxws.InetServRestrictionListOldRequest") @ResponseWrapper(className="ru.bitel.bgbilling.modules.inet.common.service.jaxws.InetServRestrictionListOldResponse") @Deprecated List<InetServRestriction> inetServRestrictionList(int inetServId) throws ru.bitel.bgbilling.common.BGException Deprecated.- Throws:
ru.bitel.bgbilling.common.BGException
-
inetServRestrictionList
List<InetServRestriction> inetServRestrictionList(int contractId, int inetServId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
inetServRestrictionListUpdate
@RequestWrapper(className="ru.bitel.bgbilling.modules.inet.common.service.jaxws.InetServRestrictionListUpdateOldRequest") @ResponseWrapper(className="ru.bitel.bgbilling.modules.inet.common.service.jaxws.InetServRestrictionListUpdateOldResponse") @Deprecated void inetServRestrictionListUpdate(int inetServId, List<InetServRestriction> restrictionList) throws ru.bitel.bgbilling.common.BGException Deprecated.- Throws:
ru.bitel.bgbilling.common.BGException
-
inetServRestrictionListUpdate
void inetServRestrictionListUpdate(int contractId, int inetServId, List<InetServRestriction> restrictionList) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
vlanResourceCategoryId
Deprecated.- Throws:
ru.bitel.bgbilling.common.BGException
-
vlanResourceCategoryIds
- Throws:
ru.bitel.bgbilling.common.BGException
-
ipResourceCategoryIds
List<Integer> ipResourceCategoryIds(int deviceId, int interfaceId, int serviceTypeId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
searchInetServ
SearchResult<InetServ> searchInetServ(InetServSearchParam searchParam, Page page) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
inetServSaReinit
void inetServSaReinit(int id) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
ipResourceLinkCheck
- Throws:
ru.bitel.bgbilling.common.BGException
-
ipResourceLinkSet
void ipResourceLinkSet() throws ru.bitel.bgbilling.common.BGException- Throws:
ru.bitel.bgbilling.common.BGException
-
inetGetIpFromParent
- Throws:
ru.bitel.bgbilling.common.BGException
-
authorizationRequest
int authorizationRequest(int contractId, int servId, boolean accountingPeriodActivate, long timeout) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
invalid input: 'instead'