Class RetentionRuleUtils
- java.lang.Object
-
- com.atlassian.confluence.impl.retention.rules.RetentionRuleUtils
-
public class RetentionRuleUtils extends Object
Utils for retention rules- Since:
- 7.16.0
-
-
Constructor Summary
Constructors Constructor Description RetentionRuleUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
hasDeletingRules(RetentionPolicy policy, RetentionType type)
-
-
-
Method Detail
-
hasDeletingRules
public static boolean hasDeletingRules(RetentionPolicy policy, RetentionType type)
- Parameters:
policy
- a policy to checktype
- type of retention rules (trash or version)- Returns:
- true if a policy has rule(s) that may delete some content for a particular
type
of retention rules - Throws:
IllegalArgumentException
- if providedtype
is not supported
-
-