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
Constructors Constructor Description DefaultPermissionsAdministrator(PermissionResolver permissionResolver, GroupResolver groupResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PermissionRow
buildAnonymousPermissionRow()
Retrieves the UnlicensedPermissionRow for printing in a UI.Collection<PermissionRow>
buildGroupPermissionTable()
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.PermissionRow
buildUnlicensedAuthenticatedPermissionRow()
Builds the permissions for all authenticated users, for printing in the UI.Collection<PermissionRow>
buildUserPermissionTable()
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
-
-
-
Constructor Detail
-
DefaultPermissionsAdministrator
public DefaultPermissionsAdministrator(PermissionResolver permissionResolver, GroupResolver groupResolver)
-
-
Method Detail
-
buildGroupPermissionTable
public Collection<PermissionRow> 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
public Collection<PermissionRow> 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
public PermissionRow 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
public PermissionRow buildAnonymousPermissionRow()
Retrieves the UnlicensedPermissionRow for printing in a UI.- Specified by:
buildAnonymousPermissionRow
in interfacePermissionsAdministrator
- Returns:
- the anonymous permissions.
-
getPermissions
public List<SpacePermission> 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
-
-