java.lang.Object | +--com.ibm.commerce.tools.contract.beans.AccountDataBean
Retrieve all the data associated with an account. Set the account and language identifiers in order to populate the bean.
Field Summary | |
---|---|
protected
java.lang.String |
storeId |
Fields inherited from interface com.ibm.commerce.beans. SmartDataBean |
COPYRIGHT |
Fields inherited from interface com.ibm.commerce.beans. DataBean |
emptyString |
Constructor Summary | |
---|---|
AccountDataBean() Construct an AccountDataBean | |
AccountDataBean(
AccountAccessBean newAccountAccessBean,
java.lang.Integer newLangId) Construct an AccountDataBean by retrieving the account identifier from an existing AccountAccessBean | |
AccountDataBean(java.lang.Long newAccountId,
java.lang.Integer newLangId) Construct an AccountDataBean from an existing account identifier |
Method Summary | |
---|---|
boolean |
fulfills(java.lang.Long member,
java.lang.String relationship) Determines if a given member fulfills a given relationship with the resource. |
java.lang.String |
getAccountId() Get the account identifier |
java.lang.String |
getAccountName() Get the name of the account |
java.lang.String |
getAccountRemarks() Get the remarks in the account |
boolean |
getAllowCatalogPurchases() Return if the user can purchase under the default contract |
CommandContext |
getCommandContext() Returns the current command's context |
java.lang.String |
getCustomerContactId() Get the member id of the customer contact person |
java.lang.String |
getCustomerContactInformation() Get the customer contact information |
java.lang.String |
getCustomerContactName() Get the name of the customer contact person |
java.lang.String |
getCustomerId() Get the customer organization identifier |
java.lang.String |
getCustomerName() Get the name of the customer organization |
com.ibm.commerce.security.Protectable |
getDelegate() Return the access control delegate of this databean |
java.lang.String |
getNumberOfContracts() Return the number of contracts in this account |
java.lang.Long |
getOwner() Return the member reference number of the owner of this account |
java.lang.String |
getOwnerReferenceNumber() Get the member reference number of the owner of the account |
java.lang.String |
getRepresentativeContactId() Get the member reference number of the representative contact person |
java.lang.String |
getRepresentativeContactName() Get the name of the representative contact person |
java.lang.String |
getRepresentativeId() Get the member reference number of the account representative organization |
java.lang.String |
getRepresentativeName() Get the name of the account representative organization |
TypedProperty |
getRequestProperties() Get the request properties |
java.lang.String |
getSellingOrgId() Get the member reference number of the selling organization |
java.lang.String |
getSellingOrgName() Get the name of the selling organization |
java.lang.String |
getStoreId() Get the store identifier in which to find the account |
java.lang.String |
getUpdateDate() Get the update date of the contract |
void |
populate() Populates the databean with data elements. |
void |
setAccountId(java.lang.String newAccountId) Set the ID of the account |
void |
setAccountName(java.lang.String newAccountName) Set the name of the account |
void |
setCommandContext(
CommandContext newICommandContext) Set the command context |
void |
setContractId(java.lang.String param) Sets the contract identifier for access control purposes |
void |
setCustomerContactName(java.lang.String newCustomerContactName) Set the name of the customer contact person |
void |
setCustomerName(java.lang.String newCustomerName) Set the name of the customer organization |
void |
setNumberOfContracts(java.lang.String newNumberOfContracts) Return the number of contracts in this account |
void |
setRepresentativeName(java.lang.String newRepresentativeName) Set the name of the representative contact person |
void |
setRequestProperties(
TypedProperty param) Set the request properties. |
void |
setStoreId(java.lang.String newStoreId) Set the store identifier in which to find the account |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String storeId
Constructor Detail |
---|
public AccountDataBean()
public AccountDataBean(AccountAccessBean newAccountAccessBean, java.lang.Integer newLangId)
newAccountAccessBean
- an existing AccountAccessBeannewLangId
- language identifier for which language to retrieve
the datapublic AccountDataBean(java.lang.Long newAccountId, java.lang.Integer newLangId)
newAccountId
- an existing account identifiernewLangId
- the language identifier for which language to
retrieve the dataMethod Detail |
---|
public java.lang.String getAccountId()
public java.lang.String getAccountName()
public java.lang.String getAccountRemarks()
public boolean getAllowCatalogPurchases()
public CommandContext getCommandContext()
getCommandContext
in interface
SmartDataBean
public java.lang.String getCustomerContactId()
public java.lang.String getCustomerContactInformation()
public java.lang.String getCustomerContactName()
public java.lang.String getCustomerId()
public java.lang.String getCustomerName()
public com.ibm.commerce.security.Protectable getDelegate() throws java.lang.Exception
java.lang.Exception
public java.lang.String getNumberOfContracts()
public java.lang.Long getOwner() throws java.lang.Exception, java.rmi.RemoteException
java.rmi.RemoteException
java.lang.Exception
public java.lang.String getOwnerReferenceNumber()
public java.lang.String getRepresentativeContactId()
public java.lang.String getRepresentativeContactName()
public java.lang.String getRepresentativeId()
public java.lang.String getRepresentativeName()
public TypedProperty getRequestProperties()
getRequestProperties
in interface
InputDataBean
public java.lang.String getSellingOrgId()
public java.lang.String getSellingOrgName()
public java.lang.String getStoreId()
public java.lang.String getUpdateDate()
public void populate() throws java.lang.Exception
SmartDataBean
populate
in interface
SmartDataBean
java.lang.Exception
- if there is a problem populating the
databean with data.public void setAccountId(java.lang.String newAccountId)
newAccountId
- ID of the accountpublic void setAccountName(java.lang.String newAccountName)
newAccountName
- name of the accountpublic void setCustomerContactName(java.lang.String newCustomerContactName)
newCustomerContactName
- the name of the customer contract
personpublic void setCustomerName(java.lang.String newCustomerName)
newCustomerName
- the name of the customer
organizationpublic void setNumberOfContracts(java.lang.String newNumberOfContracts)
public void setRepresentativeName(java.lang.String newRepresentativeName)
newRepresentativeName
- the represenative contact
personpublic void setStoreId(java.lang.String newStoreId)
newStoreId
- store identifier in which to find the
accountpublic void setCommandContext(CommandContext newICommandContext)
setCommandContext
in interface
SmartDataBean
newICommandContext
- the command context to be
setpublic void setContractId(java.lang.String param)
param
- the contract identifier to be setpublic void setRequestProperties(TypedProperty param)
setRequestProperties
in interface
InputDataBean
param
- the request properties to be setpublic boolean fulfills(java.lang.Long member, java.lang.String relationship) throws java.lang.Exception, java.rmi.RemoteException
member
- the member id of the accountrelationship
- the relationship the member has with respect to
the resourcejava.rmi.RemoteException
java.lang.Exception