java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.account.commands.UpdateAccountCmdImpl
This is the default implementation of the
UpdateAccount
task command.
The following AccessBeans are used in this default implementation:
AccountAccessBean, TradingAgreementAccessBean, StoreEntityAccessBean,
UserAccessBean, OrganizationAccessBean, MemberGroupAccessBean,
TradingDescriptionAccessBean, ParticipantAccessBean,
TermConditionDescriptionAccessBean, PaymentTCAccessBean, InvoiceTCAccessBean,
POTCBlanketAccessBean, POTCIndvidualAccessBean, POTCLimitedAccessBean,
DisplayCustomizationAccessBean.
,
Serialized
Form
Field Summary | |
---|---|
static java.lang.String |
CLASSNAME The name of the default implementation. |
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.account.commands. UpdateAccountCmd |
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
UpdateAccountCmdImpl() Constructor for UpdateAccountCmdImpl. |
Method Summary | |
---|---|
java.lang.Long |
getAccountId() Returns the ID of the updated business account. |
java.lang.Integer |
getAccountState() Gets the state of the business account. |
void |
parseXMLDocument() Parses the account XML Element objects. |
void |
performExecute() This method updates the business account. |
void |
setAccountDescriptionElement(org.w3c.dom.Element newAccountDescriptionElement) Sets the account description element. |
void |
setAccountElement(org.w3c.dom.Element accountElement) Sets the account XML element. |
void |
setAccountId(java.lang.Long accountId) Sets the business account ID |
void |
setAccountState(java.lang.Integer accountState) Sets the state of the business account. |
void |
setAccountState(java.lang.String accountState) Sets the state of the business account. |
void |
setLanguageId(java.lang.Integer newLangId) Sets the language ID. |
void |
setTermConditionId(java.lang.Long tcId) Sets the term and condition ID. |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
reset,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties,
validateParameters |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
Constructor Detail |
---|
public UpdateAccountCmdImpl()
Method Detail |
---|
public java.lang.Long getAccountId()
public java.lang.Integer getAccountState()
public void parseXMLDocument()
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
- Raised with message _ERR_ACCOUNT_OBJECT_NOT_FOUND if the account ID cannot be
resolved based on the referenceNumber attribute in Account element. Raised with
message _ERR_ACCOUNT_RESOLVE_OWNER_ID if the account owner Id cannot be
resolved. Raised with message _ERR_ACCOUNT_PARTICIPANT_INVALID_ROLE if the role
type of a business account participant is not one of the following roles:
AccountHolder, BuyerContact, SellerContact, Buyer, Seller. Raised with message
_ERR_ACCOUNT_PARTICIPANT_INVALID_MEMBER_TYPE if one of the following cases
occurred: 1. the participant member type is not an organization for an
AccountHolder or Seller participant. 2. the participant member type is not an
organization or user for a SellerContact participant. 3. the participant member
type is not a user for a BuyerContact participant. Raised with message
_ERR_ACCOUNT_PARTICIPANT_INVALID_MULTIPLICITY if one of the following cases
occurred: 1. more than one AccountHolder participant in the business account 2.
more than one Seller participant in the business account 3. more than one Buyer
participant in the business account Raised with message
_ERR_ACCOUNT_RESOLVE_PARTICIPANT_MEMBER_ID if an account participant ID cannot
be resolved. Raised with message _ERR_TERM_CONDITION_PARTICIPANT_ROLE if a term
and condition partcipant is not a Buyer participant. Raised with message
_ERR_RETRIEVE_MEMBER_ID if member ID in a Memeber element for PolicyReference
element cannot be resolved Raised with message _ERR_RETRIEVE_POLICY_ID if a
business policy ID cannot be resolved based on the PolicyReference element in
one of the terms and conditions. Raised with message
_ERR_COLUMN_ACCESSBEANNAME_IN_PATTRIBUTE_NOT_POPULATED if an error occurred
when retrieving personalization attribute value accessbean. Column
accessbeanname in table pattribute is not populated correctly. Raised with
message _ERR_RETRIEVE_OPERATOR_ID if an error occurred when retrieving
opeartor_id. The value of "operator" in "AttributeValue"
element is incorrect. Raised with message _ERR_RETRIEVE_PATTRIBUTE_ID if an
error occurred when retrieving pattribute_id. The value of
"attributeName" in "AttributeDetail" element is
incorrect.AbstratECTargetableCommand#performExecute()
public void setAccountDescriptionElement(org.w3c.dom.Element newAccountDescriptionElement)
public void setAccountElement(org.w3c.dom.Element accountElement)
setAccountElement
in interface
UpdateAccountCmd
accountElement
- the business account Element
objectpublic void setAccountId(java.lang.Long accountId)
setAccountId
in interface
UpdateAccountCmd
accountId
- the business account ID to be
updatedpublic void setAccountState(java.lang.Integer accountState)
accountState
- the state of the business
accountpublic void setAccountState(java.lang.String accountState)
accountState
- the state of the business
accountpublic void setLanguageId(java.lang.Integer newLangId)
public void setTermConditionId(java.lang.Long tcId)
setTermConditionId
in interface
UpdateAccountCmd
tcId
- ID of an term and condition