public abstract class AbstractChangeNounPartUsingBusinessObjectMediatorCmdImpl extends AbstractChangeNounPartActionCmdImpl
Constructor and Description |
---|
AbstractChangeNounPartUsingBusinessObjectMediatorCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected void | add(java.lang.Object aNoun, java.lang.Object aNounPart, java.util.List controlParameters)
Create the noun part using the change mediator.
|
protected void | change(java.lang.Object aNoun, java.lang.Object aNounPart, java.util.List controlParameters)
Change the noun part using the change mediator.
|
protected void | delete(java.lang.Object aNoun, java.lang.Object aNounPart, java.util.List controlParameters)
Delete the noun part using the change mediator.
|
protected ChangeBusinessObjectPartMediator | getChangeNounPartMediator()
Get the change noun part mediator.
|
protected java.lang.String | getChangeNounPartPostActionCommandInterface()
This method returns the interface name of the command that represents the tasks to change selected parts of the noun.
|
protected ChangeBusinessObjectPartMediator | read()
The initial read uses the resolve access profile to read all of the parts to be changed.
|
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 | setChangeNounPartPostActionCommandInterface(java.lang.String changeNounPartPostActionCmdInterface)
This method sets the command interface name that represents the business logic that will perform the change noun part tasks post action logic.
|
void | validate()
Validate the noun parts based on the actions requested on the noun part Check if the corresponding physical entities exist in the physical store with the help of the configured mediators
|
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.
|
protected void | validateRequestParameterExists(java.util.List alistValidationErrors, java.lang.Object aNounPart, java.lang.String astrParameterName, java.lang.String astrMissingParameterErrorKey)
Check a given noun part for a mandatory parameter, and create an ApplicationError if it is found to be missing.
|
protected void | validateRequestParameterNotEmpty(java.util.List alistValidationErrors, java.lang.Object aNounPart, java.lang.String astrParameterName, java.lang.String astrInvalidParameterErrorKey)
Check a given noun part for a mandatory parameter, and if that parameter is present but empty then add an ApplicationError to the list of errors
|
public AbstractChangeNounPartUsingBusinessObjectMediatorCmdImpl()
protected final ChangeBusinessObjectPartMediator read() throws AbstractApplicationException
public void validate() 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
protected void add(java.lang.Object aNoun, java.lang.Object aNounPart, java.util.List controlParameters) throws AbstractApplicationException
protected void change(java.lang.Object aNoun, java.lang.Object aNounPart, java.util.List controlParameters) throws AbstractApplicationException
protected void delete(java.lang.Object aNoun, java.lang.Object aNounPart, java.util.List controlParameters) throws AbstractApplicationException
protected void save() throws AbstractApplicationException
protected final ChangeBusinessObjectPartMediator getChangeNounPartMediator()
protected void validateRequestParameterExists(java.util.List alistValidationErrors, java.lang.Object aNounPart, java.lang.String astrParameterName, java.lang.String astrMissingParameterErrorKey)
protected void validateRequestParameterNotEmpty(java.util.List alistValidationErrors, java.lang.Object aNounPart, java.lang.String astrParameterName, java.lang.String astrInvalidParameterErrorKey)
protected java.lang.String getChangeNounPartPostActionCommandInterface()
public void setChangeNounPartPostActionCommandInterface(java.lang.String changeNounPartPostActionCmdInterface)