public class AccountDataBean extends java.lang.Object implements SmartDataBean, Protectable, Delegator
Modifier and Type | Field and Description |
---|---|
protected java.lang.String | storeId |
Constructor and Description |
---|
AccountDataBean()
Constructs an AccountDataBean.
|
AccountDataBean(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
|
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.
|
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.
|
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(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(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(AccountAccessBean newAccountAccessBean, java.lang.Integer newLangId)
public AccountDataBean(java.lang.Long newAccountId, java.lang.Integer newLangId)
public java.lang.String getAccountId()
public java.lang.String getAccountName()
public java.lang.String getAccountRemarks()
public boolean getAllowCatalogPurchases()
public CommandContext getCommandContext()
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 Protectable getDelegate() throws java.lang.Exception
public java.lang.String getNumberOfContracts()
public java.lang.Long getOwner() throws java.lang.Exception, java.rmi.RemoteException
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()
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
public void setAccountId(java.lang.String newAccountId)
public void setAccountName(java.lang.String newAccountName)
public void setCustomerContactName(java.lang.String newCustomerContactName)
public void setCustomerName(java.lang.String newCustomerName)
public void setNumberOfContracts(java.lang.String newNumberOfContracts)
public void setRepresentativeName(java.lang.String newRepresentativeName)
public void setStoreId(java.lang.String newStoreId)
public void setCommandContext(CommandContext newICommandContext)
public void setContractId(java.lang.String param)
public void setRequestProperties(TypedProperty param)
public boolean fulfills(java.lang.Long member, java.lang.String relationship) throws java.lang.Exception, java.rmi.RemoteException
public java.lang.Long findAccountForUserInStoreFromEligibleContracts(java.lang.Long memberId, java.lang.Integer storeId)
public java.lang.Long findAccountHolderFromAccountForUserInStoreFromEligibleContracts(java.lang.Long memberId, java.lang.Integer storeId)
public java.lang.Long findAccountForUserInStoreFromOrganization(java.lang.Long memberId, java.lang.Integer storeId)
public java.lang.Long findAccountHolderFromAccountForUserInStoreFromOrganization(java.lang.Long memberId, java.lang.Integer storeId)
public java.lang.String getPriceListPreference()
public boolean getMustUsePriceListPreference()