public interface

PermissionsAdministrator

com.atlassian.confluence.security.administrators.PermissionsAdministrator
Known Indirect Subclasses

Class Overview

Provides the logic required by the actions to view the permissions for both global and spaces

Summary

Public Methods
PermissionRow buildAnonymousPermissionRow()
Builds the permissions for an anonymous user, for printing in the UI.
Collection<PermissionRow> buildGroupPermissionTable(UserAccessor userAccessor)
Builds a map of permissions for each permitted group, for printing in the UI The key is the groupname and the values is a row of permissions.
Collection<PermissionRow> buildUserPermissionTable(UserAccessor userAccessor)
Builds a map of permissions for each permitted user, for printing in the UI The key is the username and the values is a row of permissions.
List<SpacePermission> getPermissions()
Returns the current permissions set for the entity

Public Methods

public PermissionRow buildAnonymousPermissionRow ()

Builds the permissions for an anonymous user, for printing in the UI.

Returns
  • the permissions for an anonymous user.

public Collection<PermissionRow> buildGroupPermissionTable (UserAccessor userAccessor)

Builds a map of permissions for each permitted group, for printing in the UI The key is the groupname and the values is a row of permissions.

Parameters
userAccessor - used to find and verify the groupnames.
Returns
  • a map of permissions for each permitted group.

public Collection<PermissionRow> buildUserPermissionTable (UserAccessor userAccessor)

Builds a map of permissions for each permitted user, for printing in the UI The key is the username and the values is a row of permissions.

Parameters
userAccessor - used to find and verify the usernames.
Returns
  • a map of permissions for each permitted user.

public List<SpacePermission> getPermissions ()

Returns the current permissions set for the entity

Returns
  • the current permissions set for the entity