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

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

public class PurchaseOrderTCDataBean
extends java.lang.Object
implements SmartDataBean

Retrieve all the data associated with a Purchase Order Term and Condition Set the account 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
PurchaseOrderTCDataBean(java.lang.Long newContractId, java.lang.Integer newLangId)
          Construct an PurchaseOrderTCDataBean from an existing account identifier Find the Purchase Order terms and conditions in the account
 
Method Summary
  CommandContext getCommandContext()
          Returns the current command's context
 com.ibm.commerce.security.Protectable getDelegate()
          Return the access control delegate of this databean
 java.lang.String[] getPOBNumber()
          Return the list of blanket purchase order numbers
 java.lang.String[] getPOBReferenceNumber()
          Return the list of blanket purchase order reference numbers
 int getPOIndividual()
          Return whether there is an individual purchase order
 java.lang.String getPOIReferenceNumber()
          Return the individual purchase order reference number
 java.lang.String[] getPOLCurrency()
          Return the list of currencies of the limited purchase orders
 java.lang.String[] getPOLNumber()
          Return the list of limited purchase order numbers
 java.lang.String[] getPOLReferenceNumber()
          Return the list of limited purchase order reference numbers
 java.lang.String[] getPOLValue()
          Return the list of currency values for the limited purchase orders
  TypedProperty getRequestProperties()
          Get the request properties
 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

PurchaseOrderTCDataBean

public PurchaseOrderTCDataBean(java.lang.Long newContractId,
                               java.lang.Integer newLangId)
Construct an PurchaseOrderTCDataBean from an existing account identifier Find the Purchase Order terms and conditions in the account
Parameters:
newContractId - Long An existing contract identifier
newLangId - 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

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

getPOBNumber

public java.lang.String[] getPOBNumber()
Return the list of blanket purchase order numbers
Returns:
java.lang.String[]

getPOBReferenceNumber

public java.lang.String[] getPOBReferenceNumber()
Return the list of blanket purchase order reference numbers
Returns:
java.lang.String[]

getPOIndividual

public int getPOIndividual()
Return whether there is an individual purchase order
Returns:
int

getPOIReferenceNumber

public java.lang.String getPOIReferenceNumber()
Return the individual purchase order reference number
Returns:
java.lang.String

getPOLCurrency

public java.lang.String[] getPOLCurrency()
Return the list of currencies of the limited purchase orders
Returns:
java.lang.String[]

getPOLNumber

public java.lang.String[] getPOLNumber()
Return the list of limited purchase order numbers
Returns:
java.lang.String[]

getPOLReferenceNumber

public java.lang.String[] getPOLReferenceNumber()
Return the list of limited purchase order reference numbers
Returns:
java.lang.String[]

getPOLValue

public java.lang.String[] getPOLValue()
Return the list of currency values for the limited purchase orders
Returns:
java.lang.String[]

getRequestProperties

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

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