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
Constructors Modifier Constructor Description DefaultGlobalRetentionPolicyManager(com.atlassian.bandana.BandanaManager bandanaManager, com.atlassian.event.api.EventPublisher eventPublisher)
protected
DefaultGlobalRetentionPolicyManager(com.atlassian.bandana.BandanaManager bandanaManager, com.atlassian.event.api.EventPublisher eventPublisher, org.codehaus.jackson.map.ObjectMapper objectMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GlobalRetentionPolicy
getPolicy()
void
savePolicy(GlobalRetentionPolicy newPolicy)
Save global policy
-
-
-
Constructor Detail
-
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, org.codehaus.jackson.map.ObjectMapper objectMapper)
-
-
Method Detail
-
getPolicy
public GlobalRetentionPolicy getPolicy()
- Specified by:
getPolicy
in interfaceGlobalRetentionPolicyManager
- Returns:
- current global retention policy or a default one if none has been set
-
savePolicy
public void savePolicy(GlobalRetentionPolicy newPolicy)
Description copied from interface:GlobalRetentionPolicyManager
Save global policy- Specified by:
savePolicy
in interfaceGlobalRetentionPolicyManager
-
-