com.ibm.commerce.tools.contract.beans

Class ReturnTCDataBean

  • java.lang.Object
    • com.ibm.commerce.tools.contract.beans.ReturnTCDataBean
  • All Implemented Interfaces:
    com.ibm.commerce.beans.DataBean, com.ibm.commerce.beans.InputDataBean, com.ibm.commerce.beans.SmartDataBean, com.ibm.commerce.security.Delegator, java.io.Serializable


    public class ReturnTCDataBean
    extends java.lang.Object
    implements com.ibm.commerce.beans.SmartDataBean, com.ibm.commerce.security.Delegator
    This data bean represents a Return Terms and Conditions object. For example, a customer might return a product because it does not work properly. When retrieving all the data associated with the Returns Term and Conditions, the data bean will be called. Sets the contract and language identifiers in order to populate the bean. The data bean maps to a database table TERMCOND
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from interface com.ibm.commerce.beans.DataBean

        emptyString
    • Constructor Summary

      Constructors 
      Constructor and Description
      ReturnTCDataBean(java.lang.Long newContractId, java.lang.Integer newLangId)
      Constructs an ReturnTCDataBean from an existing contract identifier Finds the Returns Policy and Refund terms and conditions in the contract
    • Constructor Detail

      • ReturnTCDataBean

        public ReturnTCDataBean(java.lang.Long newContractId,
                                java.lang.Integer newLangId)
        Constructs an ReturnTCDataBean from an existing contract identifier Finds the Returns Policy and Refund terms and conditions in the contract
        Parameters:
        newContractId - Long An existing contract identifier
        newLangId - Integer The language identifier for which language to retrieve the data
    • Method Detail

      • getCommandContext

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

        public java.lang.Long getContractId()
        Gets the contract identifier for the contract this term and condition are in
        Returns:
        Long
      • getDelegate

        public com.ibm.commerce.security.Protectable getDelegate()
                                                          throws java.lang.Exception
        Returns the access control delegate of this data bean
        Specified by:
        getDelegate in interface com.ibm.commerce.security.Delegator
        Returns:
        com.ibm.commerce.security.Protectable
        Throws:
        java.lang.Exception
      • getLanguageId

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

        public com.ibm.commerce.datatype.TypedProperty getRequestProperties()
        Gets the request properties
        Specified by:
        getRequestProperties in interface com.ibm.commerce.beans.InputDataBean
        Returns:
        null
      • getReturnApprovalPolicy

        public java.lang.String getReturnApprovalPolicy()
        Gets the name of the Returns Approval policy
        Returns:
        java.lang.String
      • getReturnApprovalPolicyNumber

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

        public java.lang.String getReturnChargePolicy()
        Gets the name of the Returns Charge policy
        Returns:
        java.lang.String
      • getReturnChargePolicyNumber

        public java.lang.String getReturnChargePolicyNumber()
        Gets the Returns Charge policy reference number
        Returns:
        java.lang.String
      • getReturnChargeReferenceNumber

        public java.lang.String getReturnChargeReferenceNumber()
        Gets the Returns Charge policy reference number
        Returns:
        java.lang.String
      • getReturnPaymentPolicies

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

        public java.lang.String getReturnPaymentPolicy(int i)
        Gets a Return Refund policy name
        Returns:
        java.lang.String
      • getReturnPaymentPolicyNumber

        public java.lang.String getReturnPaymentPolicyNumber(int i)
        Gets a Return Refund policy reference number
        Returns:
        java.lang.String
      • getReturnPaymentPolicyNumbers

        public java.lang.String[] getReturnPaymentPolicyNumbers()
        Gets a list of the Returns Refund policy reference numbers
        Returns:
        java.lang.String[]
      • getReturnPaymentReferenceNumber

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

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

        public void populate()
                      throws java.lang.Exception
        This method is used to retrieve the Returns data in the contract. Loads data into the data bean when the DataBeanManager.activate() runs.
        Specified by:
        populate in interface com.ibm.commerce.beans.SmartDataBean
        Throws:
        java.lang.Exception
      • setCommandContext

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

        public void setRequestProperties(com.ibm.commerce.datatype.TypedProperty param)
        Sets the request properties.
        Specified by:
        setRequestProperties in interface com.ibm.commerce.beans.InputDataBean
        Parameters:
        param - com.ibm.commerce.datatype.TypedProperty