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

java.lang.Object
  com.ibm.commerce.tools.contract.beans.AccountDataBean
All Implemented Interfaces:
DataBean, Delegator, InputDataBean, Protectable, java.io.Serializable, SmartDataBean

public class AccountDataBean
extends java.lang.Object
implements SmartDataBean, Protectable, Delegator

Retrieve all the data associated with an account. Set the account and language identifiers in order to populate the bean.

See Also:
Serialized Form

Field Summary
protected java.lang.String storeId
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
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

storeId

protected java.lang.String storeId
Constructor Detail

AccountDataBean

public AccountDataBean()
Construct an AccountDataBean

AccountDataBean

public AccountDataBean(AccountAccessBean newAccountAccessBean,
                       java.lang.Integer newLangId)
Construct an AccountDataBean by retrieving the account identifier from an existing AccountAccessBean
Parameters:
newAccountAccessBean - an existing AccountAccessBean
newLangId - language identifier for which language to retrieve the data

AccountDataBean

public AccountDataBean(java.lang.Long newAccountId,
                       java.lang.Integer newLangId)
Construct an AccountDataBean from an existing account identifier
Parameters:
newAccountId - an existing account identifier
newLangId - the language identifier for which language to retrieve the data
Method Detail

getAccountId

public java.lang.String getAccountId()
Get the account identifier
Returns:
the account identifier

getAccountName

public java.lang.String getAccountName()
Get the name of the account
Returns:
the name of the account

getAccountRemarks

public java.lang.String getAccountRemarks()
Get the remarks in the account
Returns:
the remarks in the account

getAllowCatalogPurchases

public boolean getAllowCatalogPurchases()
Return if the user can purchase under the default contract
Returns:
true if a user can purchase under the default contract

getCommandContext

public CommandContext getCommandContext()
Returns the current command's context
Specified by:
getCommandContext in interface SmartDataBean
Returns:
the current command's context

getCustomerContactId

public java.lang.String getCustomerContactId()
Get the member id of the customer contact person
Returns:
the member id of the customer contact person

getCustomerContactInformation

public java.lang.String getCustomerContactInformation()
Get the customer contact information
Returns:
the customer contact information

getCustomerContactName

public java.lang.String getCustomerContactName()
Get the name of the customer contact person
Returns:
the name of the customer contact person

getCustomerId

public java.lang.String getCustomerId()
Get the customer organization identifier
Returns:
the customer organization identifier

getCustomerName

public java.lang.String getCustomerName()
Get the name of the customer organization
Returns:
the name of the customer organization

getDelegate

public Protectable getDelegate()
                        throws java.lang.Exception
Return the access control delegate of this databean
Specified by:
getDelegate in interface Delegator
Returns:
the access control delegate of this databean
Throws:
java.lang.Exception

getNumberOfContracts

public java.lang.String getNumberOfContracts()
Return the number of contracts in this account
Returns:
the number of contracts in this account

getOwner

public java.lang.Long getOwner()
                        throws java.lang.Exception,
                               java.rmi.RemoteException
Return the member reference number of the owner of this account
Specified by:
getOwner in interface Protectable
Returns:
the member reference number of the owner of this account
Throws:
java.rmi.RemoteException
java.lang.Exception

getOwnerReferenceNumber

public java.lang.String getOwnerReferenceNumber()
Get the member reference number of the owner of the account
Returns:
the member reference number of the owner of the account

getRepresentativeContactId

public java.lang.String getRepresentativeContactId()
Get the member reference number of the representative contact person
Returns:
the member reference number of the representative contact person

getRepresentativeContactName

public java.lang.String getRepresentativeContactName()
Get the name of the representative contact person
Returns:
the name of the representative contact person

getRepresentativeId

public java.lang.String getRepresentativeId()
Get the member reference number of the account representative organization
Returns:
the member reference number of the account representative organization

getRepresentativeName

public java.lang.String getRepresentativeName()
Get the name of the account representative organization
Returns:
the name of the account representative organization

getRequestProperties

public TypedProperty getRequestProperties()
Get the request properties
Specified by:
getRequestProperties in interface InputDataBean
Returns:
null at this point

getSellingOrgId

public java.lang.String getSellingOrgId()
Get the member reference number of the selling organization
Returns:
the member reference number of the selling organization

getSellingOrgName

public java.lang.String getSellingOrgName()
Get the name of the selling organization
Returns:
the name of the selling organization

getStoreId

public java.lang.String getStoreId()
Get the store identifier in which to find the account
Returns:
store identifier in which to find the account

getUpdateDate

public java.lang.String getUpdateDate()
Get the update date of the contract
Returns:
the update date of the contract

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.

setAccountId

public void setAccountId(java.lang.String newAccountId)
Set the ID of the account
Parameters:
newAccountId - ID of the account

setAccountName

public void setAccountName(java.lang.String newAccountName)
Set the name of the account
Parameters:
newAccountName - name of the account

setCustomerContactName

public void setCustomerContactName(java.lang.String newCustomerContactName)
Set the name of the customer contact person
Parameters:
newCustomerContactName - the name of the customer contract person

setCustomerName

public void setCustomerName(java.lang.String newCustomerName)
Set the name of the customer organization
Parameters:
newCustomerName - the name of the customer organization

setNumberOfContracts

public void setNumberOfContracts(java.lang.String newNumberOfContracts)
Return the number of contracts in this account
Returns:
the number of contracts in this account

setRepresentativeName

public void setRepresentativeName(java.lang.String newRepresentativeName)
Set the name of the representative contact person
Parameters:
newRepresentativeName - the represenative contact person

setStoreId

public void setStoreId(java.lang.String newStoreId)
Set the store identifier in which to find the account
Parameters:
newStoreId - store identifier in which to find the account

setCommandContext

public void setCommandContext(CommandContext newICommandContext)
Set the command context
Specified by:
setCommandContext in interface SmartDataBean
Parameters:
newICommandContext - the command context to be set

setContractId

public void setContractId(java.lang.String param)
Sets the contract identifier for access control purposes
Parameters:
param - the contract identifier to be set

setRequestProperties

public void setRequestProperties(TypedProperty param)
Set the request properties.
Specified by:
setRequestProperties in interface InputDataBean
Parameters:
param - the request properties to be set

fulfills

public boolean fulfills(java.lang.Long member,
                        java.lang.String relationship)
                 throws java.lang.Exception,
                        java.rmi.RemoteException
Determines if a given member fulfills a given relationship with the resource.
Specified by:
fulfills in interface Protectable
Parameters:
member - the member id of the account
relationship - the relationship the member has with respect to the resource
Returns:
true if the member fulfills the relationship with the resource
Throws:
java.rmi.RemoteException
java.lang.Exception

Feedback