com.ibm.commerce.account.commands
Class AccountDeleteCmdImpl
java.lang.Object
|
+--CacheableCommandImpl
|
+--com.ibm.commerce.command.AbstractECTargetableCommand
|
+--com.ibm.commerce.command.ControllerCommandImpl
|
+--com.ibm.commerce.account.commands.AccountDeleteCmdImpl
- All Implemented Interfaces:
-
AccCommand,
AccountDeleteCmd,
ControllerCommand,
ECCommand,
ECTargetableCommand
- public class AccountDeleteCmdImpl
- extends
ControllerCommandImpl
- implements
AccountDeleteCmd
This is the default implementation of the
AccountDelete
controller command. If a redirect URL is not
provided, the command will use the AccountListView after successful execution.
The following access beans are used in this default implementation:
TradingAgreementAccessBean and AccountAccessBean.
- See Also:
-
AccountDeleteCmd
,
Serialized
Form
Field Summary |
static java.lang.String |
COPYRIGHT
IBM copyright notice field. |
Method Summary |
AccessVector |
getResources()
Gets the access vector accessed by this command. |
void |
performExecute()
This method deletes the specified business accounts and sets the
state to Inactive in the TRADING database table. |
void |
setAccountIds(java.lang.Long[] anAccountIds)
Sets the list of account IDs. |
void |
setRequestProperties(
TypedProperty requestProperties)
Retrieves input parameters from the request properties. |
void |
validateParameters()
Validates the business account or accounts to check if they
exist. |
Methods inherited from class
com.ibm.commerce.command.
ControllerCommandImpl |
checkPermission,
fulfills,
getForUserId,
getGeneric,
getOwner,
getRequestProperties,
getResolvedRequestProperties,
getResourceOwners,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setForUserId,
setGeneric,
setOwner,
setResponseProperties,
setRetriable,
setViewInputProperties |
Methods inherited from class
com.ibm.commerce.command.
AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
reset,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Methods inherited from interface
com.ibm.commerce.command.
ControllerCommand |
checkPermission,
execute,
getGeneric,
getRequestProperties,
getResolvedRequestProperties,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setGeneric,
setRetriable,
setViewInputProperties |
Methods inherited from interface
com.ibm.commerce.command.
ECCommand |
checkIsAllowed,
checkResourcePermission,
createCommandExecutionEvent,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getStoreId,
getUser,
getUserId,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- IBM copyright notice field.
- See Also:
-
Constant Field Values
AccountDeleteCmdImpl
public AccountDeleteCmdImpl()
- Constructor for AccountDeleteCmdImpl.
getResources
public AccessVector getResources()
throws ECException
- Gets the access vector accessed by this command. The default implementation
returns a vector of AccountAccessBean objects of the business accounts to be
deleted.
-
- Specified by:
-
getResources
in interface
ECCommand
- Overrides:
-
getResources
in class
AbstractECTargetableCommand
-
- Returns:
- AccessVector - a vector of resource action pairs
- Throws:
-
ECException
- See Also:
-
AbstractECTargetableCommand.getResources()
public void performExecute()
throws ECException
- This method deletes the specified business accounts and sets the state to
Inactive in the TRADING database table.
-
- Specified by:
-
performExecute
in interface
ECCommand
- Overrides:
-
performExecute
in class
AbstractECTargetableCommand
-
- Throws:
-
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.
- See Also:
-
AbstratECTargetableCommand#performExecute()
setAccountIds
public void setAccountIds(java.lang.Long[] anAccountIds)
- Sets the list of account IDs.
-
- Specified by:
-
setAccountIds
in interface
AccountDeleteCmd
-
- Parameters:
anAccountIds
- an array of the account IDs which will be
deleted
setRequestProperties
public void setRequestProperties(TypedProperty requestProperties)
throws ECException
- Retrieves input parameters from the request properties.
-
- Specified by:
-
setRequestProperties
in interface
ControllerCommand
- Overrides:
-
setRequestProperties
in class
ControllerCommandImpl
-
- Parameters:
requestProperties
- request properties
- Throws:
-
ECApplicationException
- Raised with message
_ERR_MISSING_CMD_PARAMETER if accountId parameter is missing. Raised wiht
message _ERR_NUMBER_FORMAT_EXCEPTION if the provided business account IDs
cannot be converted to Long object.
-
ECException
- See Also:
-
ControllerCommandImpl.setRequestProperties(TypedProperty)
validateParameters
public void validateParameters()
throws ECException
- Validates the business account or accounts to check if they exist.
-
- Specified by:
-
validateParameters
in interface
ECCommand
- Overrides:
-
validateParameters
in class
AbstractECTargetableCommand
-
- Throws:
-
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.
- See Also:
-
AbstractECTargetableCommand.validateParameters()