com.ibm.commerce.account.commands
Class SaveAccountCmdImpl
java.lang.Object
CacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.TaskCommandImpl
com.ibm.commerce.contract.commands.CreateUpdateTradingAgreementBaseCmdImpl
com.ibm.commerce.account.commands.SaveAccountCmdImpl
- All Implemented Interfaces:
- ECCommand, ECTargetableCommand, SaveAccountCmd, TaskCommand
- public class SaveAccountCmdImpl
- extends CreateUpdateTradingAgreementBaseCmdImpl
- implements SaveAccountCmd
This is the default implementation of the SaveAccount task command. The following access beans are used in this default implementation: AccountAccessBean, TradingAgreementAccessBean, UserAccessBean, OrganizationAccessBean, MemberGroupAccessBean, StoreEntityAccessBean, ParticipantAccessBean, DisplayCustomizationTCAccessBean, POTCBlanketAccessBean, POTCIndividualAccessBean, POTCLimitedAccessBean, PaymentTCAccessBean and InvoiceTCAccessBean.
- See Also:
- SaveAccountCmd, CreateUpdateTradingAgreementBaseCmdImpl, Serialized Form
Field Summary |
static java.lang.String |
CLASSNAME
The name of this command. |
static java.lang.String |
COPYRIGHT
IBM copyright notice field. |
Method Summary |
java.lang.Long |
getAccountId()
Returns the ID of the newly created account. |
void |
performExecute()
The method creates the account based on the account Element object. |
void |
setAccountElement(org.w3c.dom.Element accountElement)
Sets the account Element object. |
void |
setAction(boolean bCreateAction)
Sets the action for the saving process. |
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 this command.
- See Also:
- Constant Field Values
SaveAccountCmdImpl
public SaveAccountCmdImpl()
- Constructor for SaveAccountCmdImpl.
getAccountId
public java.lang.Long getAccountId()
- Returns the ID of the newly created account.
-
- Specified by:
- getAccountId in interface SaveAccountCmd
-
- Returns:
- the ID of the newly created account
performExecute
public void performExecute()
throws ECException
- The method creates the account based on the account Element object.
-
- Specified by:
- performExecute in interface ECCommand
- Overrides:
- performExecute in class AbstractECTargetableCommand
-
- Throws:
- ECException - Raised with message _ERR_RETRIEVE_POLICY_TYPE if the policy type cannot be retrived based on information in policy reference element. Raised with message _ERR_RETRIEVE_ORG_ID if an error occurred when retrieving the organization ID. Raised with message _ERR_RETRIEVE_USER_ID if an error occurred when retrieving the user ID. Raised with message _ERR_RETRIEVE_MEMBER_GROUP_ID if an error occurred when retrieving the member group ID. Raised with message _ERR_RETRIEVE_POLICY_ID if an error occurred when retrieving policy_id. The information specified in the policy reference element is incorrect. 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. Raised with message _ERR_ACCOUNT_CREATE if any other errors occurred. Raised with message _ERR_RETRIEVE_STORE_ID if the store id cannot be retrived from the information provided in StoreRef element in one of the terms and conditions. Raised with message _ERR_FINDER_EXCEPTION if the FinderException occurred. Raised with message _ERR_REMOTE_EXCEPTION if the RemoteException occurred. Raised with message _ERR_NAMING_EXCEPTION if the NamingException occurred. Raised with message _ERR_CREATE_EXCEPTION if the CreateException occurred. Raised with message _ERR_REMOVE_EXCEPTION if the RemoveException occurred. Raised with message _ERR_SQL_EXCEPTION if the SQLException occurred. Raised with message _ERR_ACCOUNT_SAVE if any other errors ocurred.
- See Also:
- AbstratECTargetableCommand#performExecute(), CreateUpdateTradingAgreementBaseCmdImpl.setAttachments(Vector attachments, Long tradingId, String usageId), CreateUpdateTradingAgreementBaseCmdImpl.setTradingAgreementDescAndParticipants(Long tradingId)
setAccountElement
public void setAccountElement(org.w3c.dom.Element accountElement)
- Sets the account Element object.
-
- Specified by:
- setAccountElement in interface SaveAccountCmd
-
- Parameters:
- accountElement - the Element object of the account
setAction
public void setAction(boolean bCreateAction)
- Sets the action for the saving process.
-
- Specified by:
- setAction in interface SaveAccountCmd
-
- Parameters:
- bCreateAction - the action of this command. true: create a new account, false: update an existed account.
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.