com.ibm.commerce.tools.contract.beans
Class ReturnTCDataBean

java.lang.Object
  |
  +--com.ibm.commerce.tools.contract.beans.ReturnTCDataBean
All Implemented Interfaces:
DataBean, InputDataBean, java.io.Serializable, SmartDataBean

public class ReturnTCDataBean
extends java.lang.Object
implements SmartDataBean

Retrieve all the data associated with the Returns Term and Conditions Set the contract and language identifiers in order to populate the bean.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.ibm.commerce.beans. SmartDataBean
COPYRIGHT
 
Fields inherited from interface com.ibm.commerce.beans. DataBean
emptyString
 
Constructor Summary
ReturnTCDataBean(java.lang.Long newContractId, java.lang.Integer newLangId)
          Construct an ReturnTCDataBean from an existing contract identifier Find the Returns Policy and Refund terms and conditions in the contract
 
Method Summary
  CommandContext getCommandContext()
          Returns the current command's context
 java.lang.Long getContractId()
          Get the contract identifier for the contract this term and condition is in
 com.ibm.commerce.security.Protectable getDelegate()
          Return the access control delegate of this databean
 java.lang.String getLanguageId()
          Get the language identifier in which the data was retrieved
  TypedProperty getRequestProperties()
          Get the request properties
 java.lang.String getReturnApprovalPolicy()
          Get the name of the Returns Approval policy
 java.lang.String getReturnApprovalPolicyNumber()
          Get the Return Approval policy reference number
 java.lang.String getReturnChargePolicy()
          Get the name of the Returns Charge policy
 java.lang.String getReturnChargePolicyNumber()
          Get the Returns Charge policy reference number
 java.lang.String getReturnChargeReferenceNumber()
          Get the Returns Charge policy reference number
 java.lang.String[] getReturnPaymentPolicies()
          Get the list of Returns Refund policies in the contract
 java.lang.String getReturnPaymentPolicy(int i)
          Get a Returns Refund policy name
 java.lang.String getReturnPaymentPolicyNumber(int i)
          Get a Returns Refund policy reference number
 java.lang.String[] getReturnPaymentPolicyNumbers()
          Get a list of the Returns Refuncd policy reference numbers
 java.lang.String getReturnPaymentReferenceNumber(int i)
          Get a Return Refund policy reference number
 java.lang.String[] getReturnPaymentReferenceNumbers()
          Get a list of the Returns Refund policy reference numbers
 void populate()
          Populates the databean with data elements.
 void setCommandContext( CommandContext newICommandContext)
          Set the command context
 void setRequestProperties( TypedProperty param)
          Set the requestProperties associated with the data bean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReturnTCDataBean

public ReturnTCDataBean(java.lang.Long newContractId,
                        java.lang.Integer newLangId)
Construct an ReturnTCDataBean from an existing contract identifier Find the Returns Policy and Refund terms and conditions in the contract
Method Detail

getCommandContext

public CommandContext getCommandContext()
Returns the current command's context
Specified by:
getCommandContext in interface SmartDataBean
Returns:
com.ibm.commerce.command.CommandContext

getContractId

public java.lang.Long getContractId()
Get the contract identifier for the contract this term and condition is in
Returns:
Long

getDelegate

public com.ibm.commerce.security.Protectable getDelegate()
                                                  throws java.lang.Exception
Return the access control delegate of this databean
Returns:
com.ibm.commerce.security.Protectable
Throws:
java.lang.Exception

getLanguageId

public java.lang.String getLanguageId()
Get the language identifier in which the data was retrieved
Returns:
java.lang.String

getRequestProperties

public TypedProperty getRequestProperties()
Get the request properties
Specified by:
getRequestProperties in interface InputDataBean
Returns:
null

getReturnApprovalPolicy

public java.lang.String getReturnApprovalPolicy()
Get the name of the Returns Approval policy
Returns:
java.lang.String

getReturnApprovalPolicyNumber

public java.lang.String getReturnApprovalPolicyNumber()
Get the Return Approval policy reference number
Returns:
java.lang.String

getReturnChargePolicy

public java.lang.String getReturnChargePolicy()
Get the name of the Returns Charge policy
Returns:
java.lang.String

getReturnChargePolicyNumber

public java.lang.String getReturnChargePolicyNumber()
Get the Returns Charge policy reference number
Returns:
java.lang.String

getReturnChargeReferenceNumber

public java.lang.String getReturnChargeReferenceNumber()
Get the Returns Charge policy reference number
Returns:
java.lang.String

getReturnPaymentPolicies

public java.lang.String[] getReturnPaymentPolicies()
Get the list of Returns Refund policies in the contract
Returns:
java.lang.String[]

getReturnPaymentPolicy

public java.lang.String getReturnPaymentPolicy(int i)
Get a Returns Refund policy name
Returns:
java.lang.String

getReturnPaymentPolicyNumber

public java.lang.String getReturnPaymentPolicyNumber(int i)
Get a Returns Refund policy reference number
Returns:
java.lang.String

getReturnPaymentPolicyNumbers

public java.lang.String[] getReturnPaymentPolicyNumbers()
Get a list of the Returns Refuncd policy reference numbers
Returns:
java.lang.String[]

getReturnPaymentReferenceNumber

public java.lang.String getReturnPaymentReferenceNumber(int i)
Get a Return Refund policy reference number
Returns:
java.lang.String

getReturnPaymentReferenceNumbers

public java.lang.String[] getReturnPaymentReferenceNumbers()
Get a list of the Returns Refund policy reference numbers
Returns:
java.lang.String[]

populate

public void populate()
              throws java.lang.Exception
Description copied from interface: SmartDataBean
Populates the databean with data elements.
Specified by:
populate in interface SmartDataBean
Throws:
java.lang.Exception - if there is a problem populating the databean with data.

setCommandContext

public void setCommandContext(CommandContext newICommandContext)
Set the command context
Specified by:
setCommandContext in interface SmartDataBean
Parameters:
newICommandContext - com.ibm.commerce.command.CommandContext

setRequestProperties

public void setRequestProperties(TypedProperty param)
Description copied from interface: InputDataBean
Set the requestProperties associated with the data bean. If the requestProperties is null when the activate method on the DataBeanManager is invoked, the DataBeanManager sets the request properties based on the request properties set in the request.
Specified by:
setRequestProperties in interface InputDataBean