Class DefaultSpaceRetentionPolicyManager
java.lang.Object
com.atlassian.confluence.impl.retention.manager.DefaultSpaceRetentionPolicyManager
- All Implemented Interfaces:
SpaceRetentionPolicyManager
public class DefaultSpaceRetentionPolicyManager
extends Object
implements SpaceRetentionPolicyManager
- Since:
- 7.14.0
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDefaultSpaceRetentionPolicyManager
(SpaceManagerInternal spaceManager, SpacePropertyServiceProvider spacePropertyServiceProvider, PermissionManager permissionManager, com.atlassian.event.api.EventPublisher eventPublisher) -
Method Summary
Modifier and TypeMethodDescriptionvoid
deletePolicy
(String spaceKey) Delete a space retention policy.getPolicy
(long spaceId) protected SpacePropertyService
void
savePolicy
(String spaceKey, SpaceRetentionPolicy newPolicy) Save or update retention policy for a space
-
Field Details
-
SPACE_RETENTION_POLICY_KEY
- See Also:
-
-
Constructor Details
-
DefaultSpaceRetentionPolicyManager
public DefaultSpaceRetentionPolicyManager(SpaceManagerInternal spaceManager, SpacePropertyServiceProvider spacePropertyServiceProvider, PermissionManager permissionManager, com.atlassian.event.api.EventPublisher eventPublisher)
-
-
Method Details
-
getPolicy
- Specified by:
getPolicy
in interfaceSpaceRetentionPolicyManager
- Returns:
- retention policy of a space, if any.
-
getPolicy
- Specified by:
getPolicy
in interfaceSpaceRetentionPolicyManager
- Returns:
- retention policy of a space, if any.
-
deletePolicy
Description copied from interface:SpaceRetentionPolicyManager
Delete a space retention policy.- Specified by:
deletePolicy
in interfaceSpaceRetentionPolicyManager
- Parameters:
spaceKey
- key of the space whose retention policy must be deleted
-
savePolicy
Description copied from interface:SpaceRetentionPolicyManager
Save or update retention policy for a space- Specified by:
savePolicy
in interfaceSpaceRetentionPolicyManager
- Parameters:
spaceKey
- key of the space whose retention policy must be savednewPolicy
- new retention policy
-
getSpacePropertyService
-