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 Summary
Fields Modifier and Type Field Description static String
RETENTION_RULES_DARK_FEATURE_KEY
static String
RETENTION_RULES_DRY_RUN_DARK_FEATURE_KEY
-
Constructor Summary
Constructors Constructor Description DefaultRetentionFeatureChecker(com.atlassian.sal.api.features.DarkFeatureManager darkFeatureManager, LicenseService licenseService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isDryRunModeEnabled()
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 executesboolean
isFeatureAvailable()
Returns whether the dark feature for Retention Rules is enabled and the currently installed licence is enabled for Data Center
-
-
-
Field Detail
-
RETENTION_RULES_DARK_FEATURE_KEY
public static final String RETENTION_RULES_DARK_FEATURE_KEY
- See Also:
- Constant Field Values
-
RETENTION_RULES_DRY_RUN_DARK_FEATURE_KEY
public static final String RETENTION_RULES_DRY_RUN_DARK_FEATURE_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DefaultRetentionFeatureChecker
public DefaultRetentionFeatureChecker(com.atlassian.sal.api.features.DarkFeatureManager darkFeatureManager, LicenseService licenseService)
-
-
Method Detail
-
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 interfaceRetentionFeatureChecker
- 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 interfaceRetentionFeatureChecker
- Returns:
- whether the Retention Rules feature is allowed.
-
-