Class DefaultRetentionFeatureChecker
java.lang.Object
com.atlassian.confluence.impl.retention.DefaultRetentionFeatureChecker
- All Implemented Interfaces:
RetentionFeatureChecker
- Since:
- 7.12
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultRetentionFeatureChecker
(com.atlassian.sal.api.features.DarkFeatureManager darkFeatureManager, LicenseService licenseService) -
Method Summary
Modifier and TypeMethodDescriptionboolean
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
Returns whether the dark feature for Retention Rules is enabled and the currently installed licence is enabled for Data Center
-
Field Details
-
RETENTION_RULES_DARK_FEATURE_KEY
- See Also:
-
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 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.
-