public class DeleteFolderAction extends DeleteAction<DeleteFolderActionDefinition>
DeleteFolderActionDefinition
eventBus, jcrItem, uiContext
COMMAND_RESULT, LONG_RUNNING_ACTION_NOTIFICATION, PARALLEL_EXECUTION_NOT_ALLOWED_NOTIFICATION
Constructor and Description |
---|
DeleteFolderAction(DeleteFolderActionDefinition definition,
JcrItemAdapter item,
info.magnolia.commands.CommandsManager commandsManager,
info.magnolia.event.EventBus eventBus,
UiContext uiContext,
info.magnolia.i18nsystem.SimpleTranslator i18n,
info.magnolia.cms.security.SecuritySupport securitySupport) |
DeleteFolderAction(DeleteFolderActionDefinition definition,
List<JcrItemAdapter> items,
info.magnolia.commands.CommandsManager commandsManager,
info.magnolia.event.EventBus eventBus,
UiContext uiContext,
info.magnolia.i18nsystem.SimpleTranslator i18n,
info.magnolia.cms.security.SecuritySupport securitySupport) |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Executes the action.
|
protected String |
formatUserAndGroupList(Map<String,List<String>> usersAndGroups) |
protected String |
getBaseErrorMessage() |
protected String |
getConfirmationDialogBody() |
protected String |
getConfirmationDialogCancelLabel() |
protected String |
getConfirmationDialogProceedLabel() |
protected String |
getConfirmationDialogTitle() |
protected Collection<String> |
getGroupsOrRoles(info.magnolia.cms.security.Group group)
Deprecated.
since 5.3.6 - will be removed without replacement
|
protected Collection<String> |
getGroupsOrRoles(info.magnolia.cms.security.User user)
Deprecated.
since 5.3.6 - will be removed without replacement
|
protected String |
getUserAndGroupListForErrorMessage(List<String> usersAndGroups)
Deprecated.
since 5.3.10 - use
#formatUserAndGroupList(Map instead. |
protected String |
getVerificationErrorMessage() |
protected void |
onPreExecute()
Pre Command Execution.
|
executeOnItem, getFailureMessage, getI18n, getSuccessMessage, onPostExecute
buildParams, getCommand, getCommandsManager, getParams, isInvokeAsynchronously, onError
getCurrentItem, getErrorNotification, getFailedItems, getItemComparator, getItems, getSortedItems, getUiContext, setCurrentItem
getDefinition
@Inject public DeleteFolderAction(DeleteFolderActionDefinition definition, JcrItemAdapter item, info.magnolia.commands.CommandsManager commandsManager, @Named(value="admincentral") info.magnolia.event.EventBus eventBus, UiContext uiContext, info.magnolia.i18nsystem.SimpleTranslator i18n, info.magnolia.cms.security.SecuritySupport securitySupport)
@Inject public DeleteFolderAction(DeleteFolderActionDefinition definition, List<JcrItemAdapter> items, info.magnolia.commands.CommandsManager commandsManager, @Named(value="admincentral") info.magnolia.event.EventBus eventBus, UiContext uiContext, info.magnolia.i18nsystem.SimpleTranslator i18n, info.magnolia.cms.security.SecuritySupport securitySupport)
public void execute() throws ActionExecutionException
Action
execute
in interface Action
execute
in class AbstractMultiItemAction<DeleteFolderActionDefinition>
ActionExecutionException
- if an error occurs performing the actionprotected void onPreExecute() throws Exception
AbstractCommandAction
onPreExecute
in class DeleteAction<DeleteFolderActionDefinition>
Exception
protected String getVerificationErrorMessage()
@Deprecated protected Collection<String> getGroupsOrRoles(info.magnolia.cms.security.User user)
@Deprecated protected Collection<String> getGroupsOrRoles(info.magnolia.cms.security.Group group)
@Deprecated protected String getUserAndGroupListForErrorMessage(List<String> usersAndGroups)
#formatUserAndGroupList(Map>)
instead.protected String formatUserAndGroupList(Map<String,List<String>> usersAndGroups)
protected String getConfirmationDialogTitle()
protected String getConfirmationDialogBody()
protected String getConfirmationDialogProceedLabel()
protected String getConfirmationDialogCancelLabel()
protected String getBaseErrorMessage()
Copyright © 2015 Magnolia International Ltd.. All rights reserved.