public class SaveAndStayElementInCollectionAction extends CollectionElementViewBaseAction implements IChainAction, IChainActionWithArgv
The case of collections of entities with @AsEmbedded (or with as-aggregate="true")
is treated by AddElementsToCollectionAction
.
DETAIL, LIST, PREVIOUS_MODE, SPLIT
Constructor and Description |
---|
SaveAndStayElementInCollectionAction() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
java.lang.String |
getNextAction()
The qualified name of the next action to execute.
|
java.lang.String |
getNextActionArgv()
Values for filling the properties of the chained action.
|
closeDialog, getCollectionElementView, getMetaCollection, getParentView, getView, getViewObject, isCloseDialogDisallowed, isEntityReferencesCollection, isEntityReferencesCollection, mustRefreshCollection, setCloseDialogDisallowed, setViewObject, showDialog, validateMaximum, validateMinimum
getModelName, getPreviousView, getPreviousViews, resetDescriptionsCache, returnToPreviousView, setControllers, setPreviousViews, setView, showDialog, showNewView, showView, validateViewValues
addActions, addError, addErrors, addInfo, addMessage, addMessages, addWarning, clearActions, commit, executeAction, executeAfter, executeBefore, getContext, getEnvironment, getErrors, getLocale, getManager, getMessages, getNextMode, getQualifiedActionIfAvailable, getRequest, removeActions, returnToPreviousControllers, rollback, setContext, setDefaultControllers, setEnvironment, setErrors, setMessages, setNextMode, setRequest
public SaveAndStayElementInCollectionAction()
public void execute() throws java.lang.Exception
execute
in interface IAction
execute
in class CollectionElementViewBaseAction
java.lang.Exception
public java.lang.String getNextAction() throws java.lang.Exception
IChainAction
Qualified name is name of the controller + name of the
action as in controllers.xml file. For example,
CRUD.new
.
getNextAction
in interface IChainAction
java.lang.Exception
public java.lang.String getNextActionArgv() throws java.lang.Exception
IChainActionWithArgv
The chained action is the one returned in IChainAction.getNextAction()
.
The values arguments returned by this method will fill the properties of the action.
The format is like this one:
propertyA=valueA,propertyB=valueBIn this case, valueA will be injected in propertyA of the chained action, and valueB will be injected in the propertyB of chained action before execute it.
getNextActionArgv
in interface IChainActionWithArgv
java.lang.Exception