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 -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()booleanIf 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, saveIfNotExistsMethods 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, setRequestMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openxava.actions.IAction
getErrors, getMessages, setEnvironment, setErrors, setMessages
-
Constructor Details
-
PasteElementsIntoCollectionAction
public PasteElementsIntoCollectionAction()
-
-
Method Details
-
execute
- Specified by:
executein interfaceIAction- Overrides:
executein classSaveElementInCollectionAction- Throws:
Exception
-
isAvailable
public boolean isAvailable()Description copied from interface:IAvailableActionIf 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:
isAvailablein interfaceIAvailableAction
-