info.magnolia.security.app.action
Class DeleteGroupAction

java.lang.Object
  extended by info.magnolia.ui.api.action.AbstractAction<D>
      extended by info.magnolia.ui.framework.action.AbstractMultiItemAction<info.magnolia.ui.framework.action.DeleteItemActionDefinition>
          extended by info.magnolia.ui.framework.action.DeleteItemAction
              extended by info.magnolia.security.app.action.AbstractDeleteGroupOrRoleAction<DeleteGroupActionDefinition>
                  extended by info.magnolia.security.app.action.DeleteGroupAction
All Implemented Interfaces:
info.magnolia.ui.api.action.Action

public class DeleteGroupAction
extends AbstractDeleteGroupOrRoleAction<DeleteGroupActionDefinition>

Deletes a group after performing a check that the group is not assignet to any user or another group.


Constructor Summary
DeleteGroupAction(DeleteGroupActionDefinition 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)
           
 
Method Summary
protected  String getBaseErrorMessage()
           
protected  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  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  String getVerificationErrorMessage()
           
 
Methods inherited from class info.magnolia.security.app.action.AbstractDeleteGroupOrRoleAction
executeAfterConfirmation, getI18n, getItem
 
Methods inherited from class info.magnolia.ui.framework.action.DeleteItemAction
execute, executeOnItem, getFailureMessage, getSuccessMessage
 
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

DeleteGroupAction

@Inject
public DeleteGroupAction(DeleteGroupActionDefinition 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)
Method Detail

getGroupsOrRoles

protected Collection<String> getGroupsOrRoles(info.magnolia.cms.security.User user)
Description copied from class: AbstractDeleteGroupOrRoleAction
Gets a collection of group or role names (according to where it is implemented) assigned to the user.

Specified by:
getGroupsOrRoles in class AbstractDeleteGroupOrRoleAction<DeleteGroupActionDefinition>

getGroupsOrRoles

protected Collection<String> getGroupsOrRoles(info.magnolia.cms.security.Group group)
Description copied from class: AbstractDeleteGroupOrRoleAction
Gets a collection of group or role names (according to where it is implemented) assigned to the group.

Specified by:
getGroupsOrRoles in class AbstractDeleteGroupOrRoleAction<DeleteGroupActionDefinition>

getBaseErrorMessage

protected String getBaseErrorMessage()
Specified by:
getBaseErrorMessage in class AbstractDeleteGroupOrRoleAction<DeleteGroupActionDefinition>
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 String getVerificationErrorMessage()
Specified by:
getVerificationErrorMessage in class AbstractDeleteGroupOrRoleAction<DeleteGroupActionDefinition>
Returns:
the message to be shown to the user in case the verification (AbstractDeleteGroupOrRoleAction.getUsersAndGroupsThisItemIsAssignedTo() method) fails.


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