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.
 java.util.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.
 java.util.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.
 java.util.List<SpacePermission> getPermissions()
          Returns the current permissions set for the entity
 

Method Detail

buildUserPermissionTable

java.util.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

java.util.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

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

Returns:
the current permissions set for the entity


Copyright © 2003-2010 Atlassian. All Rights Reserved.