public abstract class AbstractECTargetableCommand extends MeasuredCacheableCommandImpl implements ECTargetableCommand
Modifier and Type | Field and Description |
---|---|
protected CommandContext | commandContext
The command context.
|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
AbstractECTargetableCommand()
This is the default constructor for this class.
|
Modifier and Type | Method and Description |
---|---|
boolean | accessControlCheck()
This method performs a command level access control check for this command.
|
void | checkIsAllowed(java.lang.Object resource, java.lang.String action)
This method determines whether a user can perform a specified action on a certain resource.
|
protected void | checkParameters()
Deprecated.
This has been replaced by validateParameters().
|
void | checkResourcePermission()
This method performs resource level access control checking.
|
void | createCommandExecutionEvent(com.ibm.commerce.command.event.CommandExecutionTrigger trigger)
This method creates a command execution event.
|
void | execute()
This method is part of the command framework.
|
boolean | getAccCheck()
This method checks to see if an access control check is required for this command.
|
CommandContext | getCommandContext()
This method gets the command context associated with this command.
|
java.lang.String | getCommandIfName()
This method gets the command interface name.
|
java.lang.String | getCommandName()
This method gets the name of the originating command.
|
java.lang.Integer | getCommandStoreId()
This method gets the store id used to create this command.
|
TypedProperty | getDefaultProperties()
This method gets the default properties associated with this command.
|
java.util.Map | getExceptionInvokeParameters(java.lang.String event)
This method returns the attributes for a particular event type when the command executed throws an exception.
|
protected java.lang.String[] | getMeasuredCommandParameters() |
protected long | getObjectSize()
Returns the estimated footprint size in bytes of this object and the objects it contains.
|
java.util.Map | getPostInvokeParameters(java.lang.String event)
This method returns the attributes for a particular event type after the command is executed.
|
java.util.Map | getPreInvokeParameters(java.lang.String event)
This method returns the attributes for a particular event type before the command is executed.
|
AccessVector | getResources()
This method gets the access vector accessed by this command.
|
java.lang.Integer | getStoreId()
This method gets the store id associated with this command.
|
UserAccessBean | getUser()
This method gets the UserAccessBean object associated with the user.
|
java.lang.Long | getUserId()
This method gets the user id for the user associated with this command from the command context.
|
boolean | isReadyToCallExecute()
This method is called by the targetable command framework.
|
void | performExecute()
This method performs the business logic for this command.
|
void | reset()
This method is called after a command has been executed.
|
void | setAccCheck(boolean newValue)
This method is set by the web controller to indicate whether an access control check is required for this command.
|
void | setCommandContext(CommandContext aCommandContext)
This method sets the command context associated with this command.
|
void | setCommandIfName(java.lang.String name)
This method sets the command interface name.
|
void | setCommandStoreId(java.lang.Integer storeId)
This method sets the store id used to create this command.
|
void | setDefaultProperties(TypedProperty val)
This method sets default properties associated with this ECCommand.
|
void | validateParameters()
This method performs server side parameter checking.
|
public static final java.lang.String COPYRIGHT
protected transient CommandContext commandContext
public AbstractECTargetableCommand()
protected long getObjectSize()
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
protected java.lang.String[] getMeasuredCommandParameters()
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 createCommandExecutionEvent(com.ibm.commerce.command.event.CommandExecutionTrigger trigger) throws ECException
public java.util.Map getPreInvokeParameters(java.lang.String event)
public java.util.Map getPostInvokeParameters(java.lang.String event)
public java.util.Map getExceptionInvokeParameters(java.lang.String event)