D
- the action definition type, must extend the DeleteActionDefinition
class.public abstract class AbstractDeleteGroupOrRoleAction<D extends DeleteActionDefinition> extends DeleteAction
DeleteGroupAction
and DeleteRoleAction
.AbstractCommandAction.CommandActionTriggerListener
eventBus, jcrItem, uiContext
COMMAND_RESULT
Constructor and Description |
---|
AbstractDeleteGroupOrRoleAction(D definition,
JcrItemAdapter item,
info.magnolia.commands.CommandsManager commandsManager,
info.magnolia.event.EventBus eventBus,
UiContext uiContext,
info.magnolia.i18nsystem.SimpleTranslator i18n) |
AbstractDeleteGroupOrRoleAction(D definition,
JcrItemAdapter item,
info.magnolia.event.EventBus eventBus,
UiContext uiContext,
info.magnolia.i18nsystem.SimpleTranslator i18n)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
executeAfterConfirmation()
Deprecated.
since 5.2.2 instead of use
onPreExecute() |
protected abstract String |
getBaseErrorMessage() |
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.
|
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.
|
JcrItemAdapter |
getItem()
Deprecated.
since 5.2.2 instead of use
AbstractMultiItemAction.getCurrentItem() |
protected abstract String |
getVerificationErrorMessage() |
protected void |
onPreExecute()
Pre Command Execution.
|
executeOnItem, getFailureMessage, getI18n, getSuccessMessage, onPostExecute
buildParams, getCommand, getCommandsManager, getParams, isInvokeAsynchronously, onError
execute, getCurrentItem, getErrorNotification, getFailedItems, getItemComparator, getItems, getSortedItems, getUiContext, setCurrentItem
getDefinition
@Inject public AbstractDeleteGroupOrRoleAction(D definition, JcrItemAdapter item, info.magnolia.commands.CommandsManager commandsManager, @Named(value="admincentral") info.magnolia.event.EventBus eventBus, UiContext uiContext, info.magnolia.i18nsystem.SimpleTranslator i18n)
@Deprecated public AbstractDeleteGroupOrRoleAction(D definition, JcrItemAdapter item, @Named(value="admincentral") info.magnolia.event.EventBus eventBus, UiContext uiContext, info.magnolia.i18nsystem.SimpleTranslator i18n)
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)
@Deprecated public JcrItemAdapter getItem()
AbstractMultiItemAction.getCurrentItem()
protected abstract String getBaseErrorMessage()
protected abstract String getVerificationErrorMessage()
getUsersAndGroupsThisItemIsAssignedTo()
method) fails.protected abstract Collection<String> getGroupsOrRoles(info.magnolia.cms.security.User user)
protected abstract Collection<String> getGroupsOrRoles(info.magnolia.cms.security.Group group)
@Deprecated protected void executeAfterConfirmation()
onPreExecute()
protected void onPreExecute() throws Exception
AbstractCommandAction
onPreExecute
in class DeleteAction
Exception
Copyright © 2015 Magnolia International Ltd.. All rights reserved.