Class RetentionRuleValidator

java.lang.Object
com.atlassian.confluence.api.model.retention.RetentionRuleValidator

public class RetentionRuleValidator extends Object
Helper class to validate retention rule fields
Since:
7.14
  • Field Details

    • MAX_AGE_LOWER_LIMIT

      public static final Integer MAX_AGE_LOWER_LIMIT
    • MAX_AGE_UPPER_LIMIT

      public static final Integer MAX_AGE_UPPER_LIMIT
    • MAX_NUMBER_LOWER_LIMIT

      public static final Integer MAX_NUMBER_LOWER_LIMIT
    • MAX_NUMBER_UPPER_LIMIT

      public static final Integer MAX_NUMBER_UPPER_LIMIT
  • Constructor Details

    • RetentionRuleValidator

      public RetentionRuleValidator()
  • Method Details

    • isValidAgeUnit

      public static Boolean isValidAgeUnit(AgeUnit ageUnit, Integer maxAge)
    • isValidMaxAge

      public static Boolean isValidMaxAge(Integer maxAge)
    • isValidMaxNumber

      public static Boolean isValidMaxNumber(Integer maxNumberOfVersions)