Interface SpaceRetentionPolicyManager
- 
- All Known Implementing Classes:
 CachingSpaceRetentionPolicyManager,DefaultSpaceRetentionPolicyManager
public interface SpaceRetentionPolicyManager- Since:
 - 7.14.0
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeletePolicy(String spaceKey)Delete a space retention policy.Optional<SpaceRetentionPolicy>getPolicy(long spaceId)Optional<SpaceRetentionPolicy>getPolicy(String spaceKey)voidsavePolicy(String spaceKey, SpaceRetentionPolicy newPolicy)Save or update retention policy for a space 
 - 
 
- 
- 
Method Detail
- 
deletePolicy
void deletePolicy(String spaceKey)
Delete a space retention policy.- Parameters:
 spaceKey- key of the space whose retention policy must be deleted- Throws:
 NotFoundException- if specified space does not currently have any retention policy
 
- 
savePolicy
void savePolicy(String spaceKey, SpaceRetentionPolicy newPolicy)
Save or update retention policy for a space- Parameters:
 spaceKey- key of the space whose retention policy must be savednewPolicy- new retention policy- Throws:
 NotFoundException- if specified space cannot be found
 
- 
getPolicy
Optional<SpaceRetentionPolicy> getPolicy(String spaceKey)
- Returns:
 - retention policy of a space, if any.
 
 
- 
getPolicy
Optional<SpaceRetentionPolicy> getPolicy(long spaceId)
- Returns:
 - retention policy of a space, if any.
 
 
 - 
 
 -