Interface RetentionPolicyPermissionManager
-
- All Known Implementing Classes:
DefaultRetentionPolicyPermissionManager
@Internal public interface RetentionPolicyPermissionManager
Provide a single source of truth re - who have permission to view/edit retention policies at global and space level- Since:
- 7.14.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canEditGlobalPolicy(@Nullable ConfluenceUser user)
boolean
canEditSpacePolicy(@Nullable ConfluenceUser user, Space space)
boolean
canViewGlobalPolicy(@Nullable ConfluenceUser user)
boolean
canViewSpacePolicy(@Nullable ConfluenceUser user, Space space)
-
-
-
Method Detail
-
canViewGlobalPolicy
boolean canViewGlobalPolicy(@Nullable ConfluenceUser user)
- Parameters:
user
- a user to be checked, can be null in case of anonymous access- Returns:
- true if specified user has permission to view global retention policy
-
canEditGlobalPolicy
boolean canEditGlobalPolicy(@Nullable ConfluenceUser user)
- Parameters:
user
- a user to be checked, can be null in case of anonymous access- Returns:
- true if specified user has permission to edit global retention policy
-
canViewSpacePolicy
boolean canViewSpacePolicy(@Nullable ConfluenceUser user, Space space)
- Parameters:
user
- a user to be checked, can be null in case of anonymous accessspace
- a space to be checked- Returns:
- true if specified user has permission to view retention policy for specified space
-
canEditSpacePolicy
boolean canEditSpacePolicy(@Nullable ConfluenceUser user, Space space)
- Parameters:
user
- a user to be checked, can be null in case of anonymous accessspace
- a space to be checked- Returns:
- true if specified user has permission to edit retention policy for specified space
-
-