Class RetentionRuleUtils


  • public class RetentionRuleUtils
    extends Object
    Utils for retention rules
    Since:
    7.16.0
    • Constructor Detail

      • RetentionRuleUtils

        public RetentionRuleUtils()
    • Method Detail

      • hasDeletingRules

        public static boolean hasDeletingRules​(RetentionPolicy policy,
                                               RetentionType type)
        Parameters:
        policy - a policy to check
        type - 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 provided type is not supported