public abstract class AbstractChangeNounPartActionCmdImpl extends MeasuredCacheableCommandImpl implements AbstractChangeNounPartActionCmd, AbstractSyncNounPartActionCmd
Constructor and Description |
---|
AbstractChangeNounPartActionCmdImpl()
Creates an instance of the abstract change noun part command.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void | add(java.lang.Object noun, java.lang.Object nounPart, java.util.List controlParameters)
This method adds the specified noun part to the noun.
|
void | addActionExpression(java.lang.Object noun, ActionExpression changeAction)
This method add the list of ActionExpression to perform against the specified noun.
|
protected abstract void | change(java.lang.Object noun, java.lang.Object nounPart, java.util.List controlParameters)
This method changes the specified noun part to the noun.
|
protected abstract void | delete(java.lang.Object noun, java.lang.Object nounPart, java.util.List controlParameters)
This method deletes the specified noun part to the noun.
|
protected java.util.List | getActionExpressions(java.lang.Object noun)
This method returns the list of action expressions for the specified noun.
|
protected java.util.Set | getNouns()
This method returns the set of nouns that is worked on in this command.
|
protected java.util.Map | getPersistentObjects()
This method returns the persistent objects that have been fetched by the controller and persisted by the controller.
|
protected void | handleAction(java.lang.String action, java.lang.Object noun, java.lang.Object nounPart, java.util.List controlParameters)
This method will throw an exception because the action specified is not supported.
|
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.
|
protected void | save()
This method is called at the end of the controller processing as a call out to persist any data that requires it.
|
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.
|
protected void | unsupportedAction(java.lang.String action, java.lang.Object noun, java.lang.Object nounPart)
This method will throw an exception because the action specified is not supported.
|
void | validate()
This method iterates though the action expressions and calls the appropriate method to validate the action.
|
protected void | validateAction(java.lang.String action, java.lang.Object noun, java.lang.Object nounPart, java.util.List controlParameters)
This method will throw an exception because the action specified is not supported.
|
protected void | validateAdd(java.lang.Object noun, java.lang.Object nounPart, java.util.List controlParameters)
This method validates whether the add action can be performed on the specified noun part to the noun.
|
protected void | validateChange(java.lang.Object noun, java.lang.Object nounPart, java.util.List controlParameters)
This method validates whether the change action can be performed on the specified noun part to the noun.
|
protected void | validateDelete(java.lang.Object noun, java.lang.Object nounPart, java.util.List controlParameters)
This method validates whether the delete action can be performed on the specified noun part to the noun.
|
public AbstractChangeNounPartActionCmdImpl()
public final void addActionExpression(java.lang.Object noun, ActionExpression changeAction)
public final void setPersistentObjects(java.util.Map persistentObjects)
protected final java.util.List getActionExpressions(java.lang.Object noun)
protected final java.util.Set getNouns()
protected final java.util.Map getPersistentObjects()
public void reset()
public boolean isReadyToCallExecute()
public void performExecute() throws java.lang.Exception
protected void save() throws AbstractApplicationException
protected void handleAction(java.lang.String action, java.lang.Object noun, java.lang.Object nounPart, java.util.List controlParameters) throws AbstractApplicationException
protected abstract void add(java.lang.Object noun, java.lang.Object nounPart, java.util.List controlParameters) throws AbstractApplicationException
protected abstract void change(java.lang.Object noun, java.lang.Object nounPart, java.util.List controlParameters) throws AbstractApplicationException
protected abstract void delete(java.lang.Object noun, java.lang.Object nounPart, java.util.List controlParameters) throws AbstractApplicationException
public void validate() throws AbstractApplicationException
protected void validateAction(java.lang.String action, java.lang.Object noun, java.lang.Object nounPart, java.util.List controlParameters) throws AbstractApplicationException
protected void unsupportedAction(java.lang.String action, java.lang.Object noun, java.lang.Object nounPart) throws AbstractApplicationException
protected void validateAdd(java.lang.Object noun, java.lang.Object nounPart, java.util.List controlParameters) throws AbstractApplicationException
protected void validateChange(java.lang.Object noun, java.lang.Object nounPart, java.util.List controlParameters) throws AbstractApplicationException
protected void validateDelete(java.lang.Object noun, java.lang.Object nounPart, java.util.List controlParameters) throws AbstractApplicationException
public boolean isGeneric()