Class DefaultRetentionFeatureChecker

java.lang.Object
com.atlassian.confluence.impl.retention.DefaultRetentionFeatureChecker
All Implemented Interfaces:
RetentionFeatureChecker

public class DefaultRetentionFeatureChecker extends Object implements RetentionFeatureChecker
Since:
7.12
  • Field Details

    • RETENTION_RULES_DARK_FEATURE_KEY

      public static final String RETENTION_RULES_DARK_FEATURE_KEY
      See Also:
    • RETENTION_RULES_DRY_RUN_DARK_FEATURE_KEY

      public static final String RETENTION_RULES_DRY_RUN_DARK_FEATURE_KEY
      See Also:
  • Constructor Details

    • DefaultRetentionFeatureChecker

      public DefaultRetentionFeatureChecker(com.atlassian.sal.api.features.DarkFeatureManager darkFeatureManager, LicenseService licenseService)
  • Method Details

    • isFeatureAvailable

      public boolean isFeatureAvailable()
      Description copied from interface: RetentionFeatureChecker
      Returns whether the dark feature for Retention Rules is enabled and the currently installed licence is enabled for Data Center
      Specified by:
      isFeatureAvailable in interface RetentionFeatureChecker
      Returns:
      whether the Retention Rules feature is allowed.
    • isDryRunModeEnabled

      public boolean isDryRunModeEnabled()
      Description copied from interface: RetentionFeatureChecker
      Returns whether the dark feature for Retention Rules deletion is enabled - if not then the feature will run in "dry-run" mode where no items are deleted but the rest of the job executes
      Specified by:
      isDryRunModeEnabled in interface RetentionFeatureChecker
      Returns:
      whether the Retention Rules feature is allowed.