public final class LimitManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
LimitManager.UserLimitMove |
Modifier and Type | Field and Description |
---|---|
static java.lang.Object |
limitMutex
чтобы при одновременном событии восстановления лимита по сроку и по
оплате лимит не изменился два раза
|
static int |
VPAY_EXPIRED |
static int |
VPAY_NOT_PAYOFFED |
static int |
VPAY_PARTIAL_PAYOFFED |
static int |
VPAY_PAYOFFED |
Constructor and Description |
---|
LimitManager(java.sql.Connection con) |
Modifier and Type | Method and Description |
---|---|
int |
addMoveTask(LimitChangeTask task) |
void |
cancelMoveTask(java.util.List<java.lang.Integer> taskIds) |
static void |
clientPaymentEvent(java.sql.Connection con,
PaymentEvent event)
Установка понижений лимита оплаченными по фа.
|
void |
deleteMoveTaskAndLog(int taskId,
int contractId,
int userId)
Отмена задачи, очистка пользовательской статистики и логов
|
void |
executeRestoreLimitTask(java.util.Calendar now,
ContractDao contractDao,
java.lang.String comment) |
ContractLimitParameters |
getContractLimitParameters(Setup setup,
Contract contract)
Deprecated.
|
ContractLimitParameters |
getContractLimitParameters(Setup setup,
Contract contract) |
java.util.List<LimitChangeTask> |
getContractMoveTasks(int contractId) |
java.util.List<LimitChangeTask> |
getFullTaskList() |
java.util.List<LimitManager.UserLimitMove> |
getUserLimitMove(int cid,
java.util.Calendar date1,
java.util.Calendar date2) |
java.util.List<LimitManager.UserLimitMove> |
getUserLimitMove(int cid,
int yy,
int mm) |
boolean |
initRestoreLimitTask(java.util.Calendar date) |
static java.util.List<ContractLimitParameters> |
load(Setup setup) |
void |
lowLimit(int cid,
java.math.BigDecimal sum,
int days)
Временное понижение лимита.
|
void |
searchContractLimitAvto(SearchResult<ContractLimitAvto> searchResult,
int contractId,
java.lang.String status) |
void |
setLimitManageMode(int uid,
int cid,
int mode) |
void |
updateContractLimit(int userId,
java.math.BigDecimal limitValue,
int contractId,
java.lang.String comment,
int days) |
public static final int VPAY_NOT_PAYOFFED
public static final int VPAY_PARTIAL_PAYOFFED
public static final int VPAY_PAYOFFED
public static final int VPAY_EXPIRED
public static final java.lang.Object limitMutex
public void searchContractLimitAvto(SearchResult<ContractLimitAvto> searchResult, int contractId, java.lang.String status) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public java.util.List<LimitChangeTask> getContractMoveTasks(int contractId)
public int addMoveTask(LimitChangeTask task) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void cancelMoveTask(java.util.List<java.lang.Integer> taskIds) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public void deleteMoveTaskAndLog(int taskId, int contractId, int userId)
taskId
- contractId
- userId
- public java.util.List<LimitChangeTask> getFullTaskList()
public void updateContractLimit(int userId, java.math.BigDecimal limitValue, int contractId, java.lang.String comment, int days)
public boolean initRestoreLimitTask(java.util.Calendar date)
public void executeRestoreLimitTask(java.util.Calendar now, ContractDao contractDao, java.lang.String comment)
public static void clientPaymentEvent(java.sql.Connection con, PaymentEvent event) throws ru.bitel.bgbilling.common.BGException
con
- event
- ru.bitel.bgbilling.common.BGException
public static final java.util.List<ContractLimitParameters> load(Setup setup)
@Deprecated public ContractLimitParameters getContractLimitParameters(Setup setup, Contract contract) throws ru.bitel.bgbilling.common.BGException
getContractLimitParameters(Setup, ru.bitel.bgbilling.kernel.contract.api.common.bean.Contract)
setup
- contract
- старый bean договораru.bitel.bgbilling.common.BGException
public ContractLimitParameters getContractLimitParameters(Setup setup, Contract contract) throws ru.bitel.bgbilling.common.BGException
setup
- contract
- новый bean договораru.bitel.bgbilling.common.BGException
public void lowLimit(int cid, java.math.BigDecimal sum, int days) throws ru.bitel.bgbilling.common.BGException
cid
- - код договораsum
- - на какую сумму уменьшить лмиитdays
- - на сколько днейru.bitel.bgbilling.common.BGException
public java.util.List<LimitManager.UserLimitMove> getUserLimitMove(int cid, int yy, int mm)
public java.util.List<LimitManager.UserLimitMove> getUserLimitMove(int cid, java.util.Calendar date1, java.util.Calendar date2)
public void setLimitManageMode(int uid, int cid, int mode)