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
Modifier and TypeMethodDescriptionbooleancanEditGlobalPolicy(@Nullable ConfluenceUser user) booleancanEditSpacePolicy(@Nullable ConfluenceUser user, Space space) booleancanViewGlobalPolicy(@Nullable ConfluenceUser user) booleancanViewSpacePolicy(@Nullable ConfluenceUser user, Space space)
-
Method Details
-
canViewGlobalPolicy
- 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
- 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
- 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
- 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
-