info.magnolia.security.app.action
Class AbstractDeleteGroupOrRoleAction<D extends info.magnolia.ui.framework.action.DeleteActionDefinition>
java.lang.Object
info.magnolia.ui.api.action.AbstractAction<D>
info.magnolia.ui.framework.action.AbstractMultiItemAction<D>
info.magnolia.ui.framework.action.AbstractCommandAction<D>
info.magnolia.ui.framework.action.DeleteAction
info.magnolia.security.app.action.AbstractDeleteGroupOrRoleAction<D>
- Type Parameters:
D
- the action definition type, must extend the DeleteActionDefinition
class.
- All Implemented Interfaces:
- info.magnolia.ui.api.action.Action
- Direct Known Subclasses:
- DeleteGroupAction, DeleteRoleAction
public abstract class AbstractDeleteGroupOrRoleAction<D extends info.magnolia.ui.framework.action.DeleteActionDefinition>
- extends info.magnolia.ui.framework.action.DeleteAction
Abstract common supertype for DeleteGroupAction
and DeleteRoleAction
.
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 |
AbstractDeleteGroupOrRoleAction(D 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)
|
AbstractDeleteGroupOrRoleAction(D definition,
info.magnolia.ui.vaadin.integration.jcr.JcrItemAdapter item,
info.magnolia.event.EventBus eventBus,
info.magnolia.ui.api.context.UiContext uiContext,
info.magnolia.i18nsystem.SimpleTranslator i18n)
Deprecated. since 5.2.2 instead of use AbstractDeleteGroupOrRoleAction(info.magnolia.ui.framework.action.DeleteActionDefinition, info.magnolia.ui.vaadin.integration.jcr.JcrItemAdapter, info.magnolia.commands.CommandsManager, info.magnolia.event.EventBus, info.magnolia.ui.api.context.UiContext, info.magnolia.i18nsystem.SimpleTranslator) |
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 |
AbstractDeleteGroupOrRoleAction
@Inject
public AbstractDeleteGroupOrRoleAction(D 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)
AbstractDeleteGroupOrRoleAction
@Deprecated
public AbstractDeleteGroupOrRoleAction(D definition,
info.magnolia.ui.vaadin.integration.jcr.JcrItemAdapter item,
@Named(value="admincentral")
info.magnolia.event.EventBus eventBus,
info.magnolia.ui.api.context.UiContext uiContext,
info.magnolia.i18nsystem.SimpleTranslator i18n)
- Deprecated. since 5.2.2 instead of use
AbstractDeleteGroupOrRoleAction(info.magnolia.ui.framework.action.DeleteActionDefinition, info.magnolia.ui.vaadin.integration.jcr.JcrItemAdapter, info.magnolia.commands.CommandsManager, info.magnolia.event.EventBus, info.magnolia.ui.api.context.UiContext, info.magnolia.i18nsystem.SimpleTranslator)
getItem
@Deprecated
public info.magnolia.ui.vaadin.integration.jcr.JcrItemAdapter getItem()
- Deprecated. since 5.2.2 instead of use
AbstractMultiItemAction.getCurrentItem()
getBaseErrorMessage
protected abstract String getBaseErrorMessage()
- Returns:
- the base for the error message shown to the user in case the item is already assigned; the list of users/groups the item is assigned to is added;
getVerificationErrorMessage
protected abstract String getVerificationErrorMessage()
- Returns:
- the message to be shown to the user in case the verification (
getUsersAndGroupsThisItemIsAssignedTo()
method) fails.
getGroupsOrRoles
protected abstract Collection<String> getGroupsOrRoles(info.magnolia.cms.security.User user)
- Gets a collection of group or role names (according to where it is implemented) assigned to the user.
getGroupsOrRoles
protected abstract Collection<String> getGroupsOrRoles(info.magnolia.cms.security.Group group)
- Gets a collection of group or role names (according to where it is implemented) assigned to the group.
executeAfterConfirmation
@Deprecated
protected void executeAfterConfirmation()
- Deprecated. since 5.2.2 instead of use
onPreExecute()
onPreExecute
protected void onPreExecute()
throws Exception
- Overrides:
onPreExecute
in class info.magnolia.ui.framework.action.DeleteAction
- Throws:
Exception
Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.