public interface SpaceRetentionPolicyManager
Modifier and Type | Method and Description |
---|---|
void |
deletePolicy(String spaceKey)
Delete a space retention policy.
|
Optional<SpaceRetentionPolicy> |
getPolicy(long spaceId) |
Optional<SpaceRetentionPolicy> |
getPolicy(String spaceKey) |
void |
savePolicy(String spaceKey,
SpaceRetentionPolicy newPolicy)
Save or update retention policy for a space
|
void deletePolicy(String spaceKey)
spaceKey
- key of the space whose retention policy must be deletedNotFoundException
- if specified space does not currently have any retention policyvoid savePolicy(String spaceKey, SpaceRetentionPolicy newPolicy)
spaceKey
- key of the space whose retention policy must be savednewPolicy
- new retention policyNotFoundException
- if specified space cannot be foundOptional<SpaceRetentionPolicy> getPolicy(String spaceKey)
Optional<SpaceRetentionPolicy> getPolicy(long spaceId)
Copyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences