com.ibm.commerce.account.commands
Class UpdateAccountCmdImpl
java.lang.Object
CacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.TaskCommandImpl
com.ibm.commerce.account.commands.UpdateAccountCmdImpl
- All Implemented Interfaces:
- ECCommand, ECTargetableCommand, TaskCommand, UpdateAccountCmd
- public class UpdateAccountCmdImpl
- extends TaskCommandImpl
- implements UpdateAccountCmd
This is the default implementation of the UpdateAccount task command.
- See Also:
- 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. |
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 |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- IBM copyright notice field.
- See Also:
- Constant Field Values
CLASSNAME
public static final java.lang.String CLASSNAME
- The name of the default implementation.
- See Also:
- Constant Field Values
UpdateAccountCmdImpl
public UpdateAccountCmdImpl()
- Constructor for UpdateAccountCmdImpl.
getAccountId
public java.lang.Long getAccountId()
- Returns the ID of the updated business account.
-
- Returns:
- the business account ID
getAccountState
public java.lang.Integer getAccountState()
- Gets the state of the business account.
-
- Returns:
- the state of the business account
parseXMLDocument
public void parseXMLDocument()
- Parses the account XML Element objects.
performExecute
public void performExecute()
throws ECException
- This method updates the business account.
-
- Specified by:
- performExecute in interface ECCommand
- Overrides:
- performExecute in class AbstractECTargetableCommand
-
- Throws:
- 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.
- See Also:
- AbstratECTargetableCommand#performExecute()
setAccountDescriptionElement
public void setAccountDescriptionElement(org.w3c.dom.Element newAccountDescriptionElement)
- Sets the account description element.
setAccountElement
public void setAccountElement(org.w3c.dom.Element accountElement)
- Sets the account XML element.
-
- Specified by:
- setAccountElement in interface UpdateAccountCmd
-
- Parameters:
- accountElement - the business account Element object
setAccountId
public void setAccountId(java.lang.Long accountId)
- Sets the business account ID
-
- Specified by:
- setAccountId in interface UpdateAccountCmd
-
- Parameters:
- accountId - the business account ID to be updated
setAccountState
public void setAccountState(java.lang.Integer accountState)
- Sets the state of the business account.
-
- Parameters:
- accountState - the state of the business account
setAccountState
public void setAccountState(java.lang.String accountState)
- Sets the state of the business account.
-
- Parameters:
- accountState - the state of the business account
setLanguageId
public void setLanguageId(java.lang.Integer newLangId)
- Sets the language ID.
setTermConditionId
public void setTermConditionId(java.lang.Long tcId)
- Sets the term and condition ID.
-
- Specified by:
- setTermConditionId in interface UpdateAccountCmd
-
- Parameters:
- tcId - ID of an term and condition
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.