Package org.openxava.actions
Class SaveAndStayElementInCollectionAction
java.lang.Object
org.openxava.actions.BaseAction
org.openxava.actions.ViewBaseAction
org.openxava.actions.CollectionElementViewBaseAction
org.openxava.actions.SaveAndStayElementInCollectionAction
- All Implemented Interfaces:
IAction,IChainAction,IChainActionWithArgv,IChangeModeAction,IModuleContextAction,IRequestAction
public class SaveAndStayElementInCollectionAction
extends CollectionElementViewBaseAction
implements IChainAction, IChainActionWithArgv
To save a collection element.
The case of collections of entities with @AsEmbedded (or with as-aggregate="true")
is treated by AddElementsToCollectionAction.
- Author:
- Javier Paniza
-
Field Summary
Fields inherited from interface org.openxava.actions.IChangeModeAction
DETAIL, LIST, PREVIOUS_MODE, SPLIT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()The qualified name of the next action to execute.Values for filling the properties of the chained action.Methods inherited from class org.openxava.actions.CollectionElementViewBaseAction
closeDialog, getCollectionElementView, getCollectionLabel, getMetaCollection, getMetaCollectionView, getParentView, getView, getViewObject, isCloseDialogDisallowed, isEntityReferencesCollection, isEntityReferencesCollection, mustRefreshCollection, setCloseDialogDisallowed, setViewObject, showDialog, validateMaximum, validateMinimumMethods inherited from class org.openxava.actions.ViewBaseAction
changeThisPropertyByViewValue, getModelName, getPreviousView, getPreviousViews, resetDescriptionsCache, returnToPreviousView, setControllers, setPreviousViews, setView, showDialog, showNewView, showView, validateViewValuesMethods inherited from class org.openxava.actions.BaseAction
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
-
Constructor Details
-
SaveAndStayElementInCollectionAction
public SaveAndStayElementInCollectionAction()
-
-
Method Details
-
execute
- Specified by:
executein interfaceIAction- Specified by:
executein classCollectionElementViewBaseAction- Throws:
Exception
-
getNextAction
Description copied from interface:IChainActionThe qualified name of the next action to execute.Qualified name is name of the controller + name of the action as in controllers.xml file. For example,
CRUD.new.- Specified by:
getNextActionin interfaceIChainAction- Throws:
Exception
-
getNextActionArgv
Description copied from interface:IChainActionWithArgvValues for filling the properties of the chained action.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=valueB
In 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.- Specified by:
getNextActionArgvin interfaceIChainActionWithArgv- Returns:
- Throws:
Exception
-