public class CRMBOWalletBean extends CRMBOMasterEntity
Constructor and Description |
---|
CRMBOWalletBean()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
com.crm.dataobject.wallets.CRMDOWallet |
cancel(com.crm.dataobject.wallets.CRMDOWallet wallet)
Cancels a wallet.
|
com.crm.dataobject.wallets.CRMDOWallet |
estimateConsumptionDates(com.crm.dataobject.wallets.CRMDOWallet wallet,
com.crm.dataobject.billing.CRMDOPrepaidBillingRun billingRun)
Estimates the product consumption dates of a wallet.
|
com.crm.dataobject.wallets.CRMDOWallet |
estimateConsumptionDates(com.crm.dataobject.wallets.CRMDOWallet wallet,
com.crm.dataobject.billing.CRMDOPrepaidBillingRun prepaidBillingRun,
java.lang.Integer numberOfDays)
Estimates the product consumption dates of a wallet for the next number of days given.
|
java.math.BigDecimal |
getBalance(com.crm.dataobject.wallets.CRMDOWallet wallet)
Returns the balance of wallet.
|
java.math.BigDecimal |
getBalance(com.crm.dataobject.wallets.CRMDOWalletAllotmentGroupCondition allotmentGroupCondition)
Returns the balance of a wallet Group Condition.
|
java.math.BigDecimal |
getBalance(com.crm.dataobject.wallets.CRMDOWalletAllotmentGroupCondition allotmentGroupCondition,
java.util.Date asOfDate)
Returns the balance of a wallet Group Condition.
|
java.math.BigDecimal |
getBalance(com.crm.dataobject.wallets.CRMDOWallet wallet,
java.util.ArrayList<com.crm.dataobject.wallets.CRMDOWalletAllotmentGroupCondition> allotmentGroupConditions,
java.util.Date asOfDate)
Returns the balance of a wallet Group Conditions list.
|
java.math.BigDecimal |
getBalance(com.crm.dataobject.wallets.CRMDOWallet wallet,
com.crm.dataobject.products.CRMDOProduct product)
Returns the balance of wallet product.
|
java.util.ArrayList<java.lang.String> |
getDefaultAssociations()
Returns the default associated data objects of a wallet.
|
java.util.ArrayList<com.crm.dataobject.products.CRMDOProduct> |
getProductAllotments(com.crm.dataobject.wallets.CRMDOWallet wallet)
Loads a list of product allotments of a wallet.
|
java.math.BigDecimal |
getProductAvailableAmount(com.crm.dataobject.wallets.CRMDOWallet wallet,
com.crm.dataobject.products.CRMDOProduct product,
com.crm.dataobject.networkmanagement.CRMDOUnit unit,
com.crm.dataobject.networkmanagement.CRMDOUnitGroup group,
java.util.Date asOfDate)
Returns the product available amount based on the parameters given.
|
java.lang.Boolean |
ifWalletExists(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable)
Checks if a wallet exists based on an accounts receivable.
|
java.lang.Boolean |
isRelatedChangesExists(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable,
com.crm.dataobject.wallets.CRMDOWallet wallet)
Return true if the specify wallet has related changes that may change the consumption dates
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
load(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable,
java.util.ArrayList<java.lang.String> associations)
Loads a wallet by an account.
|
com.crm.dataobject.wallets.CRMDOWallet |
loadActive(com.crm.dataobject.accounts.CRMDOAccountReceivable account)
Loads the active wallet of an account.
|
com.crm.dataobject.wallets.CRMDOWallet |
loadActive(com.crm.dataobject.accounts.CRMDOAccountReceivable account,
com.crm.dataobject.wallets.CRMDOWallet excludeWallet)
Loads the active wallet of an account.
|
com.crm.dataobject.wallets.CRMDOWallet |
loadAdditionalInformation(com.crm.dataobject.wallets.CRMDOWallet wallet)
Loads additional information of a wallet.
|
com.crm.dataobject.wallets.CRMDOWallet |
loadByNumber(java.lang.String number,
java.util.ArrayList<java.lang.String> associations)
Loads a wallet by a number.
|
com.crm.dataobject.wallets.CRMDOWallet |
loadCancelledByEntityValue(com.crm.dataobject.wallets.CRMDOWallet wallet)
Loads a wallet and sets cancelled by entity information based on the entity that cancelled it.
|
com.crm.dataobject.wallets.CRMDOWallet |
loadCreatedByEntityValue(com.crm.dataobject.wallets.CRMDOWallet wallet)
Loads a wallet and sets created by entity information based on the entity that created it.
|
com.crm.dataobject.wallets.CRMDOWallet |
loadGroupConditions(com.crm.dataobject.wallets.CRMDOWallet wallet) |
com.crm.dataobject.wallets.CRMDOWallet |
setWalletEstimationDates(com.crm.dataobject.wallets.CRMDOWallet wallet)
Sets Wallet Estimation consumption Dates of a wallet.
|
setLifeCycleState
construct, construct, construct, construct, construct, construct, construct, construct, createAndUpdate, delete, delete, delete, getDOName, getDOName, getNextSequenceNumber, getNextSequenceNumber, getNumberScheme, load, load, load, load, load, load, load, load, loadAll, loadAll, loadAll, parseAssociations, save, save, save, saveCRMDOCollection, saveImages, setMandatoryFields, setNumberScheme, validateAndDelete, validateAndSave, validateAndSave, validateAndSave, validateOnDelete, validateOnDelete, validateOnDelete, validateOnSave, validateOnSave, validateOnSave
dispatch, getCRMSession, getCRMSessionHandle, getEJBHomeInterface, getInitialContext, getSessionContext, invoke, setCRMSessionHandle, setInitialContext, setSessionContext
public java.util.ArrayList<java.lang.String> getDefaultAssociations()
getDefaultAssociations
in class CRMBO
public com.crm.dataobject.wallets.CRMDOWallet cancel(com.crm.dataobject.wallets.CRMDOWallet wallet) throws java.lang.Exception, com.crm.exception.AlreadyCancelledException
dto
- - the wallet to canceljava.lang.Exception
com.crm.exception.AlreadyCancelledException
public com.crm.dataobject.wallets.CRMDOWallet loadActive(com.crm.dataobject.accounts.CRMDOAccountReceivable account) throws java.lang.Exception
account
- - the account to load the active wallet fromjava.lang.Exception
public com.crm.dataobject.wallets.CRMDOWallet loadActive(com.crm.dataobject.accounts.CRMDOAccountReceivable account, com.crm.dataobject.wallets.CRMDOWallet excludeWallet) throws java.lang.Exception
account
- - the account to load the active wallet fromexcludeWallet
- - the wallet to excludejava.lang.Exception
public com.crm.dataobject.wallets.CRMDOWallet loadByNumber(java.lang.String number, java.util.ArrayList<java.lang.String> associations) throws java.lang.Exception
number
- - the wallet numberassociations
- - a list of associated data objectsjava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDO> load(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable, java.util.ArrayList<java.lang.String> associations) throws java.lang.Exception
accountReceivable
- - the account to load the wallet forassociations
- - a list of associated data objectsjava.lang.Exception
public com.crm.dataobject.wallets.CRMDOWallet loadAdditionalInformation(com.crm.dataobject.wallets.CRMDOWallet wallet) throws java.lang.Exception
wallet
- - the wallet to load the additional information forjava.lang.Exception
public com.crm.dataobject.wallets.CRMDOWallet setWalletEstimationDates(com.crm.dataobject.wallets.CRMDOWallet wallet) throws java.lang.Exception
wallet
- - the wallet to load Estimation consumption Dates forjava.lang.Exception
public com.crm.dataobject.wallets.CRMDOWallet loadCreatedByEntityValue(com.crm.dataobject.wallets.CRMDOWallet wallet) throws java.lang.Exception
wallet
- - the wallet to usejava.lang.Exception
public com.crm.dataobject.wallets.CRMDOWallet loadCancelledByEntityValue(com.crm.dataobject.wallets.CRMDOWallet wallet) throws java.lang.Exception
wallet
- - the wallet to usejava.lang.Exception
public java.math.BigDecimal getBalance(com.crm.dataobject.wallets.CRMDOWallet wallet) throws java.lang.Exception
wallet
- - the wallet to return the balance forjava.lang.Exception
public java.math.BigDecimal getBalance(com.crm.dataobject.wallets.CRMDOWallet wallet, com.crm.dataobject.products.CRMDOProduct product) throws java.lang.Exception
wallet
- - the wallet to return the balance forproduct
- - the product to return the wallet balance forjava.lang.Exception
public com.crm.dataobject.wallets.CRMDOWallet estimateConsumptionDates(com.crm.dataobject.wallets.CRMDOWallet wallet, com.crm.dataobject.billing.CRMDOPrepaidBillingRun prepaidBillingRun, java.lang.Integer numberOfDays) throws java.lang.Exception
wallet
- - the wallet to estimate product consumption datesprepaidBillingRun
- - the billing run to usenumberOfDays
- - the period of days to look for consumption datesjava.lang.Exception
public com.crm.dataobject.wallets.CRMDOWallet estimateConsumptionDates(com.crm.dataobject.wallets.CRMDOWallet wallet, com.crm.dataobject.billing.CRMDOPrepaidBillingRun billingRun) throws java.lang.Exception
wallet
- - the wallet to estimate product consumption datesprepaidBillingRun
- - the billing run to usejava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.products.CRMDOProduct> getProductAllotments(com.crm.dataobject.wallets.CRMDOWallet wallet) throws java.lang.Exception
wallet
- - the wallet to load the product allotments forjava.lang.Exception
public java.math.BigDecimal getProductAvailableAmount(com.crm.dataobject.wallets.CRMDOWallet wallet, com.crm.dataobject.products.CRMDOProduct product, com.crm.dataobject.networkmanagement.CRMDOUnit unit, com.crm.dataobject.networkmanagement.CRMDOUnitGroup group, java.util.Date asOfDate) throws java.lang.Exception
wallet
- - the wallet to useproduct
- - the product to useunit
- - the unit to usegroup
- - the group to useasOfDate
- - the as of date to usejava.lang.Exception
public java.math.BigDecimal getBalance(com.crm.dataobject.wallets.CRMDOWalletAllotmentGroupCondition allotmentGroupCondition) throws java.lang.Exception
allotmentGroupCondition
- - the wallet Group Condition to return the balance forjava.lang.Exception
public java.math.BigDecimal getBalance(com.crm.dataobject.wallets.CRMDOWalletAllotmentGroupCondition allotmentGroupCondition, java.util.Date asOfDate) throws java.lang.Exception
allotmentGroupCondition
- - the wallet Group Condition to return the balance forasOfDate
- - the as of date to usejava.lang.Exception
public java.math.BigDecimal getBalance(com.crm.dataobject.wallets.CRMDOWallet wallet, java.util.ArrayList<com.crm.dataobject.wallets.CRMDOWalletAllotmentGroupCondition> allotmentGroupConditions, java.util.Date asOfDate) throws java.lang.Exception
wallet
- - the wallet to useallotmentGroupConditions
- - the list of wallet Group Conditions to return the balance forasOfDate
- - the as of date to usejava.lang.Exception
public java.lang.Boolean isRelatedChangesExists(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable, com.crm.dataobject.wallets.CRMDOWallet wallet) throws java.lang.Exception
accountReceivable
- - the Accounts Receivable to usewallet
- - the wallet to usejava.lang.Exception
public java.lang.Boolean ifWalletExists(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable) throws java.lang.Exception
accountReceivable
- - the accounts receivable to checkjava.lang.Exception
public com.crm.dataobject.wallets.CRMDOWallet loadGroupConditions(com.crm.dataobject.wallets.CRMDOWallet wallet) throws java.lang.Exception
java.lang.Exception