Class DefaultGlobalRetentionPolicyManager
java.lang.Object
com.atlassian.confluence.impl.retention.manager.DefaultGlobalRetentionPolicyManager
- All Implemented Interfaces:
GlobalRetentionPolicyManager
public class DefaultGlobalRetentionPolicyManager
extends Object
implements GlobalRetentionPolicyManager
- Since:
- 7.14.0
-
Constructor Summary
ModifierConstructorDescriptionDefaultGlobalRetentionPolicyManager
(com.atlassian.bandana.BandanaManager bandanaManager, com.atlassian.event.api.EventPublisher eventPublisher) protected
DefaultGlobalRetentionPolicyManager
(com.atlassian.bandana.BandanaManager bandanaManager, com.atlassian.event.api.EventPublisher eventPublisher, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionvoid
savePolicy
(GlobalRetentionPolicy newPolicy) Save global policy
-
Constructor Details
-
DefaultGlobalRetentionPolicyManager
public DefaultGlobalRetentionPolicyManager(com.atlassian.bandana.BandanaManager bandanaManager, com.atlassian.event.api.EventPublisher eventPublisher) -
DefaultGlobalRetentionPolicyManager
protected DefaultGlobalRetentionPolicyManager(com.atlassian.bandana.BandanaManager bandanaManager, com.atlassian.event.api.EventPublisher eventPublisher, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
getPolicy
- Specified by:
getPolicy
in interfaceGlobalRetentionPolicyManager
- Returns:
- current global retention policy or a default one if none has been set
-
savePolicy
Description copied from interface:GlobalRetentionPolicyManager
Save global policy- Specified by:
savePolicy
in interfaceGlobalRetentionPolicyManager
-