Class ContractTariffOptionActivateManager
java.lang.Object
ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
ru.bitel.bgbilling.kernel.tariff.option.server.bean.ContractTariffOptionActivateManager
- All Implemented Interfaces:
AutoCloseable
public class ContractTariffOptionActivateManager
extends ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
implements AutoCloseable
Менеджер по активации/деактивации тарифных опций на договоре.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activateOption
(TariffOptionService tariffOptionService, int userId, ContractTariffOptionData contractTariffOptionActivate) int
activateOptionWhithSum
(TariffOptionService tariffOptionService, int userId, ContractTariffOptionData contractTariffOptionActivate) int
activateOptionWhithSumAndPeriod
(TariffOptionService tariffOptionService, int userId, ContractTariffOptionData contractTariffOptionActivate) void
close()
void
deactivateOption
(int userId, int cid, int contractOptionId) Обычная деактивация опцииvoid
deleteOption
(int userId, int contractId, int contractOptionId, boolean customer) Обычная деактивация опцииprotected void
processTieException
(Tied.TieUnresolvedException ex, int contractId) void
reactivateOption
(int userId, int cid, int contractOptionId) boolean
tryDeactivateOption
(int userId, int cid, int contractOptionId, boolean checkDeactivated, boolean deactivateNow) Попытка деактивировать опциюboolean
tryDeleteOption
(int userId, int contractId, int contractOptionId, boolean customer) Попытка деактивировать опциюMethods inherited from class ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
error, error, error, getLogger, logError, logError
-
Constructor Details
-
ContractTariffOptionActivateManager
-
-
Method Details
-
activateOption
public void activateOption(TariffOptionService tariffOptionService, int userId, ContractTariffOptionData contractTariffOptionActivate) throws Exception, ru.bitel.bgbilling.common.BGMessageException - Throws:
Exception
ru.bitel.bgbilling.common.BGMessageException
-
activateOptionWhithSum
public int activateOptionWhithSum(TariffOptionService tariffOptionService, int userId, ContractTariffOptionData contractTariffOptionActivate) throws Exception, ru.bitel.bgbilling.common.BGMessageException - Throws:
Exception
ru.bitel.bgbilling.common.BGMessageException
-
activateOptionWhithSumAndPeriod
public int activateOptionWhithSumAndPeriod(TariffOptionService tariffOptionService, int userId, ContractTariffOptionData contractTariffOptionActivate) throws Exception, ru.bitel.bgbilling.common.BGMessageException - Throws:
Exception
ru.bitel.bgbilling.common.BGMessageException
-
processTieException
protected void processTieException(Tied.TieUnresolvedException ex, int contractId) throws ru.bitel.bgbilling.common.BGMessageException - Throws:
ru.bitel.bgbilling.common.BGMessageException
-
deactivateOption
Обычная деактивация опции- Parameters:
userId
-cid
-contractOptionId
-- Throws:
ru.bitel.bgbilling.common.BGException
Exception
-
tryDeactivateOption
public boolean tryDeactivateOption(int userId, int cid, int contractOptionId, boolean checkDeactivated, boolean deactivateNow) throws Exception Попытка деактивировать опцию- Parameters:
userId
-cid
-contractOptionId
-checkClosed
-- Returns:
- Throws:
ru.bitel.bgbilling.common.BGException
Exception
-
reactivateOption
- Throws:
Exception
-
getTieUtils
- Throws:
Exception
-
deleteOption
public void deleteOption(int userId, int contractId, int contractOptionId, boolean customer) throws Exception, ru.bitel.bgbilling.common.BGMessageException Обычная деактивация опции- Parameters:
userId
-contractId
-contractOptionId
-- Throws:
ru.bitel.bgbilling.common.BGException
Exception
ru.bitel.bgbilling.common.BGMessageException
-
tryDeleteOption
public boolean tryDeleteOption(int userId, int contractId, int contractOptionId, boolean customer) throws Exception, ru.bitel.bgbilling.common.BGMessageException Попытка деактивировать опцию- Parameters:
userId
-contractId
-contractOptionId
-customer
-- Returns:
- Throws:
ru.bitel.bgbilling.common.BGException
Exception
ru.bitel.bgbilling.common.BGMessageException
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-