public class AccountDataBean
extends java.lang.Object
implements com.ibm.commerce.beans.SmartDataBean, com.ibm.commerce.security.Protectable, com.ibm.commerce.security.Delegator
Constructor and Description |
---|
AccountDataBean()
Constructs an AccountDataBean.
|
AccountDataBean(com.ibm.commerce.payment.objects.AccountAccessBean newAccountAccessBean,
java.lang.Integer newLangId)
Constructs an AccountDataBean by retrieving the account identifier from
an existing AccountAccessBean
|
AccountDataBean(java.lang.Long newAccountId,
java.lang.Integer newLangId)
Constructs an AccountDataBean from an existing account identifier
|
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
findAccountForUserInStoreFromEligibleContracts(java.lang.Long memberId,
java.lang.Integer storeId)
Determines the business account for a given member in a store from their eligible contracts.
|
java.lang.Long |
findAccountForUserInStoreFromOrganization(java.lang.Long memberId,
java.lang.Integer storeId)
Determines the business account for a given member in a store from their organization hierarchy.
|
java.lang.Long |
findAccountHolderFromAccountForUserInStoreFromEligibleContracts(java.lang.Long memberId,
java.lang.Integer storeId)
Determines the account holder of a business account for a given member in a store from their eligible contracts.
|
java.lang.Long |
findAccountHolderFromAccountForUserInStoreFromOrganization(java.lang.Long memberId,
java.lang.Integer storeId)
Determines the account holder of a business account for a given member in a store from their organization hierarchy.
|
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()
Gets the account identifier
|
java.lang.String |
getAccountName()
Gets the name of the account.
|
java.lang.String |
getAccountRemarks()
Gets the remarks in the account
If it can't get the remarks in the account, it will return null.
|
boolean |
getAllowCatalogPurchases()
Returns if the user can purchase under the default contract
|
com.ibm.commerce.command.CommandContext |
getCommandContext()
Returns the current command's context
|
java.lang.String |
getCustomerContactId()
Gets the member id of the customer contact person.
|
java.lang.String |
getCustomerContactInformation()
Gets the customer contact information.
|
java.lang.String |
getCustomerContactName()
Gets the name of the customer contact person.
|
java.lang.String |
getCustomerId()
Gets the customer organization identifier.
|
java.lang.String |
getCustomerName()
Gets the name of the customer organization.
|
com.ibm.commerce.security.Protectable |
getDelegate()
Returns the access control delegate of this data bean
|
boolean |
getMustUsePriceListPreference()
Returns if the contracts under the account must use the price list preference
|
java.lang.String |
getNumberOfContracts()
Returns the number of contracts in this account
|
java.lang.Long |
getOwner()
Returns the member reference number of the owner of this account
|
java.lang.String |
getOwnerReferenceNumber()
Gets the member reference number of the owner of the account.
|
java.lang.String |
getPriceListPreference()
Gets the contract price list preference.
|
java.lang.String |
getRepresentativeContactId()
Gets the member reference number of the representative contact person.
|
java.lang.String |
getRepresentativeContactName()
Gets the name of the representative contact person.
|
java.lang.String |
getRepresentativeId()
Gets the member reference number of the account representative organization.
If it can't get the number, it will return null.
|
java.lang.String |
getRepresentativeName()
Gets the name of the account representative organization.
|
com.ibm.commerce.datatype.TypedProperty |
getRequestProperties()
Gets the request properties
|
java.lang.String |
getSellingOrgId()
Gets the member reference number of the selling organization
|
java.lang.String |
getSellingOrgName()
Gets the name of the selling organization.
|
java.lang.String |
getStoreId()
Gets the store identifier in which to find the account
|
java.lang.String |
getUpdateDate()
Gets the update date of the contract
If it can't get the date, it will return null.
|
void |
populate()
This method is used to populate the attributes from AccountAccessBean.
|
void |
setAccountId(java.lang.String newAccountId)
Sets the ID of the account
|
void |
setAccountName(java.lang.String newAccountName)
Sets the name of the account
|
void |
setCommandContext(com.ibm.commerce.command.CommandContext newICommandContext)
Sets the command context
|
void |
setContractId(java.lang.String param)
Sets the contract identifier for access control purposes
|
void |
setCustomerContactName(java.lang.String newCustomerContactName)
Sets the name of the customer contact person
|
void |
setCustomerName(java.lang.String newCustomerName)
Sets the name of the customer organization
|
void |
setNumberOfContracts(java.lang.String newNumberOfContracts)
Sets the number of contracts in this account
|
void |
setRepresentativeName(java.lang.String newRepresentativeName)
Sets the name of the representative contact person
|
void |
setRequestProperties(com.ibm.commerce.datatype.TypedProperty param)
Sets the request properties.
|
void |
setStoreId(java.lang.String newStoreId)
Sets the store identifier in which to find the account
|
public AccountDataBean()
public AccountDataBean(com.ibm.commerce.payment.objects.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 datapublic java.lang.Long findAccountForUserInStoreFromEligibleContracts(java.lang.Long memberId, java.lang.Integer storeId)
memberId
- the member idstoreId
- the store idpublic java.lang.Long findAccountForUserInStoreFromOrganization(java.lang.Long memberId, java.lang.Integer storeId)
memberId
- the member idstoreId
- the store idpublic java.lang.Long findAccountHolderFromAccountForUserInStoreFromEligibleContracts(java.lang.Long memberId, java.lang.Integer storeId)
memberId
- the member idstoreId
- the store idpublic java.lang.Long findAccountHolderFromAccountForUserInStoreFromOrganization(java.lang.Long memberId, java.lang.Integer storeId)
memberId
- the member idstoreId
- the store idpublic boolean fulfills(java.lang.Long member, java.lang.String relationship) throws java.lang.Exception
fulfills
in interface com.ibm.commerce.security.Protectable
member
- the member id of the accountrelationship
- the relationship the member has with respect to the resourcejava.lang.Exception
public java.lang.String getAccountId()
public java.lang.String getAccountName()
public java.lang.String getAccountRemarks()
public boolean getAllowCatalogPurchases()
public com.ibm.commerce.command.CommandContext getCommandContext()
getCommandContext
in interface com.ibm.commerce.beans.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
getDelegate
in interface com.ibm.commerce.security.Delegator
java.lang.Exception
public boolean getMustUsePriceListPreference()
public java.lang.String getNumberOfContracts()
public java.lang.Long getOwner() throws java.lang.Exception
getOwner
in interface com.ibm.commerce.security.Protectable
java.lang.Exception
public java.lang.String getOwnerReferenceNumber()
public java.lang.String getPriceListPreference()
public java.lang.String getRepresentativeContactId()
public java.lang.String getRepresentativeContactName()
public java.lang.String getRepresentativeId()
public java.lang.String getRepresentativeName()
public com.ibm.commerce.datatype.TypedProperty getRequestProperties()
getRequestProperties
in interface com.ibm.commerce.beans.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
DataBeanManager.activate()
runs.populate
in interface com.ibm.commerce.beans.SmartDataBean
java.lang.Exception
public void setAccountId(java.lang.String newAccountId)
newAccountId
- ID of the accountpublic void setAccountName(java.lang.String newAccountName)
newAccountName
- name of the accountpublic void setCommandContext(com.ibm.commerce.command.CommandContext newICommandContext)
setCommandContext
in interface com.ibm.commerce.beans.SmartDataBean
newICommandContext
- the command context to be setpublic void setContractId(java.lang.String param)
param
- the contract identifier to be setpublic 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)
newNumberOfContracts
- the number of contracts in this accountpublic void setRepresentativeName(java.lang.String newRepresentativeName)
newRepresentativeName
- the representative contact personpublic void setRequestProperties(com.ibm.commerce.datatype.TypedProperty param)
setRequestProperties
in interface com.ibm.commerce.beans.InputDataBean
param
- the request properties to be setpublic void setStoreId(java.lang.String newStoreId)
newStoreId
- store identifier in which to find the account