com.ibm.commerce.interestitems.commands
Class SetCurrentIIListsCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.TaskCommandImpl
                    |
                    +--com.ibm.commerce.interestitems.commands.SetCurrentIIListsCmdImpl
All Implemented Interfaces:
ECCommand, ECTargetableCommand, SetCurrentIIListsCmd, TaskCommand

public class SetCurrentIIListsCmdImpl
extends TaskCommandImpl
implements SetCurrentIIListsCmd

Set the specified interest item lists to be current. Calling commands: SetInterestItemList

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          The internal copyright field.
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.interestitems.commands. SetCurrentIIListsCmd
defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
SetCurrentIIListsCmdImpl()
          No value constructor.
 
Method Summary
 boolean isReadyToCallExecute()
          This method is called by the Targettable Command frame work before the execution of the command.
 void performExecute()
          The business logic for this command.
 void reset()
          This method should be called after a command has been executed to reset its states variables.
 void setIILists(java.util.Enumeration aenInterestList)
          Sets the interest item list parameters.
 void setMemberId(java.lang.Long anMemberId)
          Sets the member ID parameter.
 
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail
public static final java.lang.String COPYRIGHT
The internal copyright field.
See Also:
Constant Field Values
Constructor Detail

SetCurrentIIListsCmdImpl

public SetCurrentIIListsCmdImpl()
No value constructor.
Method Detail

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 class: AbstractECTargetableCommand
The business logic for this command. This method should be overwritten by all command writers. Command writers should call super.performExecute() as the first line in their method.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
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

setIILists

public void setIILists(java.util.Enumeration aenInterestList)
Description copied from interface: SetCurrentIIListsCmd
Sets the interest item list parameters.
Specified by:
setIILists in interface SetCurrentIIListsCmd
Parameters:
aenInterestList - an enumeration of interest item list IDs

setMemberId

public void setMemberId(java.lang.Long anMemberId)
Description copied from interface: SetCurrentIIListsCmd
Sets the member ID parameter.
Specified by:
setMemberId in interface SetCurrentIIListsCmd
Parameters:
anMemberId - the member ID