Class DrWebManager
java.lang.Object
ru.bitel.bgbilling.modules.drweb.server.bean.DrWebManager
public class DrWebManager
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description DrWebManager(java.sql.Connection con, ParameterMap moduleSetup, int moduleId) -
Method Summary
Modifier and Type Method Description voidactiveAgent(AgentAVD agent)voidblockAgent(AgentAVD agent, int monthCount)voidcheckMaxAgentCount(int cid)voiddeleteAgent(AgentAVD agent)voiddoChanges(AgentAVD agent)Переназначает тариф на сервере AVDESKintgetActualAgentCount(int cid)AgentAVDgetAgent(int id)java.util.List<AgentAVD>getAgentList(int cid)java.util.List<AgentAVD>getAgentList(java.util.Date date)java.util.List<AgentAVD>getAgentListAll()java.util.List<AgentAVD>getLockAgent()AgentAVDnewAgent(int contractId, int tariffId)voidprolongAgent(AgentAVD agent, java.util.Date dateTo)voidtoChangeTariff(AgentAVD agent, int nextTariffId)Назначает следующий тариф для агентаMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
DrWebManager
-
-
Method Details
-
newAgent
public AgentAVD newAgent(int contractId, int tariffId) throws ru.bitel.bgbilling.common.BGException- Throws:
ru.bitel.bgbilling.common.BGException
-
getAgentList
- Throws:
ru.bitel.bgbilling.common.BGException
-
getAgentListAll
- Throws:
ru.bitel.bgbilling.common.BGException
-
getAgent
- Throws:
ru.bitel.bgbilling.common.BGException
-
getAgentList
public java.util.List<AgentAVD> getAgentList(java.util.Date date) throws ru.bitel.bgbilling.common.BGException- Throws:
ru.bitel.bgbilling.common.BGException
-
getLockAgent
- Throws:
ru.bitel.bgbilling.common.BGException
-
prolongAgent
-
blockAgent
public void blockAgent(AgentAVD agent, int monthCount) throws ru.bitel.bgbilling.common.BGException- Throws:
ru.bitel.bgbilling.common.BGException
-
deleteAgent
- Throws:
ru.bitel.bgbilling.common.BGException
-
activeAgent
- Throws:
ru.bitel.bgbilling.common.BGException
-
toChangeTariff
public void toChangeTariff(AgentAVD agent, int nextTariffId) throws ru.bitel.bgbilling.common.BGExceptionНазначает следующий тариф для агента- Parameters:
agent-groupTitle-- Throws:
ru.bitel.bgbilling.common.BGException
-
doChanges
Переназначает тариф на сервере AVDESK- Parameters:
agent-groupTitle-- Throws:
ru.bitel.bgbilling.common.BGException
-
getActualAgentCount
public int getActualAgentCount(int cid) throws ru.bitel.bgbilling.common.BGException- Throws:
ru.bitel.bgbilling.common.BGException
-
checkMaxAgentCount
public void checkMaxAgentCount(int cid) throws ru.bitel.bgbilling.common.BGException- Throws:
ru.bitel.bgbilling.common.BGException
-