public abstract class AbstractChangeNounPartActionCmdImpl extends com.ibm.commerce.command.MeasuredCacheableCommandImpl implements AbstractChangeNounPartActionCmd, AbstractSyncNounPartActionCmd
Constructor and Description |
---|
AbstractChangeNounPartActionCmdImpl()
Creates an instance of the abstract change noun part command.
|
Modifier and Type | Method and Description |
---|---|
void |
addActionExpression(java.lang.Object noun,
ActionExpression changeAction)
This method add the list of
ActionExpression to perform against
the specified noun. |
boolean |
isGeneric()
This method returns true if the command can be run as a generic user, otherwise false.
|
boolean |
isReadyToCallExecute()
This method will indicate if the command is ready to executed.
|
void |
performExecute()
This method iterates though the action expressions and calls the appropriate
method to handle the action.
|
void |
reset()
This method resets the command so it can be reused.
|
void |
setPersistentObjects(java.util.Map persistentObjects)
This method sets the persistent objects that have been resolved by the
controller and passed along to all commands involved with this requests.
|
void |
validate()
This method iterates though the action expressions and calls the appropriate
method to validate the action.
|
executeFromCache, getCaller, getEntryInfo, getId, getObjectSize, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
public AbstractChangeNounPartActionCmdImpl()
public final void addActionExpression(java.lang.Object noun, ActionExpression changeAction)
ActionExpression
to perform against
the specified noun. These change actions contain the the part of the noun to change
and the operation associated with that part.addActionExpression
in interface AbstractChangeNounPartActionCmd
noun
- The noun to apply the action expressions againsts.changeAction
- The action expressions to perform.public final void setPersistentObjects(java.util.Map persistentObjects)
setPersistentObjects
in interface AbstractChangeNounPartActionCmd
persistentObjects
- The persistent objects.public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class com.ibm.websphere.command.CacheableCommandImpl
CacheableCommandImpl.reset()
public boolean isReadyToCallExecute()
isReadyToCallExecute
in interface com.ibm.websphere.command.Command
isReadyToCallExecute
in class com.ibm.websphere.command.TargetableCommandImpl
public void performExecute() throws java.lang.Exception
add()
,
change()
or delete()
methods, then handleAction()
is called.performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class com.ibm.websphere.command.TargetableCommandImpl
java.lang.Exception
- A problem occurred when performing the action expression.public void validate() throws AbstractApplicationException
validateAdd()
,
validateChange()
or validateDelete()
methods, then validateAction()
is called.validate
in interface AbstractChangeNounPartActionCmd
AbstractApplicationException
- There is invalid information specified with the business
object document request which will prevent the request from executing.AbstractChangeNounPartActionCmd.validate()
public boolean isGeneric()
isGeneric
in interface AbstractChangeNounPartActionCmd