java.lang.ObjectCacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
This is the abstract base class for all commerce ECTargetableCommands
Field Summary | |
protected CommandContext | commandContext |
Fields inherited from interface com.ibm.commerce.command.ECCommand |
defaultCommandClassName |
Constructor Summary | |
AbstractECTargetableCommand() AbstractECTargetableCommand constructor. |
Method Summary | |
boolean | accessControlCheck() Performs command level access control check. |
void | checkIsAllowed(java.lang.Object resource, java.lang.String action) Check to see if user can perform action on resource. |
protected void | checkParameters() Deprecated. Replaced by validateParameters() |
void | checkResourcePermission() Performs resource level access control check. |
void | createCommandExecutionEvent(CommandExecutionTrigger trigger) Creates a command execution event. |
void | execute() This method is part of the command framework for execution of a command. |
void | finalize() Final cleans up of resources. |
boolean | getAccCheck() Check to see if access control check is required for this command. |
CommandContext | getCommandContext() Gets the command context associated with this command. |
java.lang.String | getCommandIfName() Gets the command interface name. |
java.lang.String | getCommandName() Gets the name of the originating command. |
java.lang.Integer | getCommandStoreId() Gets the store Id used to create this command. |
TypedProperty | getDefaultProperties() Gets the default properties associated with this command. |
AccessVector | getResources() Gets the access vector accessed by this command. |
java.lang.Integer | getStoreId() Gets the store Id associated with this command from the command context. |
UserAccessBean | getUser() Gets the userAccessBean associated with the user. |
java.lang.Long | getUserId() Gets the user Id for the user associated with this command from the command context. |
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 | setAccCheck(boolean newValue) This method is set by the web controller to indicate whether access control check is required for this command. |
void | setCommandContext(CommandContext aCommandContext) Sets the command context associated with this command. |
void | setCommandIfName(java.lang.String name) Sets the command interface name |
void | setCommandStoreId(java.lang.Integer storeId) Sets the store Id associated with this command. |
void | setDefaultProperties(TypedProperty val) Sets default properties associated with this ECCommand. |
void | validateParameters() Performs parameter checking. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected CommandContext commandContext
Constructor Detail |
public AbstractECTargetableCommand()
Method Detail |
public boolean accessControlCheck() throws ECException
public void checkIsAllowed(java.lang.Object resource, java.lang.String action) throws ECException
protected void checkParameters() throws ECException
public void checkResourcePermission() throws ECException
public final void execute() throws ECException
public boolean getAccCheck()
public final CommandContext getCommandContext()
public final java.lang.String getCommandIfName()
public final java.lang.String getCommandName()
public final TypedProperty getDefaultProperties()
public AccessVector getResources() throws ECException
public java.lang.Integer getStoreId()
public final java.lang.Integer getCommandStoreId()
public final void setCommandStoreId(java.lang.Integer storeId)
public final UserAccessBean getUser() throws ECSystemException
public java.lang.Long getUserId()
public boolean isReadyToCallExecute()
public void performExecute() throws ECException
public void reset()
public void setAccCheck(boolean newValue)
public final void setCommandContext(CommandContext aCommandContext)
public final void setCommandIfName(java.lang.String name)
public final void setDefaultProperties(TypedProperty val)
public void validateParameters() throws ECException
public void finalize()
public void createCommandExecutionEvent(CommandExecutionTrigger trigger) throws ECException
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.