public class CRMBOBillingTermDefinitionBean extends CRMBODefinition
Constructor and Description |
---|
CRMBOBillingTermDefinitionBean()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<java.lang.String> |
getDefaultAssociations()
Returns the default associated data objects of a billing term definition.
|
com.crm.dataobject.subscriptions.BillingDirectiveState |
getSubServiceLifeCycleStateBillingDirective(com.crm.dataobject.billing.CRMDOBillingTerm billingTerm,
com.crm.dataobject.subscriptions.CRMDOSubscriptionService subscriptionService,
java.util.Date date,
com.crm.dataobject.subscriptions.SubscriptionServiceLifeCycleState lifeCycleState)
Returns the subscription service life cycle state.
|
com.crm.dataobject.billing.UsageServiceProcessingMethod |
getUsageServiceBillingProcessingMethod(com.crm.dataobject.billing.CRMDOBillingTermDefinition billingTermDefinition,
com.crm.dataobject.billing.CRMDOBillingTerm billingTerm)
Checks if the rule is valid to set to effective.
|
java.lang.Boolean |
isNegativeBalanceAllowed(com.crm.dataobject.billing.CRMDOBillingTermDefinition billingTermDefinition,
com.crm.dataobject.billing.CRMDOBillingTerm billingTerm)
Checks if wallet debitting is allowed when resulting to a negative wallet balance based on a billing term definition, billing term.
|
java.lang.Boolean |
isPriceChangeAllowed(com.crm.dataobject.billing.CRMDOBillingTermDefinition billingTermDefinition,
com.crm.dataobject.billing.CRMDOBillingTerm billingTerm,
com.crm.dataobject.billing.BindingState serviceBindingState)
Checks if a price change is allowed based on a billing term definition, billing term and binding state.
|
java.lang.Boolean |
isValidToSetEffective(com.crm.dataobject.subscriptions.SubscriptionActionBehaviorCode behaviorCode,
com.crm.dataobject.subscriptions.SubscriptionActionClassificationCode classificationCode,
com.crm.dataobject.billing.CRMDOBillingTermScheme billingTermScheme,
com.crm.dataobject.accounts.CRMDOAccountReceivable account,
com.crm.dataobject.accounts.CRMDOAccountClassification accountClassification,
com.crm.dataobject.accounts.CreditRating creditRatingCode,
java.util.Date asOfDate)
Checks if the rule is valid to set to effective.
|
com.crm.dataobject.CRMDODefinition |
loadActiveDefinition()
Deprecated.
|
com.crm.dataobject.CRMDODefinition |
loadActiveDefinition(com.crm.dataobject.billing.BillingTermDefinitionClassification classification)
Loads the active definition based on classification.
|
com.crm.dataobject.CRMDOConfigurationEntity |
loadDefault()
Loads the default configuration entity data object.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
loadInactiveDefinitions(com.crm.dataobject.billing.BillingTermDefinitionClassification classification)
Loads a list of inactive definitions based on classification.
|
java.util.ArrayList<com.crm.dataobject.CRMDO> |
setDefault(com.crm.dataobject.CRMDOConfigurationEntity configurationEntity)
Sets a configuration entity data object as default.
|
loadInactiveDefinitions, save, setActiveDefinition, validateOnDelete
isDefault
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, saveCRMDOCollection, saveImages, setMandatoryFields, setNumberScheme, validateAndDelete, validateAndSave, validateAndSave, validateAndSave, validateOnDelete, validateOnDelete, validateOnSave, validateOnSave, validateOnSave
dispatch, getCRMSession, getCRMSessionHandle, getEJBHomeInterface, getInitialContext, getSessionContext, invoke, setCRMSessionHandle, setInitialContext, setSessionContext
public CRMBOBillingTermDefinitionBean()
@Deprecated public com.crm.dataobject.CRMDODefinition loadActiveDefinition() throws java.lang.Exception, com.crm.exception.MandatoryFieldException
CRMBODefinition
loadActiveDefinition
in class CRMBODefinition
java.lang.Exception
com.crm.exception.MandatoryFieldException
public com.crm.dataobject.CRMDODefinition loadActiveDefinition(com.crm.dataobject.billing.BillingTermDefinitionClassification classification) throws java.lang.Exception
classification
- - the classification of billing term definitionjava.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDO> loadInactiveDefinitions(com.crm.dataobject.billing.BillingTermDefinitionClassification classification) throws java.lang.Exception
classification
- - the classification of billing term definitionjava.lang.Exception
public java.util.ArrayList<java.lang.String> getDefaultAssociations()
getDefaultAssociations
in class CRMBO
public com.crm.dataobject.CRMDOConfigurationEntity loadDefault() throws java.lang.Exception
loadDefault
in class CRMBOConfigurationEntity
java.lang.Exception
public java.util.ArrayList<com.crm.dataobject.CRMDO> setDefault(com.crm.dataobject.CRMDOConfigurationEntity configurationEntity) throws java.lang.Exception
setDefault
in class CRMBOConfigurationEntity
configurationEntity
- - the configuration entity to set as defaultjava.lang.Exception
public com.crm.dataobject.subscriptions.BillingDirectiveState getSubServiceLifeCycleStateBillingDirective(com.crm.dataobject.billing.CRMDOBillingTerm billingTerm, com.crm.dataobject.subscriptions.CRMDOSubscriptionService subscriptionService, java.util.Date date, com.crm.dataobject.subscriptions.SubscriptionServiceLifeCycleState lifeCycleState) throws java.lang.Exception
billingTerm
- - the billing term to use to checksubscriptionService
- - the subscription service to checkdate
- - the as of date to checklifeCycleState
- - the life cycle state to checkjava.lang.Exception
public java.lang.Boolean isValidToSetEffective(com.crm.dataobject.subscriptions.SubscriptionActionBehaviorCode behaviorCode, com.crm.dataobject.subscriptions.SubscriptionActionClassificationCode classificationCode, com.crm.dataobject.billing.CRMDOBillingTermScheme billingTermScheme, com.crm.dataobject.accounts.CRMDOAccountReceivable account, com.crm.dataobject.accounts.CRMDOAccountClassification accountClassification, com.crm.dataobject.accounts.CreditRating creditRatingCode, java.util.Date asOfDate) throws java.lang.Exception
behaviorCode
- - the behaviour code to checkclassificationCode
- - the classification code to checkbillingTermScheme
- - the billing term scheme to checkaccount
- - the account to checkaccountClassification
- - the account classification to checkcreditRatingCode
- - the credit rating code to checkasOfDate
- - the as of date to checkjava.lang.Exception
public java.lang.Boolean isPriceChangeAllowed(com.crm.dataobject.billing.CRMDOBillingTermDefinition billingTermDefinition, com.crm.dataobject.billing.CRMDOBillingTerm billingTerm, com.crm.dataobject.billing.BindingState serviceBindingState) throws java.lang.Exception
billingTermDefinition
- - the billing term definition to checkbillingTerm
- - the billing term to checkserviceBindingState
- - the service binding state to checkjava.lang.Exception
public java.lang.Boolean isNegativeBalanceAllowed(com.crm.dataobject.billing.CRMDOBillingTermDefinition billingTermDefinition, com.crm.dataobject.billing.CRMDOBillingTerm billingTerm) throws java.lang.Exception
billingTermDefinition
- - the billing term definition to checkbillingTerm
- - the billing term to checkjava.lang.Exception
public com.crm.dataobject.billing.UsageServiceProcessingMethod getUsageServiceBillingProcessingMethod(com.crm.dataobject.billing.CRMDOBillingTermDefinition billingTermDefinition, com.crm.dataobject.billing.CRMDOBillingTerm billingTerm) throws java.lang.Exception
behaviorCode
- - the behaviour code to checkclassificationCode
- - the classification code to checkbillingTermScheme
- - the billing term scheme to checkaccount
- - the account to checkaccountClassification
- - the account classification to checkcreditRatingCode
- - the credit rating code to checkasOfDate
- - the as of date to checkjava.lang.Exception