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 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 access
        space - 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 access
        space - a space to be checked
        Returns:
        true if specified user has permission to edit retention policy for specified space