Class DefaultGlobalRetentionPolicyService
- java.lang.Object
-
- com.atlassian.confluence.impl.retention.service.DefaultGlobalRetentionPolicyService
-
- All Implemented Interfaces:
GlobalRetentionPolicyService
@Transactional public class DefaultGlobalRetentionPolicyService extends Object implements GlobalRetentionPolicyService
Default service for interacting with the GlobalRetentionPolicy settings- Since:
- 7.14
-
-
Constructor Summary
Constructors Constructor Description DefaultGlobalRetentionPolicyService(GlobalRetentionPolicyManager globalRetentionPolicyManager, RetentionPolicyPermissionManager retentionPolicyPermissionManager, RetentionFeatureChecker featureChecker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GlobalRetentionPolicy
getPolicy()
void
savePolicy(GlobalRetentionPolicy newPolicy)
Save a global retention policy
-
-
-
Constructor Detail
-
DefaultGlobalRetentionPolicyService
public DefaultGlobalRetentionPolicyService(GlobalRetentionPolicyManager globalRetentionPolicyManager, RetentionPolicyPermissionManager retentionPolicyPermissionManager, RetentionFeatureChecker featureChecker)
-
-
Method Detail
-
getPolicy
@Transactional(readOnly=true) public GlobalRetentionPolicy getPolicy()
- Specified by:
getPolicy
in interfaceGlobalRetentionPolicyService
- Returns:
- current global retention policy or a default one if none has been set
-
savePolicy
public void savePolicy(GlobalRetentionPolicy newPolicy)
Description copied from interface:GlobalRetentionPolicyService
Save a global retention policy- Specified by:
savePolicy
in interfaceGlobalRetentionPolicyService
- Parameters:
newPolicy
- new or updated global retention policy to be saved
-
-