public class DefaultRetentionFeatureChecker extends Object implements RetentionFeatureChecker
| Modifier and Type | Field and Description |
|---|---|
static String |
RETENTION_RULES_DARK_FEATURE_KEY |
static String |
RETENTION_RULES_DRY_RUN_DARK_FEATURE_KEY |
| Constructor and Description |
|---|
DefaultRetentionFeatureChecker(com.atlassian.sal.api.features.DarkFeatureManager darkFeatureManager,
LicenseService licenseService) |
| Modifier and Type | Method and 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 executes
|
boolean |
isFeatureAvailable()
Returns whether the dark feature for Retention Rules is enabled and the
currently installed licence is enabled for Data Center
|
public static final String RETENTION_RULES_DARK_FEATURE_KEY
public static final String RETENTION_RULES_DRY_RUN_DARK_FEATURE_KEY
public DefaultRetentionFeatureChecker(com.atlassian.sal.api.features.DarkFeatureManager darkFeatureManager,
LicenseService licenseService)
public boolean isFeatureAvailable()
RetentionFeatureCheckerisFeatureAvailable in interface RetentionFeatureCheckerpublic boolean isDryRunModeEnabled()
RetentionFeatureCheckerisDryRunModeEnabled in interface RetentionFeatureCheckerCopyright © 2003–2022 Atlassian. All rights reserved.