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

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

public class InvoicingTCDataBean
extends java.lang.Object
implements SmartDataBean

Retrieve all the data associated with a Invoicing 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
InvoicingTCDataBean(java.lang.Long newContractId, java.lang.Integer newLangId)
          Construct an InvoicingTCDataBean from an existing account identifier Find the Invoicing terms and conditions in the account
 
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
 boolean getHasEMail()
          Is there a send the invoice by e-mail term and condition in the account
 java.lang.String getHasEMailReferenceNumber()
          Get the reference number of the e-mail term and condition
 boolean getHasInTheBox()
          Determines whethere there is a send the invoice in the box term and condition in the account
 java.lang.String getHasInTheBoxReferenceNumber()
          Get the reference number of the in the box term and condition
 boolean getHasRegularMail()
          Is there a send the invoice by regular mail term and condition in the account
 java.lang.String getHasRegularMailReferenceNumber()
          Get the reference number of the regular mail term and condition
  TypedProperty getRequestProperties()
          Gets 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

InvoicingTCDataBean

public InvoicingTCDataBean(java.lang.Long newContractId,
                           java.lang.Integer newLangId)
Construct an InvoicingTCDataBean from an existing account identifier Find the Invoicing 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

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

getHasEMail

public boolean getHasEMail()
Is there a send the invoice by e-mail term and condition in the account
Returns:
boolean

getHasEMailReferenceNumber

public java.lang.String getHasEMailReferenceNumber()
Get the reference number of the e-mail term and condition
Returns:
java.lang.String

getHasInTheBox

public boolean getHasInTheBox()
Determines whethere there is a send the invoice in the box term and condition in the account
Returns:
boolean

getHasInTheBoxReferenceNumber

public java.lang.String getHasInTheBoxReferenceNumber()
Get the reference number of the in the box term and condition
Returns:
java.lang.String

getHasRegularMail

public boolean getHasRegularMail()
Is there a send the invoice by regular mail term and condition in the account
Returns:
boolean

getHasRegularMailReferenceNumber

public java.lang.String getHasRegularMailReferenceNumber()
Get the reference number of the regular mail term and condition
Returns:
java.lang.String

getRequestProperties

public TypedProperty getRequestProperties()
Gets 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