Class DispatchUtils
java.lang.Object
ru.bitel.bgbilling.kernel.container.service.server.AbstractService
ru.bitel.bgbilling.plugins.dispatch.server.utils.DispatchUtils
public final class DispatchUtils
extends ru.bitel.bgbilling.kernel.container.service.server.AbstractService
- 
Field Summary
Fields inherited from class ru.bitel.bgbilling.kernel.container.service.server.AbstractService
context, moduleId, userId - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiongetContactsFromContractParameters(int contractId, Dispatch dispatch, Connection con) Возвращает список контактов из параметров договора, взависимости от типа контактов в подписке или пустой список, если контактов в параметрах не оказалосьstatic intgetContactTypeIdOfContact(Dispatch dispatch, Connection con) Возвращает id типа контактов для подпискиstatic intgetContactTypePid(Dispatch dispatch, Connection con) Methods inherited from class ru.bitel.bgbilling.kernel.container.service.server.AbstractService
getConnection, getConnectionSet, getLogger, getModuleSetup, getSetup, getSlaveConnection, getTrashConnection, getUserConfig, resetModuleSetup 
- 
Constructor Details
- 
DispatchUtils
public DispatchUtils() 
 - 
 - 
Method Details
- 
getContactsFromContractParameters
public static List<Contact> getContactsFromContractParameters(int contractId, Dispatch dispatch, Connection con) throws ru.bitel.bgbilling.common.BGException Возвращает список контактов из параметров договора, взависимости от типа контактов в подписке или пустой список, если контактов в параметрах не оказалось- Parameters:
 contractId-dispatch-- Returns:
 - Throws:
 ru.bitel.bgbilling.common.BGException
 - 
getContactTypeIdOfContact
public static int getContactTypeIdOfContact(Dispatch dispatch, Connection con) throws ru.bitel.bgbilling.common.BGException Возвращает id типа контактов для подписки- Throws:
 ru.bitel.bgbilling.common.BGException
 - 
getContactTypePid
public static int getContactTypePid(Dispatch dispatch, Connection con) throws ru.bitel.bgbilling.common.BGException - Throws:
 ru.bitel.bgbilling.common.BGException
 
 -