Class DefaultPermissionsAdministrator
java.lang.Object
com.atlassian.confluence.impl.security.administrators.DefaultPermissionsAdministrator
- All Implemented Interfaces:
PermissionsAdministrator
- Direct Known Subclasses:
AbstractEditPermissionsAdministrator
@NotThreadSafe
public class DefaultPermissionsAdministrator
extends Object
implements PermissionsAdministrator
The view administrator used jointly by global and space permissions actions
- Since:
- 7.17
-
Constructor Summary
ConstructorDescriptionDefaultPermissionsAdministrator
(PermissionResolver permissionResolver, GroupResolver groupResolver) -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the UnlicensedPermissionRow for printing in a UI.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.Builds the permissions for all authenticated users, for printing in the UI.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.Returns the current permissions set for the entity
-
Constructor Details
-
DefaultPermissionsAdministrator
public DefaultPermissionsAdministrator(PermissionResolver permissionResolver, GroupResolver groupResolver)
-
-
Method Details
-
buildGroupPermissionTable
Description copied from interface:PermissionsAdministrator
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.- Specified by:
buildGroupPermissionTable
in interfacePermissionsAdministrator
- Returns:
- a map of permissions for each permitted group.
-
buildUserPermissionTable
Description copied from interface:PermissionsAdministrator
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.- Specified by:
buildUserPermissionTable
in interfacePermissionsAdministrator
- Returns:
- a map of permissions for each permitted user.
-
buildUnlicensedAuthenticatedPermissionRow
Description copied from interface:PermissionsAdministrator
Builds the permissions for all authenticated users, for printing in the UI.- Specified by:
buildUnlicensedAuthenticatedPermissionRow
in interfacePermissionsAdministrator
- Returns:
- the permissions for all authenticated users.
-
buildAnonymousPermissionRow
Retrieves the UnlicensedPermissionRow for printing in a UI.- Specified by:
buildAnonymousPermissionRow
in interfacePermissionsAdministrator
- Returns:
- the anonymous permissions.
-
getPermissions
Description copied from interface:PermissionsAdministrator
Returns the current permissions set for the entity- Specified by:
getPermissions
in interfacePermissionsAdministrator
- Returns:
- the current permissions set for the entity
-