com.ibm.commerce.tools.contract.beans

Class ProductSetTCDataBean

  • java.lang.Object
    • com.ibm.commerce.tools.contract.beans.ProductSetTCDataBean
  • 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 ProductSetTCDataBean
    extends java.lang.Object
    implements com.ibm.commerce.beans.SmartDataBean, com.ibm.commerce.security.Delegator
    This data bean represents a Product Set Term and Condition object. The Product Set Term and Condition are in a contract. Product set partite the catalog into logical subsets and allow you to show different parts of your catalog to different contract participants. When retrieving all the data associated with a Product Set Term and Condition, 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
    • Constructor Summary

      Constructors 
      Constructor and Description
      ProductSetTCDataBean(java.lang.Long newContractId, java.lang.Integer newLanguageId)
      Constructs an ProductSetTCDataBean from an existing contract identifier.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      com.ibm.commerce.command.CommandContext getCommandContext()
      Returns the current command's context
      java.lang.Long getContractId()
      Gets the contract identifier for the contract this term and condition are in
      java.util.Vector getCustomExclusionPS()
      Gets all the custom exclusion product set terms and conditions in the contract
      java.util.Vector getCustomExclusionPS(int i)
      Gets a custom exclusion product set term and condition in the contract
      java.util.Vector getCustomInclusionPS()
      Gets all the custom inclusion product set terms and conditions in the contract
      java.util.Vector getCustomInclusionPS(int i)
      Gets a custom inclusion product set term and condition in the contract
      com.ibm.commerce.security.Protectable getDelegate()
      Returns the access control delegate of this data bean
      com.ibm.commerce.datatype.TypedProperty getRequestProperties()
      Gets request properties
      java.util.Vector getStandardExclusionPS()
      Gets all the standard exclusion product set terms and conditions in the contract
      java.util.Vector getStandardExclusionPS(int i)
      Gets a standard exclusion product set term and condition in the contract
      java.util.Vector getStandardInclusionPS()
      Gets all the standard inclusion product set terms and conditions in the contract
      java.util.Vector getStandardInclusionPS(int i)
      Gets a standard inclusion product set term and condition in the contract
      void populate()
      This method is used to retrieve the Product Set data in the contract.
      void setCommandContext(com.ibm.commerce.command.CommandContext newICommandContext)
      Sets the command context
      void setRequestProperties(com.ibm.commerce.datatype.TypedProperty param)
      Sets the request properties.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • PRODUCTSET_TC_PRODUCTSET_NAME

        public static final int PRODUCTSET_TC_PRODUCTSET_NAME
        PRODUCTSET_TC_PRODUCTSET_NAME constant
        See Also:
        Constant Field Values
      • PRODUCTSET_TC_PRODUCTSET_POLICY_ID

        public static final int PRODUCTSET_TC_PRODUCTSET_POLICY_ID
        PRODUCTSET_TC_PRODUCTSET_POLICY_ID constant
        See Also:
        Constant Field Values
      • PRODUCTSET_TC_PRODUCTSET_POLICY_NAME

        public static final int PRODUCTSET_TC_PRODUCTSET_POLICY_NAME
        PRODUCTSET_TC_PRODUCTSET_POLICY_NAME constant
        See Also:
        Constant Field Values
      • PRODUCTSET_TC_PRODUCTSET_POLICY_SHORT_DESCRIPTION

        public static final int PRODUCTSET_TC_PRODUCTSET_POLICY_SHORT_DESCRIPTION
        PRODUCTSET_TC_PRODUCTSET_POLICY_SHORT_DESCRIPTION constant
        See Also:
        Constant Field Values
      • PRODUCTSET_TC_PRODUCTSET_SELECTIONS

        public static final int PRODUCTSET_TC_PRODUCTSET_SELECTIONS
        PRODUCTSET_TC_PRODUCTSET_SELECTIONS constant
        See Also:
        Constant Field Values
      • PRODUCTSET_TC_REFERENCE_NUMBER

        public static final int PRODUCTSET_TC_REFERENCE_NUMBER
        See Also:
        Constant Field Values
    • Constructor Detail

      • ProductSetTCDataBean

        public ProductSetTCDataBean(java.lang.Long newContractId,
                                    java.lang.Integer newLanguageId)
        Constructs an ProductSetTCDataBean from an existing contract identifier. Finds the Product Set terms and conditions in the contract
        Parameters:
        newContractId - Long An existing contract identifier
        newLanguageId - 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
      • getCustomExclusionPS

        public java.util.Vector getCustomExclusionPS()
        Gets all the custom exclusion product set terms and conditions in the contract
        Returns:
        java.util.Vector
      • getCustomExclusionPS

        public java.util.Vector getCustomExclusionPS(int i)
        Gets a custom exclusion product set term and condition in the contract
        Returns:
        java.util.Vector
      • getCustomInclusionPS

        public java.util.Vector getCustomInclusionPS()
        Gets all the custom inclusion product set terms and conditions in the contract
        Returns:
        java.util.Vector
      • getCustomInclusionPS

        public java.util.Vector getCustomInclusionPS(int i)
        Gets a custom inclusion product set term and condition in the contract
        Returns:
        java.util.Vector
      • 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
      • getRequestProperties

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

        public java.util.Vector getStandardExclusionPS()
        Gets all the standard exclusion product set terms and conditions in the contract
        Returns:
        java.util.Vector
      • getStandardExclusionPS

        public java.util.Vector getStandardExclusionPS(int i)
        Gets a standard exclusion product set term and condition in the contract
        Returns:
        java.util.Vector
      • getStandardInclusionPS

        public java.util.Vector getStandardInclusionPS()
        Gets all the standard inclusion product set terms and conditions in the contract
        Returns:
        java.util.Vector
      • getStandardInclusionPS

        public java.util.Vector getStandardInclusionPS(int i)
        Gets a standard inclusion product set term and condition in the contract
        Returns:
        java.util.Vector
      • populate

        public void populate()
                      throws java.lang.Exception
        This method is used to retrieve the Product Set 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