com.ibm.commerce.interestitems.commands
Class AuthIIListAccessCmdImpl

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

public class AuthIIListAccessCmdImpl
extends TaskCommandImpl
implements AuthIIListAccessCmd

Determines whether the shopper has authority to read information or write information to a specified interest item list. Normally this task returns true. If an error encountered, it can set an exception task, return false, or handle the exception by writing an HTTP response. Calling commands: InterestItemAdd, InterestItemDelete, InterestItemDisplay InterestItemListCopy, InterestItemListDelete, 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. AuthIIListAccessCmd
defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
AuthIIListAccessCmdImpl()
          No value constructor.
 
Method Summary
 boolean getResult()
          Returns whether the member has authority to access the interest item list.
 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 setAccessType(java.lang.String astrAccessType)
          Sets the access type.
 void setIIList( InterestItemListAccessBean aabList)
          Sets the interest item list.
 void setMemberId(java.lang.Long anMemberId)
          Sets the member ID.
 
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

AuthIIListAccessCmdImpl

public AuthIIListAccessCmdImpl()
No value constructor.
Method Detail

getResult

public boolean getResult()
Description copied from interface: AuthIIListAccessCmd
Returns whether the member has authority to access the interest item list.
Specified by:
getResult in interface AuthIIListAccessCmd
Returns:
true if the user has authority; false otherwise

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

setAccessType

public void setAccessType(java.lang.String astrAccessType)
Description copied from interface: AuthIIListAccessCmd
Sets the access type.
Specified by:
setAccessType in interface AuthIIListAccessCmd
Parameters:
astrAccessType - the access type

setIIList

public void setIIList(InterestItemListAccessBean aabList)
Description copied from interface: AuthIIListAccessCmd
Sets the interest item list.
Specified by:
setIIList in interface AuthIIListAccessCmd
Parameters:
aabList - the primary key of the interest item list

setMemberId

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