Interface GlobalRetentionPolicyService
-
- All Known Implementing Classes:
DefaultGlobalRetentionPolicyService
@Internal public interface GlobalRetentionPolicyService
Service for interacting with the GlobalRetentionPolicy settings- Since:
- 7.14.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GlobalRetentionPolicy
getPolicy()
void
savePolicy(GlobalRetentionPolicy newPolicy)
Save a global retention policy
-
-
-
Method Detail
-
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
GlobalRetentionPolicy 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 policyNotFoundException
- if Retention rules is not available
-
-