com.atlassian.confluence.security.administrators
Interface PermissionsAdministrator

All Known Subinterfaces:
EditPermissionsAdministrator
All Known Implementing Classes:
AbstractEditPermissionsAdministrator, DefaultPermissionsAdministrator, EditGlobalPermissionsAdministrator, EditSpacePermissionsAdministrator

public interface PermissionsAdministrator

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


Method Summary
 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
 

Method Detail

buildUserPermissionTable

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.

buildGroupPermissionTable

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.

buildAnonymousPermissionRow

PermissionRow buildAnonymousPermissionRow()
Builds the permissions for an anonymous user, for printing in the UI.

Returns:
the permissions for an anonymous user.

getPermissions

List<SpacePermission> getPermissions()
Returns the current permissions set for the entity

Returns:
the current permissions set for the entity


Copyright © 2003-2012 Atlassian. All Rights Reserved.