com.ibm.commerce.interestitems.commands
Class InterestItemListDeleteCmdImpl
java.lang.Object
CacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.ControllerCommandImpl
com.ibm.commerce.interestitems.commands.InterestItemListDeleteCmdImpl
- All Implemented Interfaces:
- AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, InterestItemListDeleteCmd, Protectable
- public class InterestItemListDeleteCmdImpl
- extends ControllerCommandImpl
- implements InterestItemListDeleteCmd
The InterestItemListDelete deletes the specified interest item lists and all items in them.
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
CLASSNAME
The fully qualified name of this class. |
static java.lang.String |
COPYRIGHT
The internal copyright field. |
Method Summary |
AccessVector |
getResources()
Gets the access vector accessed by this command. |
boolean |
isReadyToCallExecute()
This method is called by the Targettable Command frame work before the execution of the command. |
void |
performExecute()
Contains the actual business logic of the command It should be implemented by all the command writer. |
void |
reset()
This method should be called after a command has been executed to reset its states variables. |
void |
setListId(java.lang.String[] asaListId)
Specifies zero or more interest item lists to be deleted. |
void |
setListIdName(java.lang.String[] asaListIdName)
Specifies the names of name-value pairs to be added to the redirection URL. |
void |
setRequestProperties(TypedProperty aRequestProperties)
Sets the request properties. |
void |
validateParameters()
Performs server side parameter checking. |
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, 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
- The internal copyright field.
- See Also:
- Constant Field Values
CLASSNAME
public static final java.lang.String CLASSNAME
- The fully qualified name of this class.
- See Also:
- Constant Field Values
InterestItemListDeleteCmdImpl
public InterestItemListDeleteCmdImpl()
- No value constructor.
getResources
public AccessVector getResources()
throws ECException
- Description copied from interface: ECCommand
- Gets the access vector accessed by this command. The default implementation returns null indicating that no protectable resource is accessed by this command. It is the responsibilities of the command writer to return the protectable primary resource(s) and the corresponding actions accessed by this command.
-
- Specified by:
- getResources in interface ECCommand
- Overrides:
- getResources in class AbstractECTargetableCommand
-
- Returns:
- vector of resource action pairs
- Throws:
- ECException
isReadyToCallExecute
public boolean isReadyToCallExecute()
- Description copied from class: AbstractECTargetableCommand
- This method is called by the Targettable Command frame work before the execution of the command. The default implementation is to return true.
-
- Overrides:
- isReadyToCallExecute in class AbstractECTargetableCommand
-
- Returns:
- true if we can execute the command false if we canot execute the command
performExecute
public void performExecute()
throws ECException
- Description copied from interface: ECCommand
- Contains the actual business logic of the command It should be implemented by all the command writer.
-
- Specified by:
- performExecute in interface ECCommand
- Overrides:
- performExecute in class AbstractECTargetableCommand
-
- Throws:
- ECException
reset
public void reset()
- Description copied from class: AbstractECTargetableCommand
- This method should be called after a command has been executed to reset its states variables. After the call to reset, we should be able to execute the command again.
-
- Overrides:
- reset in class AbstractECTargetableCommand
setListId
public void setListId(java.lang.String[] asaListId)
- Specifies zero or more interest item lists to be deleted. In addition to interest item list reference numbers it can be specified as one of the special abbreviations ".", "*". If "." is specified, the GetCurrentIILists process task is invoked to obtain the shopper's current interest item lists, and the command behaves as if the current interest item lists were specified. If GetCurrentIILists process task determines that there are no current interest item lists, the most recently updated item interest item list is used. If "*" is specified, the command behaves as if all shopper's interest item lists were specified. If a specified interest item list no longer exist, it is not deleted.
-
- Specified by:
- setListId in interface InterestItemListDeleteCmd
-
- Parameters:
- asaListId - the ListId
setListIdName
public void setListIdName(java.lang.String[] asaListIdName)
- Specifies the names of name-value pairs to be added to the redirection URL. The values of the added name-value pairs are the reference numbers of the interest lists specified by ListId. This is provided to make it possible to obtain the reference numbers of the interest lists when ListId is not explicitly specified.
-
- Specified by:
- setListIdName in interface InterestItemListDeleteCmd
-
- Parameters:
- asaListIdName - the array of names
setRequestProperties
public void setRequestProperties(TypedProperty aRequestProperties)
throws ECApplicationException
- Description copied from interface: ControllerCommand
- Sets the request properties. The WebController calls this method before invoking the execute method in this command to set the request properties for this command. It is the responsibility of the implementer of the ControllerCommand to extract the required input parameters from the request properties and perform parameter checking.
-
- Specified by:
- setRequestProperties in interface ControllerCommand
- Overrides:
- setRequestProperties in class ControllerCommandImpl
-
- Throws:
- ECApplicationException
validateParameters
public void validateParameters()
throws ECException
- Description copied from interface: ECCommand
- Performs server side parameter checking. This method replaces the checkParameters() method in a previous version of the code.
-
- Specified by:
- validateParameters in interface ECCommand
- Overrides:
- validateParameters in class AbstractECTargetableCommand
-
- Throws:
- ECException
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.