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 void
activeAgent(AgentAVD agent)
void
blockAgent(AgentAVD agent, int monthCount)
void
checkMaxAgentCount(int cid)
void
deleteAgent(AgentAVD agent)
void
doChanges(AgentAVD agent)
Переназначает тариф на сервере AVDESKint
getActualAgentCount(int cid)
AgentAVD
getAgent(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()
AgentAVD
newAgent(int contractId, int tariffId)
void
prolongAgent(AgentAVD agent, java.util.Date dateTo)
void
toChangeTariff(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
-