1 package com.atlassian.plugin.refimpl.tenant;
2
3 /**
4 * Helper class to test if tenancy is enabled, controlled by system property atlassian.tenancy.enabled
5 *
6 * @since v2.21.4
7 */
8 public class RefappTenancyCondition {
9 private static final String ATLASSIAN_TENANCY_ENABLED_PROPERTY = "atlassian.tenancy.enabled";
10
11 public static String getAtlassianTenancyEnabledProperty() {
12 return ATLASSIAN_TENANCY_ENABLED_PROPERTY;
13 }
14
15 public static boolean isEnabled() {
16 return Boolean.getBoolean(ATLASSIAN_TENANCY_ENABLED_PROPERTY);
17 }
18 }