info.magnolia.security.app.action
Class DeleteEmptyFolderAction

java.lang.Object
  extended by info.magnolia.ui.api.action.AbstractAction<D>
      extended by info.magnolia.ui.framework.action.AbstractMultiItemAction<D>
          extended by info.magnolia.ui.framework.action.AbstractCommandAction<D>
              extended by info.magnolia.ui.framework.action.DeleteAction<DeleteEmptyFolderActionDefinition>
                  extended by info.magnolia.security.app.action.DeleteEmptyFolderAction
All Implemented Interfaces:
info.magnolia.ui.api.action.Action

public class DeleteEmptyFolderAction
extends info.magnolia.ui.framework.action.DeleteAction<DeleteEmptyFolderActionDefinition>

Action that will only delete a folder if it has no sub nodes.

See Also:
DeleteEmptyFolderActionDefinition

Field Summary
 
Fields inherited from class info.magnolia.ui.framework.action.DeleteAction
eventBus, jcrItem, uiContext
 
Fields inherited from class info.magnolia.ui.framework.action.AbstractCommandAction
COMMAND_RESULT
 
Constructor Summary
DeleteEmptyFolderAction(DeleteEmptyFolderActionDefinition definition, info.magnolia.ui.vaadin.integration.jcr.JcrItemAdapter item, info.magnolia.commands.CommandsManager commandsManager, info.magnolia.event.EventBus eventBus, info.magnolia.ui.api.context.UiContext uiContext, info.magnolia.i18nsystem.SimpleTranslator i18n)
           
DeleteEmptyFolderAction(DeleteEmptyFolderActionDefinition definition, List<info.magnolia.ui.vaadin.integration.jcr.JcrItemAdapter> items, info.magnolia.commands.CommandsManager commandsManager, info.magnolia.event.EventBus eventBus, info.magnolia.ui.api.context.UiContext uiContext, info.magnolia.i18nsystem.SimpleTranslator i18n)
           
 
Method Summary
 void onPreExecute()
           
 
Methods inherited from class info.magnolia.ui.framework.action.DeleteAction
execute, executeOnItem, getFailureMessage, getI18n, getSuccessMessage, onPostExecute
 
Methods inherited from class info.magnolia.ui.framework.action.AbstractCommandAction
buildParams, getCommand, getCommandsManager, getParams, isInvokeAsynchronously, onError
 
Methods inherited from class info.magnolia.ui.framework.action.AbstractMultiItemAction
getCurrentItem, getErrorNotification, getFailedItems, getItemComparator, getItems, getSortedItems, getUiContext, setCurrentItem
 
Methods inherited from class info.magnolia.ui.api.action.AbstractAction
getDefinition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteEmptyFolderAction

public DeleteEmptyFolderAction(DeleteEmptyFolderActionDefinition definition,
                               info.magnolia.ui.vaadin.integration.jcr.JcrItemAdapter item,
                               info.magnolia.commands.CommandsManager commandsManager,
                               @Named(value="admincentral")
                               info.magnolia.event.EventBus eventBus,
                               info.magnolia.ui.api.context.UiContext uiContext,
                               info.magnolia.i18nsystem.SimpleTranslator i18n)

DeleteEmptyFolderAction

public DeleteEmptyFolderAction(DeleteEmptyFolderActionDefinition definition,
                               List<info.magnolia.ui.vaadin.integration.jcr.JcrItemAdapter> items,
                               info.magnolia.commands.CommandsManager commandsManager,
                               @Named(value="admincentral")
                               info.magnolia.event.EventBus eventBus,
                               info.magnolia.ui.api.context.UiContext uiContext,
                               info.magnolia.i18nsystem.SimpleTranslator i18n)
Method Detail

onPreExecute

public void onPreExecute()
                  throws Exception
Overrides:
onPreExecute in class info.magnolia.ui.framework.action.DeleteAction<DeleteEmptyFolderActionDefinition>
Throws:
Exception


Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.