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

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

public class ProductSetTCDataBean
extends java.lang.Object
implements SmartDataBean

Retrieve all the data associated with a Product Set Term and Condition Set the contract and language identifiers in order to populate the bean.

See Also:
Serialized Form

Field Summary
static int PRODUCTSET_TC_PRODUCTSET_NAME
          PRODUCTSET_TC_PRODUCTSET_NAME constant
static int PRODUCTSET_TC_PRODUCTSET_POLICY_ID
          PRODUCTSET_TC_PRODUCTSET_POLICY_ID constant
static int PRODUCTSET_TC_PRODUCTSET_POLICY_NAME
          PRODUCTSET_TC_PRODUCTSET_POLICY_NAME constant
static int PRODUCTSET_TC_PRODUCTSET_POLICY_SHORT_DESCRIPTION
          PRODUCTSET_TC_PRODUCTSET_POLICY_SHORT_DESCRIPTION constant
static int PRODUCTSET_TC_PRODUCTSET_SELECTIONS
          PRODUCTSET_TC_PRODUCTSET_SELECTIONS constant
static int PRODUCTSET_TC_REFERENCE_NUMBER
           
 
Fields inherited from interface com.ibm.commerce.beans. SmartDataBean
COPYRIGHT
 
Fields inherited from interface com.ibm.commerce.beans. DataBean
emptyString
 
Constructor Summary
ProductSetTCDataBean(java.lang.Long newContractId, java.lang.Integer newLanguageId)
          Construct an ProductSetTCDataBean from an existing contract identifier Find the Product Set 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
 java.util.Vector getCustomExclusionPS()
          Get all the custom exclusion product set terms and conditions in the contract
 java.util.Vector getCustomExclusionPS(int i)
          Get a custom exclusion product set term and condition in the contract
 java.util.Vector getCustomInclusionPS()
          Get all the custom inclusion product set terms and conditions in the contract
 java.util.Vector getCustomInclusionPS(int i)
          Get a custom inclusion product set term and condition in the contract
 com.ibm.commerce.security.Protectable getDelegate()
          Return the access control delegate of this databean
  TypedProperty getRequestProperties()
          Gets request properties
 java.util.Vector getStandardExclusionPS()
          Get all the standard exclusion product set terms and conditions in the contract
 java.util.Vector getStandardExclusionPS(int i)
          Get a standard exclusion product set term and condition in the contract
 java.util.Vector getStandardInclusionPS()
          Get all the standard inclusion product set terms and conditions in the contract
 java.util.Vector getStandardInclusionPS(int i)
          Get a standard inclusion product set term and condition in the contract
 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
 

Field Detail

PRODUCTSET_TC_REFERENCE_NUMBER

public static final int PRODUCTSET_TC_REFERENCE_NUMBER
See Also:
Constant Field Values

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_SELECTIONS

public static final int PRODUCTSET_TC_PRODUCTSET_SELECTIONS
PRODUCTSET_TC_PRODUCTSET_SELECTIONS 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_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_SHORT_DESCRIPTION

public static final int PRODUCTSET_TC_PRODUCTSET_POLICY_SHORT_DESCRIPTION
PRODUCTSET_TC_PRODUCTSET_POLICY_SHORT_DESCRIPTION constant
See Also:
Constant Field Values
Constructor Detail

ProductSetTCDataBean

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

getCustomExclusionPS

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

getCustomExclusionPS

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

getCustomInclusionPS

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

getCustomInclusionPS

public java.util.Vector getCustomInclusionPS(int i)
Get 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
Return the access control delegate of this databean
Returns:
com.ibm.commerce.security.Protectable
Throws:
java.lang.Exception

getRequestProperties

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

getStandardExclusionPS

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

getStandardExclusionPS

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

getStandardInclusionPS

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

getStandardInclusionPS

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

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