public class InterestItemDeleteCmdImpl extends ControllerCommandImpl implements InterestItemDeleteCmd
InterestItemDelete command deletes items from one or more
interest item lists.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASSNAME
The fully qualified name of this class.
|
static java.lang.String |
COPYRIGHT
The internal copyright field.
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
InterestItemDeleteCmdImpl()
No value constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkIsAllowed(AccessVector resource,
java.lang.String action)
Check to see if user can perform action on resource.
|
java.lang.Long[] |
getResourceOwners()
This method gets all the organization units that own the resources accessed by this command.
|
boolean |
isReadyToCallExecute()
This method is called by the targetable command framework.
|
void |
performExecute()
The main program for InterestItemDeleteCmd command.
|
void |
reset()
This method is called after a command has been executed.
|
void |
setCatEntryId(java.lang.String[] asaCatEntryId)
Specifies either "*" or zero or more reference numbers of products or
items (from the
CATENTRY_ID column in the IITEM table, ) to
delete from the interest list(s) specified by ListId. |
void |
setListId(java.lang.String[] asaListId)
Specifies zero or more interest item lists from which it has 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)
This method sets the
requestProperties for the command. |
void |
validateParameters()
This method performs server side parameter checking.
|
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, 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, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiesaccessControlCheck, getAccCheck, getForUserId, setAccCheck, setForUserId, setOwnercheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesfulfills, getOwnerpublic static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public InterestItemDeleteCmdImpl()
public void checkIsAllowed(AccessVector resource, java.lang.String action) throws ECException
resource - AccessVector - the resource to be acted onaction - String - action to be performed on the resourceECExceptionpublic java.lang.Long[] getResourceOwners()
throws ECException
ControllerCommandImplgetResourceOwners in interface AccCommandgetResourceOwners in class ControllerCommandImplLong objects that represents all the organization
unit reference numbers. A site owner is represented by an organization unit value of -1.ECExceptionpublic boolean isReadyToCallExecute()
AbstractECTargetableCommandtrue.isReadyToCallExecute in interface com.ibm.websphere.command.CommandisReadyToCallExecute in class AbstractECTargetableCommandboolean value; true if we can execute the
command and false otherwise. This default implementation will return true.public void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECExceptionpublic void reset()
AbstractECTargetableCommandreset in interface com.ibm.websphere.command.Commandreset in class AbstractECTargetableCommandpublic void setCatEntryId(java.lang.String[] asaCatEntryId)
CATENTRY_ID column in the IITEM table, ) to
delete from the interest list(s) specified by ListId. If "*" is
specified, the command behaves as if all interest items in the given
interest lists were specified.setCatEntryId in interface InterestItemDeleteCmdasaCatEntryId - the array of catalog entry idpublic void setListId(java.lang.String[] asaListId)
GetCurrentIILists process task is
invoked to obtain the shopper's current interest item lists.
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 this parameter is missing, this command behaves as if "." were specified.setListId in interface InterestItemDeleteCmdasaListId - the ListIdpublic void setListIdName(java.lang.String[] asaListIdName)
ListId. This is provided
to make it possible to obtain the reference numbers of the interest
lists when ListId is not explicitly specified.setListIdName in interface InterestItemDeleteCmdasaListIdName - the array of namespublic void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
ControllerCommandImplrequestProperties for the command. The WebController calls the setRequestProperties
method before invoking the execute method for this command.
It is the responsibility of the command writer to extract the
required input parameters from the requestProperties object.setRequestProperties in interface ControllerCommandsetRequestProperties in class ControllerCommandImplaRequestProperties - This is an object that represents the request properties.ECApplicationExceptionpublic void validateParameters()
throws ECException
AbstractECTargetableCommandcheckParameters() method from version 5.1.
The default implementation of validateParameters() is a no op.
It is the responsibility of the command writers to implement this method if they want to perform
server side parameter checking.validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECException