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

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

public class ShippingTCShipToAddressDataBean
extends java.lang.Object
implements SmartDataBean

Retrieve all the data associated with a Shipping Address Term and Condition 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
ShippingTCShipToAddressDataBean(java.lang.Long contractId, java.lang.Integer languageId)
          Construct an ShippingTCShipToAddressDataBean from an existing contract identifier Find the Shipping Address 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 identifer in which the data was loaded
  TypedProperty getRequestProperties()
          Get the request properties
 java.util.Vector getShippingAddress()
          Get the shipping address term and conditions in the contract
 java.util.Vector getShippingAddress(int i)
          Get a shipping address term and condition in the contract
 void populate()
          Retrieve the Shipping Address data in the contract
 void setCommandContext( CommandContext newICommandContext)
          Set the command context
 void setRequestProperties( TypedProperty param)
          Sets the request properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShippingTCShipToAddressDataBean

public ShippingTCShipToAddressDataBean(java.lang.Long contractId,
                                       java.lang.Integer languageId)
Construct an ShippingTCShipToAddressDataBean from an existing contract identifier Find the Shipping Address terms and conditions in the contract
Parameters:
contractId - Long An existing contract identifier
languageId - Integer The language identifier for which language to retrieve the data
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 identifer in which the data was loaded
Returns:
null

getRequestProperties

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

getShippingAddress

public java.util.Vector getShippingAddress()
Get the shipping address term and conditions in the contract
Returns:
Vector

getShippingAddress

public java.util.Vector getShippingAddress(int i)
Get a shipping address term and condition in the contract
Returns:
Vector

populate

public void populate()
              throws java.lang.Exception
Retrieve the Shipping Address data in the contract
Specified by:
populate in interface SmartDataBean
Throws:
java.lang.Exception

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)
Sets the request properties.
Specified by:
setRequestProperties in interface InputDataBean
Parameters:
param - com.ibm.commerce.datatype.TypedProperty