public class AddressBookTCDataBean
extends java.lang.Object
implements com.ibm.commerce.beans.SmartDataBean, com.ibm.commerce.security.Delegator
Constructor and Description |
---|
AddressBookTCDataBean(java.lang.Long newContractId,
java.lang.Integer newLangId,
java.lang.String type)
Constructs an AddressBookTCDataBean from an existing contract identifier
Find the Address Book terms and conditions in the contract
|
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
|
com.ibm.commerce.security.Protectable |
getDelegate()
Returns the access control delegate of this data bean
|
boolean |
getHasTC()
Determines whether the contract has an address book term and condition.
|
java.lang.String |
getReferenceNumber()
Gets the reference number of the order approval term and condition in the contract
|
com.ibm.commerce.datatype.TypedProperty |
getRequestProperties()
Gets the request properties
|
boolean |
getUseAccountAddressBook()
Returns if the customer can use addresses from their account's organization's address book.
|
boolean |
getUseParentOrgAddressBook()
Returns if the customer can use addresses from their parent organization's address book.
|
boolean |
getUsePersonalAddressBook()
Returns whether the customer can use addresses from their personal address book.
|
void |
populate()
This method is used to retrieve the Address Book 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.
|
public AddressBookTCDataBean(java.lang.Long newContractId, java.lang.Integer newLangId, java.lang.String type)
newContractId
- Long An existing contract identifiernewLangId
- Integer The language identifier for which language to retrieve the datatype
- String The type of address book, Valid values are P (primary address book) or
S (secondary address book).public com.ibm.commerce.command.CommandContext getCommandContext()
getCommandContext
in interface com.ibm.commerce.beans.SmartDataBean
public java.lang.Long getContractId()
public com.ibm.commerce.security.Protectable getDelegate() throws java.lang.Exception
getDelegate
in interface com.ibm.commerce.security.Delegator
java.lang.Exception
public boolean getHasTC()
public java.lang.String getReferenceNumber()
public com.ibm.commerce.datatype.TypedProperty getRequestProperties()
getRequestProperties
in interface com.ibm.commerce.beans.InputDataBean
public boolean getUseAccountAddressBook()
public boolean getUseParentOrgAddressBook()
public boolean getUsePersonalAddressBook()
public void populate() throws java.lang.Exception
DataBeanManager.activate()
runs.populate
in interface com.ibm.commerce.beans.SmartDataBean
java.lang.Exception
public void setCommandContext(com.ibm.commerce.command.CommandContext newICommandContext)
setCommandContext
in interface com.ibm.commerce.beans.SmartDataBean
newICommandContext
- com.ibm.commerce.command.CommandContextpublic void setRequestProperties(com.ibm.commerce.datatype.TypedProperty param)
setRequestProperties
in interface com.ibm.commerce.beans.InputDataBean
param
- com.ibm.commerce.datatype.TypedProperty