public class CRMProcessVoucherActivationBean extends CRMProcessVoucherActionsBean
| Constructor and Description |
|---|
CRMProcessVoucherActivationBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
activateVoucher(java.lang.String voucherID,
java.lang.String processRunLogID,
java.lang.Boolean logFailed,
java.lang.Boolean logSuccess) |
void |
activateVouchers(java.lang.String processRunLogID)
Handles the voucher activation process invoked by the scheduler.
|
void |
activateVouchers(java.lang.String processRunLogID,
java.util.ArrayList<java.lang.String> voucherTypeIDs,
java.util.ArrayList<java.lang.String> lotIDs,
java.util.Map<java.lang.String,java.lang.String> voucherNumberRanges)
Handles the voucher activation process invoked by the scheduler.
|
void |
activateVouchers(java.lang.String processRunLogID,
java.lang.String voucherTypeID,
java.lang.String lotID,
java.lang.String fromNumber,
java.lang.String toNumber)
Handles the voucher activation process invoked by the scheduler.
|
com.crm.framework.util.ResultSetUtil |
getVouchersToBeActivated(java.lang.String voucherTypeID,
java.lang.String lotID,
java.lang.String fromNumber,
java.lang.String toNumber)
Returns the vouchers to be activated by a set of criteria.
|
com.crm.framework.util.ResultSetUtil |
getVouchersToBeActivated(java.lang.String voucherTypeID,
java.lang.String lotID,
java.lang.String fromNumber,
java.lang.String toNumber,
java.lang.String accountReceivableID,
java.lang.Integer maxRows)
Returns the vouchers to be activated by a set of criteria.
|
void |
scheduleVoucherActivation(com.crm.dataobject.vouchers.CRMDOVoucherType voucherType,
com.crm.dataobject.vouchers.CRMDOLot lot,
java.lang.String fromNumber,
java.lang.String toNumber,
java.util.Date executionDate)
Creates a scheduled job for the voucher activation process.
|
createCronExpressionFromDate, createCronExpressionFromDate, setMandatoryFielddeepCopy, dispatch, getCRMSession, getCRMSessionHandle, getCurrentDate, getEJBHomeInterface, getInitialContext, getSessionContext, invoke, loadEntityCategories, loadEntityNumber, loadEntityStates, loadEntityStatuses, loadEntityTypes, rollback, setCRMSessionHandle, setInitialContext, setSessionContextpublic void activateVouchers(java.lang.String processRunLogID)
throws java.lang.Exception
processRunLogID - - the process run logjava.lang.Exceptionpublic void activateVouchers(java.lang.String processRunLogID,
java.lang.String voucherTypeID,
java.lang.String lotID,
java.lang.String fromNumber,
java.lang.String toNumber)
throws java.lang.Exception
processRunLogID - - the process run logvoucherTypeID - - the voucher type of the vouchers to be activatedlotID - - the id of the lot to be activatedfromNumber - - the start of the voucher number range to be activatedtoNumber - - the end of the voucher number range to be activatedjava.lang.Exceptionpublic void activateVouchers(java.lang.String processRunLogID,
java.util.ArrayList<java.lang.String> voucherTypeIDs,
java.util.ArrayList<java.lang.String> lotIDs,
java.util.Map<java.lang.String,java.lang.String> voucherNumberRanges)
throws java.lang.Exception
processRunLogID - - the process run logvoucherTypeIDs - - multiple voucher type ids of the vouchers to be activatedlotIDs - - multiple lot ids of the vouchers to be activatedvoucherNumberRanges - - multiple number ranges of the vouchers to be activatedjava.lang.Exceptionpublic void activateVoucher(java.lang.String voucherID,
java.lang.String processRunLogID,
java.lang.Boolean logFailed,
java.lang.Boolean logSuccess)
throws java.lang.Exception
java.lang.Exceptionpublic void scheduleVoucherActivation(com.crm.dataobject.vouchers.CRMDOVoucherType voucherType,
com.crm.dataobject.vouchers.CRMDOLot lot,
java.lang.String fromNumber,
java.lang.String toNumber,
java.util.Date executionDate)
throws java.lang.Exception,
com.crm.exception.AtLeastOneFieldException,
com.crm.exception.vouchers.VoucherNotFoundException
voucherType - - the voucher type of the vouchers to be activatedlot - - the lot to be activatedfromNumber - - the start of the number range of the vouchers to be activatedtoNumber - - the end of the number range of the vouchers to be activatedexecutionDate - - the process execution datejava.lang.Exceptioncom.crm.exception.AtLeastOneFieldExceptioncom.crm.exception.vouchers.VoucherNotFoundExceptionpublic com.crm.framework.util.ResultSetUtil getVouchersToBeActivated(java.lang.String voucherTypeID,
java.lang.String lotID,
java.lang.String fromNumber,
java.lang.String toNumber)
throws java.lang.Exception
voucherTypeID - - the voucher type IDlotID - - the lot IDfromNumber - - the voucher From Number of the vouchers to be cancelledtoNumber - - the voucher To Number of the vouchers to be cancelledjava.lang.Exceptionpublic com.crm.framework.util.ResultSetUtil getVouchersToBeActivated(java.lang.String voucherTypeID,
java.lang.String lotID,
java.lang.String fromNumber,
java.lang.String toNumber,
java.lang.String accountReceivableID,
java.lang.Integer maxRows)
throws java.lang.Exception
voucherTypeID - - the voucher type IDlotID - - the lot IDfromNumber - - the voucher From Number of the vouchers to be cancelledtoNumber - - the voucher To Number of the vouchers to be cancelledjava.lang.Exception