public class AccountSaveCmdImpl extends TradingAgreementImportBaseCmdImpl implements AccountSaveCmd
AccountSaveCmd
controller command.
Name | Description |
---|---|
XMLString |
The xml string of this account. It is mandatory. |
lastUpdatedTime |
The last update time of an account. It is optional. |
validate |
validate flag to indicate if validation a importing xml file against a xml schema.It is optional. |
SaveAccountCmd
task command to save the account based on the account element object.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
The name of this class.
|
static java.lang.String |
COPYRIGHT
The IBM copyright notice field.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
AccountSaveCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getAccountId()
Gets the id of the account.
|
com.ibm.commerce.accesscontrol.AccessVector |
getResources()
Gets the access vector accessed by this command.
|
com.ibm.commerce.datatype.TypedProperty |
getViewInputProperties()
This method is called by the web controller to retrieve the request properties set
by the setRequestProperties() method.
|
boolean |
isUpdate()
Returns the action of this command based on the information inside the xml string.
|
void |
performExecute()
Executes the business logic of this command implementation.
|
void |
setLastUpdatedTime(java.lang.String lastUpdatedTime)
Sets the last update time of the contract.
|
void |
setRequestProperties(com.ibm.commerce.datatype.TypedProperty aRequestProperties)
Retrieves input parameters from the request properties.
|
void |
setXML(java.lang.String xmlString)
Sets the input xml string.
|
void |
setXSDValidation(boolean bValidation)
Sets the XSD validation flag.
|
void |
validateParameters()
Extracts and validates the input parameters of this command implementation.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setXSDFlag
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public static final java.lang.String CLASSNAME
public static final java.lang.String COPYRIGHT
public java.lang.Long getAccountId()
public com.ibm.commerce.accesscontrol.AccessVector getResources() throws com.ibm.commerce.exception.ECException
getResources
in interface com.ibm.commerce.command.ECCommand
getResources
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECException
AbstractECTargetableCommand.getResources()
public com.ibm.commerce.datatype.TypedProperty getViewInputProperties()
getViewInputProperties
in interface com.ibm.commerce.command.ControllerCommand
getViewInputProperties
in class com.ibm.commerce.command.ControllerCommandImpl
public boolean isUpdate()
public void performExecute() throws com.ibm.commerce.exception.ECException
performExecute
in interface com.ibm.commerce.command.ECCommand
performExecute
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECException
- Raised with message _ERR_ACCOUNT_SAVE when an error occurred.AbstractECTargetableCommand.performExecute()
public void setLastUpdatedTime(java.lang.String lastUpdatedTime)
setLastUpdatedTime
in interface AccountSaveCmd
lastUpdatedTime
- the last update time stringpublic void setRequestProperties(com.ibm.commerce.datatype.TypedProperty aRequestProperties) throws com.ibm.commerce.exception.ECApplicationException
setRequestProperties
in interface com.ibm.commerce.command.ControllerCommand
setRequestProperties
in class com.ibm.commerce.command.ControllerCommandImpl
aRequestProperties
- An TypedProperty object contains the input parameters.com.ibm.commerce.exception.ECApplicationException
- Raised with message _ERR_MISSING_CMD_PARAMETER when the input xml string is missed.public void setXML(java.lang.String xmlString)
setXML
in interface AccountSaveCmd
xmlString
- the input xml string.public void setXSDValidation(boolean bValidation)
setXSDValidation
in interface AccountSaveCmd
bValidation
- the validation flag, true: validate, false: do not validate.public void validateParameters() throws com.ibm.commerce.exception.ECException
validateParameters
in interface com.ibm.commerce.command.ECCommand
validateParameters
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECException
- Raised with message _ERR_DUPLICATED_ACCOUNT_NAME if the account name is duplicated during creating.
Raised with message _ERR_ACCOUNT_REFERENCE_NUMBER_NOT_REQUIRED if the account id is provided during creating.AbstractECTargetableCommand.validateParameters()