public class

GroupPermissionsDelegate

extends Object
implements PermissionDelegate
java.lang.Object
   ↳ com.atlassian.confluence.security.delegate.GroupPermissionsDelegate

Class Overview

Class for checking operations on groups.

Summary

Public Constructors
GroupPermissionsDelegate()
Public Methods
boolean canAdminister(User user, Object target)
Unsupported.
boolean canCreate(User user, Object container)
Determines if the specified user has permissions to create groups
boolean canEdit(User user, Object group)
Determines if the specified user can modify the membership (add/remove users) from the target group.
boolean canExport(User user, Object target)
Unsupported.
boolean canRemove(User user, Object target)
Determines if the specified user can remove the target group.
boolean canSetPermissions(User user, Object target)
Determines if the specified user can assign new permissions to or remove existing permissions from the target group.
boolean canView(User user, Object target)
Determines if the specified user can view the target group.
void setSpacePermissionManager(SpacePermissionManager spacePermissionManager)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.security.PermissionDelegate

Public Constructors

public GroupPermissionsDelegate ()

Public Methods

public boolean canAdminister (User user, Object target)

Unsupported.

public boolean canCreate (User user, Object container)

Determines if the specified user has permissions to create groups

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.

public boolean canEdit (User user, Object group)

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).

Parameters
group group to be modified (type Group)
Returns
  • true if the specified user can modify the target group, false otherwise.

public boolean canExport (User user, Object target)

Unsupported.

public boolean canRemove (User user, Object target)

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).

Returns
  • true if the specified user can remove the target group, false otherwise.

public boolean canSetPermissions (User user, Object target)

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).

Returns
  • true if the specified user can set permissions on the target group, false otherwise.

public boolean canView (User user, Object target)

Determines if the specified user can view the target group.

Returns
  • true, always (according to the current implementation).

public void setSpacePermissionManager (SpacePermissionManager spacePermissionManager)