Class GroupPermissionsDelegate
java.lang.Object
com.atlassian.confluence.security.delegate.GroupPermissionsDelegate
- All Implemented Interfaces:
PermissionDelegate<com.atlassian.user.Group>
public class GroupPermissionsDelegate
extends Object
implements PermissionDelegate<com.atlassian.user.Group>
Class for checking operations on groups.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanAdminister(ConfluenceUser user, com.atlassian.user.Group target) Unsupported.booleancanCreate(ConfluenceUser user, Object container) Determines if the specified user has permissions to create groupsbooleancanCreateInTarget(ConfluenceUser user, Class typeToCreate) booleancanEdit(ConfluenceUser user, com.atlassian.user.Group group) Determines if the specified user can modify the membership (add/remove users) from the target group.booleancanExport(ConfluenceUser user, com.atlassian.user.Group target) Unsupported.booleancanRemove(ConfluenceUser user, com.atlassian.user.Group target) Determines if the specified user can remove the target group.booleancanSetPermissions(ConfluenceUser user, com.atlassian.user.Group target) Determines if the specified user can assign new permissions to or remove existing permissions from the target group.booleancanView(ConfluenceUser user) booleancanView(ConfluenceUser user, com.atlassian.user.Group target) Determines if the specified user can view the target group.voidsetSpacePermissionManager(SpacePermissionManager spacePermissionManager) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.confluence.security.PermissionDelegate
canMove, canRemoveHierarchy
-
Constructor Details
-
GroupPermissionsDelegate
public GroupPermissionsDelegate()
-
-
Method Details
-
canView
Determines if the specified user can view the target group.- Specified by:
canViewin interfacePermissionDelegate<com.atlassian.user.Group>- Returns:
- true, always (according to the current implementation).
-
canView
- Specified by:
canViewin interfacePermissionDelegate<com.atlassian.user.Group>- Returns:
- true if the user can view all instances of targets handled by this permission delegate
-
canEdit
Determines if the specified user can modify the membership (add/remove users) from the target group. Only Confluence administrators and System administrators can modify most groups. Only system administrators can modify groups with system administrator permissions (or the confluence-administrator super group).- Specified by:
canEditin interfacePermissionDelegate<com.atlassian.user.Group>- Parameters:
group- group to be modified (typeGroup)- Returns:
- true if the specified user can modify the target group, false otherwise.
-
canRemove
Determines if the specified user can remove the target group. Only Confluence administrators and System administrators can remove most groups. Only system administrators can remove groups with system administrators permissions (or the confluence-administrator super group).- Specified by:
canRemovein interfacePermissionDelegate<com.atlassian.user.Group>- Returns:
- true if the specified user can remove the target group, false otherwise.
-
canCreate
Determines if the specified user has permissions to create groups- Specified by:
canCreatein interfacePermissionDelegate<com.atlassian.user.Group>- Parameters:
container- not required. Null can be specified here as it is not used at the moment.- Returns:
- true if the specified user has permissions to create groups.
-
canCreateInTarget
- Specified by:
canCreateInTargetin interfacePermissionDelegate<com.atlassian.user.Group>- Parameters:
user- the user performing the createtypeToCreate- the class of the entity to create- Returns:
- true if the specified user can create new instances of the specified typeToCreate within instances of target handled by this PermissionDelegate.
-
canExport
Unsupported.- Specified by:
canExportin interfacePermissionDelegate<com.atlassian.user.Group>
-
canSetPermissions
Determines if the specified user can assign new permissions to or remove existing permissions from the target group. Only system administrators can set permissions on groups with system administrators permissions (or the confluence-administrator super group).- Specified by:
canSetPermissionsin interfacePermissionDelegate<com.atlassian.user.Group>- Returns:
- true if the specified user can set permissions on the target group, false otherwise.
-
canAdminister
Unsupported.- Specified by:
canAdministerin interfacePermissionDelegate<com.atlassian.user.Group>
-
setSpacePermissionManager
-