D
- the action definition type, must extend the DeleteActionDefinition
class.public abstract class AbstractDeleteGroupOrRoleAction<D extends DeleteActionDefinition> extends DeleteAction
DeleteGroupAction
and DeleteRoleAction
.eventBus, items, uiContext
COMMAND_RESULT, LONG_RUNNING_ACTION_NOTIFICATION, PARALLEL_EXECUTION_NOT_ALLOWED_NOTIFICATION
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)
Deprecated.
|
AbstractDeleteGroupOrRoleAction(D 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) |
AbstractDeleteGroupOrRoleAction(D definition,
JcrItemAdapter item,
info.magnolia.event.EventBus eventBus,
UiContext uiContext,
info.magnolia.i18nsystem.SimpleTranslator i18n)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Executes the action.
|
protected void |
executeAfterConfirmation()
Deprecated.
since 5.2.2 instead of use
onPreExecute() |
protected abstract String |
getBaseErrorMessage() |
protected abstract String |
getConfirmationDialogBody() |
protected abstract String |
getConfirmationDialogCancelLabel() |
protected abstract String |
getConfirmationDialogProceedLabel() |
protected abstract String |
getConfirmationDialogTitle() |
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.
|
protected abstract Collection<String> |
getGroupsWithGroupOrRoleToDelete(String groupOrRoleName) |
JcrItemAdapter |
getItem()
Deprecated.
since 5.2.2 instead of use
AbstractMultiItemAction.getCurrentItem() |
protected info.magnolia.cms.security.SecuritySupport |
getSecuritySupport() |
protected abstract Collection<String> |
getUsersWithGroupOrRoleToDelete(String groupOrRoleName) |
protected abstract 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 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, info.magnolia.cms.security.SecuritySupport securitySupport)
@Deprecated 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)
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, info.magnolia.cms.security.SecuritySupport)
@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, info.magnolia.cms.security.SecuritySupport)
@Deprecated public JcrItemAdapter getItem()
AbstractMultiItemAction.getCurrentItem()
protected abstract String getBaseErrorMessage()
protected abstract String getVerificationErrorMessage()
getAssignedUsersAndGroups()
method) fails.protected abstract Collection<String> getGroupsOrRoles(info.magnolia.cms.security.User user)
protected abstract Collection<String> getGroupsOrRoles(info.magnolia.cms.security.Group group)
protected abstract Collection<String> getUsersWithGroupOrRoleToDelete(String groupOrRoleName)
protected abstract Collection<String> getGroupsWithGroupOrRoleToDelete(String groupOrRoleName)
@Deprecated protected void executeAfterConfirmation()
onPreExecute()
protected void onPreExecute() throws Exception
AbstractCommandAction
onPreExecute
in class DeleteAction
Exception
protected abstract String getConfirmationDialogTitle()
protected abstract String getConfirmationDialogBody()
protected abstract String getConfirmationDialogProceedLabel()
protected abstract String getConfirmationDialogCancelLabel()
public void execute() throws ActionExecutionException
Action
execute
in interface Action
execute
in class AbstractMultiItemAction
ActionExecutionException
- if an error occurs performing the actionprotected info.magnolia.cms.security.SecuritySupport getSecuritySupport()
Copyright © 2021 Magnolia International Ltd.. All rights reserved.