Package org.openxava.actions
Class PasteElementsIntoCollectionAction
- java.lang.Object
-
- org.openxava.actions.BaseAction
-
- org.openxava.actions.ViewBaseAction
-
- org.openxava.actions.CollectionElementViewBaseAction
-
- org.openxava.actions.SaveElementInCollectionAction
-
- org.openxava.actions.PasteElementsIntoCollectionAction
-
- All Implemented Interfaces:
IAction
,IAvailableAction
,IChangeModeAction
,IModuleContextAction
,IRequestAction
public class PasteElementsIntoCollectionAction extends SaveElementInCollectionAction implements IAvailableAction
- Since:
- 5.9
- Author:
- Javier Paniza
-
-
Field Summary
-
Fields inherited from interface org.openxava.actions.IChangeModeAction
DETAIL, LIST, PREVIOUS_MODE, SPLIT
-
-
Constructor Summary
Constructors Constructor Description PasteElementsIntoCollectionAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
boolean
isAvailable()
If true the action will be available for the user, otherwise it will be hidden.-
Methods inherited from class org.openxava.actions.SaveElementInCollectionAction
addValidationMessage, associateEntity, create, getNextAction, getValuesToSave, saveCollectionElement, saveIfNotExists
-
Methods inherited from class org.openxava.actions.CollectionElementViewBaseAction
closeDialog, getCollectionElementView, getMetaCollection, getParentView, getView, getViewObject, isCloseDialogDisallowed, isEntityReferencesCollection, isEntityReferencesCollection, mustRefreshCollection, setCloseDialogDisallowed, setViewObject, showDialog, validateMaximum, validateMinimum
-
Methods inherited from class org.openxava.actions.ViewBaseAction
changeThisPropertyByViewValue, getModelName, getPreviousView, getPreviousViews, resetDescriptionsCache, returnToPreviousView, setControllers, setPreviousViews, setView, showDialog, showNewView, showView, validateViewValues
-
Methods 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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openxava.actions.IAction
getErrors, getMessages, setEnvironment, setErrors, setMessages
-
-
-
-
Method Detail
-
execute
public void execute() throws java.lang.Exception
- Specified by:
execute
in interfaceIAction
- Overrides:
execute
in classSaveElementInCollectionAction
- Throws:
java.lang.Exception
-
isAvailable
public boolean isAvailable()
Description copied from interface:IAvailableAction
If true the action will be available for the user, otherwise it will be hidden.
This method is executed before determine if the action has to be shown, so before execute(). The action is configured completely (injecting all needed objects and properties) before calling isAvailable().- Specified by:
isAvailable
in interfaceIAvailableAction
-
-