Interface GlobalRetentionPolicyService

All Known Implementing Classes:
DefaultGlobalRetentionPolicyService

@Internal public interface GlobalRetentionPolicyService
Service for interacting with the GlobalRetentionPolicy settings
Since:
7.14.0
  • Method Details

    • savePolicy

      void savePolicy(GlobalRetentionPolicy newPolicy)
      Save a global retention policy
      Parameters:
      newPolicy - new or updated global retention policy to be saved
      Throws:
      PermissionException - if current user does not have permission to edit global retention policy
    • getPolicy

      Returns:
      current global retention policy or a default one if none has been set
      Throws:
      PermissionException - if current user does not have permission to view global retention policy
      NotFoundException - if Retention rules is not available