Interface GlobalRetentionPolicyService
- All Known Implementing Classes:
 DefaultGlobalRetentionPolicyService
@Internal
public interface GlobalRetentionPolicyService
Service for interacting with the GlobalRetentionPolicy settings
- Since:
 - 7.14.0
 
- 
Method Summary
Modifier and TypeMethodDescriptionvoidsavePolicy(GlobalRetentionPolicy newPolicy) Save a global retention policy 
- 
Method Details
- 
savePolicy
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
 
 -