public class CRMBOUsageAllowanceLimitBean extends CRMBO
Constructor and Description |
---|
CRMBOUsageAllowanceLimitBean()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
com.crm.dataobject.accounts.CRMDOAccountReceivable |
calculateConsumedUsageAllowance(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable,
java.util.Date validityDate)
Calculates the consumed usage allowance of an account receivable.
|
com.crm.dataobject.accounts.CRMDOAccountReceivable |
calculateConsumedUsageAllowance(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable,
java.util.Date validityDate,
com.crm.dataobject.billing.CRMDOUsageAuthorisation excludeUsageAuthorisation)
Calculates the consumed usage allowance of an account receivable.
|
com.crm.dataobject.accounts.CRMDOAccountReceivable |
calculateConsumedUsageAllowancePerService(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable,
java.util.Date validityDate)
Calculates the consumed usage allowance per service of an account receivable.
|
com.crm.dataobject.accounts.CRMDOAccountReceivable |
calculateConsumedUsageAllowancePerService(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable,
java.util.Date validityDate,
com.crm.dataobject.billing.CRMDOUsageAuthorisation excludeUsageAuthorisation)
Calculates the consumed usage allowance per service of an account receivable.
|
com.crm.dataobject.accounts.CRMDOAccountReceivable |
calculateMaximumAllowedUsageConsumptionAgainstCreditLimit(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable)
Calculates the maximum allowed usage consumption for an acounts receivable
|
com.crm.dataobject.accounts.CRMDOAccountReceivable |
calculateMaximumAllowedUsageConsumptionAgainstCreditLimit(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable,
java.util.Date validityDate)
Calculates the maximum allowed usage consumption for an acounts receivable
|
com.crm.dataobject.accounts.CRMDOAccountReceivable |
calculateRemainingUsageAllowance(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable)
Calculates the remaining usage allowance of an account receivable.
|
com.crm.dataobject.accounts.CRMDOAccountReceivable |
calculateRemainingUsageAllowancePerService(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable)
Calculates the remaining usage allowance per service of an account receivable.
|
com.crm.dataobject.accounts.CRMDOAccountReceivable |
calculateUsageAllowanceLimitWithExceededAmount(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable)
Calculates the usage allowance limit with exceeded amount
|
java.util.ArrayList<java.lang.String> |
getDefaultAssociations()
Returns the default associated data objects of a usage allowance limit
|
boolean |
isAllowedOrginisationalUnitValid(com.crm.dataobject.billing.CRMDOUsageAllowanceLimit usageAllowanceLimit,
com.crm.dataobject.networkmanagement.CRMDOUnit unit)
Checks if the the logged in user is allowed against organisational unit conditions
If the usage allowance limit is configured on the account definition, then is valid,
else the conditions are evaluated
|
java.lang.Boolean |
isExistsForAccount(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable)
Checks if a usage allowance limit exists for an account
|
boolean |
isProductRestricted(com.crm.dataobject.billing.CRMDOUsageAllowanceLimit usageAllowanceLimit,
com.crm.dataobject.products.CRMDOProduct product) |
com.crm.dataobject.billing.CRMDOUsageAllowanceLimit |
load(com.crm.dataobject.accounts.CRMDOAccDefUsageAllowanceLimitRule ualRule)
Loads a usage allowance limit by an account definition usage allowance limit rule.
|
com.crm.dataobject.billing.CRMDOUsageAllowanceLimit |
load(com.crm.dataobject.accounts.CRMDOAccDefUsageAllowanceLimitRule ualRule,
java.util.ArrayList<java.lang.String> associations)
Loads a usage allowance limit by an account definition usage allowance limit rule.
|
com.crm.dataobject.billing.CRMDOUsageAllowanceLimit |
load(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable)
Loads a usage allowance limit by an account receivable.
|
com.crm.dataobject.billing.CRMDOUsageAllowanceLimit |
load(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable,
java.util.ArrayList<java.lang.String> associations)
Loads a usage allowance limit by an account receivable.
|
com.crm.dataobject.accounts.CRMDOAccountReceivable |
resetRemainingUsageAllowanceLimitsBasedOnCurrency(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable)
Reset the remaining usage allowance limits for an account receivable based on the currency.
|
com.crm.dataobject.accounts.CRMDOAccountReceivable |
resetUsageAllowanceLimitBasedOnCurrency(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable)
Reset the usage allowance limit for an account receivable based on the currency.
|
com.crm.dataobject.accounts.CRMDOAccountReceivable |
setAllowedExceededUsageAllowanceAmount(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable,
java.util.Date validityDate)
Calculates the allowed exceeded usage allowance for an account
|
com.crm.dataobject.accounts.CRMDOAccountReceivable |
setAllowedRatedAmounts(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable,
java.lang.Boolean addAllowedExceededAmount)
Reset the usage allowance limit for an account receivable based on the currency.
|
com.crm.dataobject.accounts.CRMDOAccountReceivable |
setRemainingUsageAllowanceForAllowanceWithoutLimit(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable)
Sets the remaining usage allowance for the usage allowance values without limit, by setting the remaining allowance per month on the remaining allowance per day
and the remaining allowance per day on the remaining allowance per transaction, if any of these values are empty.
|
void |
validateAccountMembersLimitsOnSave(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable,
com.crm.dataobject.billing.CRMDOUsageAllowanceLimit usageAllowanceLimit)
Validates the usage allowance limits of member accounts against the usage allowance limits of the parent accounts on save
|
void |
validateMemberUALAgainstParentUAL(com.crm.dataobject.accounts.CRMDOAccountReceivable accountMember,
com.crm.dataobject.billing.CRMDOUsageAllowanceLimit usageAllowanceLimit)
Validates the usage allowance limits of member accounts against the usage allowance limits of the parent accounts on save
|
void |
validateMemberUALAgainstParentUAL(com.crm.dataobject.billing.CRMDOUsageAllowanceLimit memberUAL,
com.crm.dataobject.billing.CRMDOUsageAllowanceLimit parentUAL)
Validates the usage allowance limits of a member account against the usage allowance limits of the parent account
|
void |
validateMemberUALAgainstParentUAL(com.crm.dataobject.billing.CRMDOUsageAllowanceLimit memberUAL,
com.crm.dataobject.billing.CRMDOUsageAllowanceLimit parentUAL,
java.lang.Boolean validateUsageAllowanceLimits)
Validates the usage allowance limits of a member account against the usage allowance limits of the parent account
|
void |
validateUsageAllowanceLimitsAcrossFundedServices(com.crm.dataobject.billing.CRMDOUsageAllowanceLimit memberUAL,
com.crm.dataobject.billing.CRMDOUsageAllowanceLimit parentUAL) |
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, validateOnSave
deepCopy, dispatch, getCRMSession, getCRMSessionHandle, getCurrentDate, getEJBHomeInterface, getInitialContext, getSessionContext, invoke, setCRMSessionHandle, setInitialContext, setSessionContext
public CRMBOUsageAllowanceLimitBean()
public void validateAccountMembersLimitsOnSave(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable, com.crm.dataobject.billing.CRMDOUsageAllowanceLimit usageAllowanceLimit) throws com.crm.exception.NumberEqualGreaterThanNumberException, java.lang.Exception
usageAllowanceLimit
- - the usage allowance limit to validate the limits forcom.crm.exception.NumberEqualGreaterThanNumberException
java.lang.Exception
public void validateMemberUALAgainstParentUAL(com.crm.dataobject.accounts.CRMDOAccountReceivable accountMember, com.crm.dataobject.billing.CRMDOUsageAllowanceLimit usageAllowanceLimit) throws java.lang.Exception
accountMember
- - the account member to validateusageAllowanceLimit
- - the usage allowance limit to validate the limits forcom.crm.exception.NumberEqualGreaterThanNumberException
java.lang.Exception
public void validateMemberUALAgainstParentUAL(com.crm.dataobject.billing.CRMDOUsageAllowanceLimit memberUAL, com.crm.dataobject.billing.CRMDOUsageAllowanceLimit parentUAL) throws com.crm.exception.NumberEqualGreaterThanNumberException, java.lang.Exception
memberUAL
- - the usage allowance limit of the member accountparentUAL
- - the usage allowance limit of the parent accountcom.crm.exception.NumberEqualGreaterThanNumberException
java.lang.Exception
public void validateMemberUALAgainstParentUAL(com.crm.dataobject.billing.CRMDOUsageAllowanceLimit memberUAL, com.crm.dataobject.billing.CRMDOUsageAllowanceLimit parentUAL, java.lang.Boolean validateUsageAllowanceLimits) throws com.crm.exception.NumberEqualGreaterThanNumberException, java.lang.Exception
memberUAL
- - the usage allowance limit of the member accountparentUAL
- - the usage allowance limit of the parent accountvalidateUsageAllowanceLimits
- - whether to validate the usage allowance limit of the parent accountcom.crm.exception.NumberEqualGreaterThanNumberException
java.lang.Exception
public void validateUsageAllowanceLimitsAcrossFundedServices(com.crm.dataobject.billing.CRMDOUsageAllowanceLimit memberUAL, com.crm.dataobject.billing.CRMDOUsageAllowanceLimit parentUAL) throws java.lang.Exception
java.lang.Exception
public java.util.ArrayList<java.lang.String> getDefaultAssociations()
getDefaultAssociations
in class CRMBO
public com.crm.dataobject.billing.CRMDOUsageAllowanceLimit load(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable) throws java.lang.Exception
accountReceivable
- - the account receivable to load the usage allowance limit forjava.lang.Exception
public com.crm.dataobject.billing.CRMDOUsageAllowanceLimit load(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable, java.util.ArrayList<java.lang.String> associations) throws java.lang.Exception
accountReceivable
- - the account receivable to load the usage allowance limit forjava.lang.Exception
public com.crm.dataobject.billing.CRMDOUsageAllowanceLimit load(com.crm.dataobject.accounts.CRMDOAccDefUsageAllowanceLimitRule ualRule) throws java.lang.Exception
ualRule
- - the account definition usage allowance limit rule to load the usage allowance limit forjava.lang.Exception
public com.crm.dataobject.billing.CRMDOUsageAllowanceLimit load(com.crm.dataobject.accounts.CRMDOAccDefUsageAllowanceLimitRule ualRule, java.util.ArrayList<java.lang.String> associations) throws java.lang.Exception
ualRule
- - the account definition usage allowance limit rule to load the usage allowance limit forassociations
- - the associations to load withjava.lang.Exception
public com.crm.dataobject.accounts.CRMDOAccountReceivable calculateConsumedUsageAllowance(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable, java.util.Date validityDate) throws java.lang.Exception
accountReceivable
- - the account receivable to calculate the usage allowancejava.lang.Exception
public com.crm.dataobject.accounts.CRMDOAccountReceivable calculateConsumedUsageAllowance(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable, java.util.Date validityDate, com.crm.dataobject.billing.CRMDOUsageAuthorisation excludeUsageAuthorisation) throws java.lang.Exception
accountReceivable
- - the account receivable to calculate the usage allowanceexcludeUsageAuthorisation
- - the usage authorisation to excludejava.lang.Exception
public boolean isProductRestricted(com.crm.dataobject.billing.CRMDOUsageAllowanceLimit usageAllowanceLimit, com.crm.dataobject.products.CRMDOProduct product) throws java.lang.Exception
java.lang.Exception
public com.crm.dataobject.accounts.CRMDOAccountReceivable calculateConsumedUsageAllowancePerService(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable, java.util.Date validityDate) throws java.lang.Exception
accountReceivable
- - the account receivable to calculate the consumed usage allowance per servicevalidityDate
- - the date to calculate the amountsjava.lang.Exception
public com.crm.dataobject.accounts.CRMDOAccountReceivable calculateConsumedUsageAllowancePerService(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable, java.util.Date validityDate, com.crm.dataobject.billing.CRMDOUsageAuthorisation excludeUsageAuthorisation) throws java.lang.Exception
accountReceivable
- - the account receivable to calculate the consumed usage allowance per servicevalidityDate
- - the date to calculate the amountsexcludeUsageAuthorisation
- - the usage authorisation to excludejava.lang.Exception
public com.crm.dataobject.accounts.CRMDOAccountReceivable calculateRemainingUsageAllowance(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable) throws java.lang.Exception
accountReceivable
- - the account receivable to calculate the remaining usage allowancejava.lang.Exception
public com.crm.dataobject.accounts.CRMDOAccountReceivable calculateRemainingUsageAllowancePerService(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable) throws java.lang.Exception
accountReceivable
- - the account receivable to calculate the remaining usage allowance per servicejava.lang.Exception
public com.crm.dataobject.accounts.CRMDOAccountReceivable resetRemainingUsageAllowanceLimitsBasedOnCurrency(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable) throws java.lang.Exception
accountReceivable
- - the account receivable to copy the values tojava.lang.Exception
public com.crm.dataobject.accounts.CRMDOAccountReceivable calculateUsageAllowanceLimitWithExceededAmount(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable) throws java.lang.Exception
accountReceivable
- - the account receivable to calculate the usage allowance limit with exceeded amountjava.lang.Exception
public com.crm.dataobject.accounts.CRMDOAccountReceivable setRemainingUsageAllowanceForAllowanceWithoutLimit(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable) throws java.lang.Exception
accountReceivable
- - the account receivable to set the remaining usage allowance forjava.lang.Exception
public java.lang.Boolean isExistsForAccount(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable) throws java.lang.Exception
accountReceivable
- - the account to checkjava.lang.Exception
public com.crm.dataobject.accounts.CRMDOAccountReceivable setAllowedExceededUsageAllowanceAmount(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable, java.util.Date validityDate) throws java.lang.Exception
accountReceivable
- - the account to calculate the allowed exceeded usage allowancejava.lang.Exception
public com.crm.dataobject.accounts.CRMDOAccountReceivable resetUsageAllowanceLimitBasedOnCurrency(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable) throws java.lang.Exception
accountReceivable
- - the account receivable to copy the values tojava.lang.Exception
public com.crm.dataobject.accounts.CRMDOAccountReceivable setAllowedRatedAmounts(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable, java.lang.Boolean addAllowedExceededAmount) throws java.lang.Exception
accountReceivable
- - the account receivable to copy the values tojava.lang.Exception
public boolean isAllowedOrginisationalUnitValid(com.crm.dataobject.billing.CRMDOUsageAllowanceLimit usageAllowanceLimit, com.crm.dataobject.networkmanagement.CRMDOUnit unit) throws java.lang.Exception
usageAllowanceLimit
- - the usage allowance limit to validateunit
- - the unit to validatejava.lang.Exception
public com.crm.dataobject.accounts.CRMDOAccountReceivable calculateMaximumAllowedUsageConsumptionAgainstCreditLimit(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable) throws java.lang.Exception
accountReceivable
- - the account receivable to set the information on the related usage allowance limitjava.lang.Exception
public com.crm.dataobject.accounts.CRMDOAccountReceivable calculateMaximumAllowedUsageConsumptionAgainstCreditLimit(com.crm.dataobject.accounts.CRMDOAccountReceivable accountReceivable, java.util.Date validityDate) throws java.lang.Exception
accountReceivable
- - the account receivable to set the information on the related usage allowance limitjava.lang.Exception