com.ibm.commerce.interestitems.commands
Class AuthIIListAccessCmdImpl
java.lang.Object
|
+--com.ibm.commerce.command.AbstractECCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.interestitems.commands.AuthIIListAccessCmdImpl
- All Implemented Interfaces:
- AuthIIListAccessCmd, ECCommand, 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
Field Summary |
static java.lang.String |
COPYRIGHT
The internal copyright field. |
Method Summary |
boolean |
getResult()
Return whether the member has authority to access the interest item list. |
boolean |
isReadyToCallExecute()
isReadyToCallExecute method is called by the Targetable Command frame work
This is where client side parameter checking is performed 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 is called after a command has been executed to reset its states variables. |
void |
setAccessType(java.lang.String astrAccessType)
Set the access type parameters. |
void |
setIIList(InterestItemListAccessBean aabList)
Set the interest item list parameters. |
void |
setMemberId(java.lang.Long anMemberId)
Set the member id parameter. |
Methods inherited from class com.ibm.commerce.command.AbstractECCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
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.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- The internal copyright field.
AuthIIListAccessCmdImpl
public AuthIIListAccessCmdImpl()
- No value constructor.
getResult
public boolean getResult()
- Description copied from interface:
AuthIIListAccessCmd
- Return whether the member has authority to access the interest item list.
- Specified by:
getResult
in interface AuthIIListAccessCmd
- Following copied from interface:
com.ibm.commerce.interestitems.commands.AuthIIListAccessCmd
- Returns:
- boolean
isReadyToCallExecute
public boolean isReadyToCallExecute()
- Description copied from class:
AbstractECCommand
- isReadyToCallExecute method is called by the Targetable Command frame work
This is where client side parameter checking is performed before the execution of the command.
The default implementation is to return true.
- Overrides:
isReadyToCallExecute
in class AbstractECCommand
- Following copied from class:
com.ibm.commerce.command.AbstractECCommand
- Returns:
- boolean - 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 AbstractECCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.
reset
public void reset()
- Description copied from class:
AbstractECCommand
- This method is 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 AbstractECCommand
setAccessType
public void setAccessType(java.lang.String astrAccessType)
- Description copied from interface:
AuthIIListAccessCmd
- Set the access type parameters.
- Specified by:
setAccessType
in interface AuthIIListAccessCmd
- Following copied from interface:
com.ibm.commerce.interestitems.commands.AuthIIListAccessCmd
- Parameters:
astrAccessType
- java.lang.String
setIIList
public void setIIList(InterestItemListAccessBean aabList)
- Description copied from interface:
AuthIIListAccessCmd
- Set the interest item list parameters.
- Specified by:
setIIList
in interface AuthIIListAccessCmd
- Following copied from interface:
com.ibm.commerce.interestitems.commands.AuthIIListAccessCmd
- Parameters:
aabList
- com.ibm.commerce.catalog.objects.InterestItemListAccessBean
setMemberId
public void setMemberId(java.lang.Long anMemberId)
- Description copied from interface:
AuthIIListAccessCmd
- Set the member id parameter.
- Specified by:
setMemberId
in interface AuthIIListAccessCmd
- Following copied from interface:
com.ibm.commerce.interestitems.commands.AuthIIListAccessCmd
- Parameters:
anMemberId
- java.lang.Long