public class CRMBOWalletAllotmentBean extends CRMBO
| Constructor and Description |
|---|
CRMBOWalletAllotmentBean()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.math.BigDecimal |
getBalance(com.crm.dataobject.wallets.CRMDOWallet wallet)
Calculates the total amount of the wallet allotments related to the given wallet and wallet balance period
|
java.math.BigDecimal |
getBalance(com.crm.dataobject.wallets.CRMDOWallet wallet,
com.crm.dataobject.wallets.CRMDOWalletBalancePeriod walletBalancePeriod)
Calculates the total amount of the wallet allotments related to the given wallet and wallet balance period
|
java.util.ArrayList<java.lang.String> |
getDefaultAssociations()
Returns the default associated data objects of a wallet allotment.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
load(com.crm.dataobject.wallets.CRMDOWallet wallet) |
java.util.ArrayList<com.crm.dataobject.CRMDO> |
load(com.crm.dataobject.wallets.CRMDOWalletAllotmentGroupCondition groupCondition)
Loads a list of allotments of a wallet transaction.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
load(com.crm.dataobject.wallets.CRMDOWalletAllotmentGroupCondition groupCondition,
java.util.ArrayList<java.lang.String> associations)
Loads a list of wallet allotments of a wallet allotment group condition.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
load(com.crm.dataobject.wallets.CRMDOWalletAllotmentGroupCondition groupCondition,
java.util.ArrayList<java.lang.String> associations,
java.lang.Boolean excludedPeriodRelated)
Loads a list of wallet allotments of a wallet allotment group condition.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
load(com.crm.dataobject.wallets.CRMDOWallet wallet,
java.util.ArrayList<java.lang.String> associations) |
java.util.ArrayList<com.crm.dataobject.CRMDO> |
load(com.crm.dataobject.wallets.CRMDOWalletTransaction walletTransaction)
Loads a list of allotments of a wallet transaction.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
load(java.lang.String walletID,
java.util.Date toDate,
java.lang.Boolean walletBalancePeriodIncluded)
Loads a list of allotments of a wallet valid for a specific period
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
load(java.lang.String walletID,
java.util.Date toDate,
java.lang.Boolean walletBalancePeriodIncluded,
java.util.ArrayList<java.lang.String> associations)
Loads a list of allotments of a wallet valid for a specific period
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
loadPerWalletAllotmentGroupCondition(java.lang.String walletAllotmentGroupConditionID,
java.lang.String walletID)
Loads a list of wallet allotments for a specific wallet and wallet allotment group condition
|
com.crm.dataobject.wallets.CRMDOWalletAllotment |
setGroupCondition(com.crm.dataobject.wallets.CRMDOWalletAllotment walletAllotment)
Sets group conditions to a wallet allotment if none already exist.
|
void |
validateAllotmentConditions(com.crm.dataobject.wallets.CRMDOWalletAllotment walletAllotment)
Validates the conditions of a wallet allotment.
|
construct, construct, construct, construct, construct, construct, construct, construct, construct, createAndUpdate, delete, delete, delete, getDOName, getDOName, getNextSequenceNumber, getNextSequenceNumber, getNumberScheme, isAssignable, load, load, load, load, load, load, load, load, load, load, load, load, load, load, loadAll, loadAll, loadAll, loadAllEntityStatusDO, loadAllEntityStatusDO, loadDataObject, loadDataObject, loadDataObject, loadDataObjects, loadDataObjects, loadEntityCategoryDO, loadEntityCategoryDO, loadEntityDO, loadEntityDO, loadEntityStatusDO, loadEntityStatusDO, parseAssociations, parseAssociations, parseAssociations, save, save, save, saveCRMDOCollection, saveImages, setMandatoryFields, setNumberScheme, validateAndDelete, validateAndSave, validateAndSave, validateAndSave, validateApprovalRequestEntity, validateFormatSettings, validateFormatSettings, validateOnDelete, validateOnDelete, validateOnDelete, validateOnSave, validateOnSave, validateOnSavedeepCopy, dispatch, getCRMSession, getCRMSessionHandle, getCurrentDate, getEJBHomeInterface, getInitialContext, getSessionContext, invoke, setCRMSessionHandle, setInitialContext, setSessionContextpublic com.crm.dataobject.wallets.CRMDOWalletAllotment setGroupCondition(com.crm.dataobject.wallets.CRMDOWalletAllotment walletAllotment)
throws java.lang.Exception
walletAllotment - - the wallet allotment to set the group conditions tojava.lang.Exceptionpublic java.util.ArrayList<java.lang.String> getDefaultAssociations()
getDefaultAssociations in class CRMBOpublic void validateAllotmentConditions(com.crm.dataobject.wallets.CRMDOWalletAllotment walletAllotment)
throws java.lang.Exception
walletAllotment - - the wallet allotment to validate the conditions ofjava.lang.Exceptionpublic java.util.ArrayList<com.crm.dataobject.CRMDO> load(com.crm.dataobject.wallets.CRMDOWalletTransaction walletTransaction)
throws java.lang.Exception
walletTransaction - - the wallet transaction to load the allotments forjava.lang.Exceptionpublic java.util.ArrayList<com.crm.dataobject.CRMDO> load(java.lang.String walletID,
java.util.Date toDate,
java.lang.Boolean walletBalancePeriodIncluded)
throws java.lang.Exception
walletID - - the id of the wallet to load the allotments fortoDate - - the date to which the allotments must be validwalletBalancePeriodIncluded - - indicates whether the loaded list of allotments should be related to a wallet balance period or notjava.lang.Exceptionpublic java.util.ArrayList<com.crm.dataobject.CRMDO> load(java.lang.String walletID,
java.util.Date toDate,
java.lang.Boolean walletBalancePeriodIncluded,
java.util.ArrayList<java.lang.String> associations)
throws java.lang.Exception
walletID - - the id of the wallet to load the allotments fortoDate - - the date to which the allotments must be validwalletBalancePeriodIncluded - - indicates whether the loaded list of allotments should be related to a wallet balance period or notassociations - - a list of associated objects to loadjava.lang.Exceptionpublic java.util.ArrayList<com.crm.dataobject.CRMDO> load(com.crm.dataobject.wallets.CRMDOWalletAllotmentGroupCondition groupCondition)
throws java.lang.Exception
groupCondition - - the wallet transaction to load the allotments forjava.lang.Exceptionpublic java.util.ArrayList<com.crm.dataobject.CRMDO> load(com.crm.dataobject.wallets.CRMDOWalletAllotmentGroupCondition groupCondition,
java.util.ArrayList<java.lang.String> associations)
throws java.lang.Exception
groupCondition - - the wallet allotment group condition to load the allotments forassociations - - a list of associated data objectsjava.lang.Exceptionpublic java.util.ArrayList<com.crm.dataobject.CRMDO> load(com.crm.dataobject.wallets.CRMDOWalletAllotmentGroupCondition groupCondition,
java.util.ArrayList<java.lang.String> associations,
java.lang.Boolean excludedPeriodRelated)
throws java.lang.Exception
groupCondition - - the wallet allotment group condition to load the allotments forassociations - - a list of associated data objectsjava.lang.Exceptionpublic java.util.ArrayList<com.crm.dataobject.CRMDO> load(com.crm.dataobject.wallets.CRMDOWallet wallet)
throws java.lang.Exception
java.lang.Exceptionpublic java.util.ArrayList<com.crm.dataobject.CRMDO> load(com.crm.dataobject.wallets.CRMDOWallet wallet,
java.util.ArrayList<java.lang.String> associations)
throws java.lang.Exception
java.lang.Exceptionpublic java.util.ArrayList<com.crm.dataobject.CRMDO> loadPerWalletAllotmentGroupCondition(java.lang.String walletAllotmentGroupConditionID,
java.lang.String walletID)
throws java.lang.Exception
walletAllotmentGroupConditionID - - the wallet allotment group condition idwalletID - - the wallet idjava.lang.Exceptionpublic java.math.BigDecimal getBalance(com.crm.dataobject.wallets.CRMDOWallet wallet)
throws com.crm.exception.CRMException,
java.lang.Exception
wallet - - the wallet to calculate the total allotment amount forjava.lang.Exceptioncom.crm.exception.CRMExceptionpublic java.math.BigDecimal getBalance(com.crm.dataobject.wallets.CRMDOWallet wallet,
com.crm.dataobject.wallets.CRMDOWalletBalancePeriod walletBalancePeriod)
throws com.crm.exception.CRMException,
java.lang.Exception
wallet - - the wallet to calculate the total allotment amount forwalletBalancePeriod - - the wallet balance period to calculate the total allotment amount forjava.lang.Exceptioncom.crm.exception.CRMException