public class AccountDeleteCmdImpl extends com.ibm.commerce.command.ControllerCommandImpl implements AccountDeleteCmd
AccountDeleteCmd controller command.
| Name | Description |
|---|---|
accountId |
The account IDs to be deleted. It is mandatory. |
redirecturl |
The redirect url after this command is executed successfully. It is optional. |
TradingAgreementAccessBean
AccountAccessBean
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
The IBM copyright notice field.
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
AccountDeleteCmdImpl()
Constructor for AccountDeleteCmdImpl.
|
| Modifier and Type | Method and Description |
|---|---|
com.ibm.commerce.accesscontrol.AccessVector |
getResources()
Gets the access vector accessed by this command.
|
void |
performExecute()
This method executes the business logic of this command implementation.
|
void |
setAccountIds(java.lang.Long[] anAccountIds)
Sets the list of account IDs.
|
void |
setRequestProperties(com.ibm.commerce.datatype.TypedProperty requestProperties)
Sets the request properties of this command implementation.
|
void |
validateParameters()
Extracts and validates the input parameters of this command implementation.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputPropertiesaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiescheckPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputPropertiesaccessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwnercheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiespublic static final java.lang.String COPYRIGHT
public AccountDeleteCmdImpl()
public com.ibm.commerce.accesscontrol.AccessVector getResources()
throws com.ibm.commerce.exception.ECException
getResources in interface com.ibm.commerce.command.ECCommandgetResources in class com.ibm.commerce.command.AbstractECTargetableCommandcom.ibm.commerce.exception.ECExceptionAbstractECTargetableCommand.getResources()public void performExecute()
throws com.ibm.commerce.exception.ECException
performExecute in interface com.ibm.commerce.command.ECCommandperformExecute in class com.ibm.commerce.command.AbstractECTargetableCommandcom.ibm.commerce.exception.ECException - 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.AbstractECTargetableCommand#performExecute()public void setAccountIds(java.lang.Long[] anAccountIds)
setAccountIds in interface AccountDeleteCmdanAccountIds - an array of the account IDs which will be deletedpublic void setRequestProperties(com.ibm.commerce.datatype.TypedProperty requestProperties)
throws com.ibm.commerce.exception.ECException
setRequestProperties in interface com.ibm.commerce.command.ControllerCommandsetRequestProperties in class com.ibm.commerce.command.ControllerCommandImplrequestProperties - An TypedProperty object contains the input parameters.
For this default implementation, the accountId is the required parameter.
URL and redirecturl are optional parameterscom.ibm.commerce.exception.ECApplicationException - Raised with message _ERR_MISSING_CMD_PARAMETER if accountId parameter is missing.
Raised with message _ERR_NUMBER_FORMAT_EXCEPTION if the provided business account IDs cannot
be converted to Long object.com.ibm.commerce.exception.ECExceptionControllerCommandImpl.setRequestProperties(TypedProperty)public void validateParameters()
throws com.ibm.commerce.exception.ECException
validateParameters in interface com.ibm.commerce.command.ECCommandvalidateParameters in class com.ibm.commerce.command.AbstractECTargetableCommandcom.ibm.commerce.exception.ECException - Raised with message _ERR_ACCOUNT_OBJECT_NOT_FOUND if one of the specified business accounts cannot be found.
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.AbstractECTargetableCommand.validateParameters()