Class AccessDisablingHelperConfig

java.lang.Object
com.atlassian.jira.util.AccessDisablingHelperConfig

public final class AccessDisablingHelperConfig extends Object
  • Method Details

    • builder

      Returns:
      creates new instance of config builder
    • getFeatureFlag

      public String getFeatureFlag()
      name of feature flag used to disabled/enable restrictions
    • getBlockAccessSince

      public String getBlockAccessSince()
      Jira version for which feature flag will switch from opt-in to opt-out. if set to null never switch feature flag from opt-in
    • getLogDeprecatedSince

      public String getLogDeprecatedSince()
      Jira version for which helper will print debug log about deprecation of feature flag
    • isBlockAnonymous

      public boolean isBlockAnonymous()
      If set to true blocks access for anonymous users. If false the check is disabled
    • getPermissionKey

      public GlobalPermissionKey getPermissionKey()
      GlobalPermissionKey which is necessary to access endpoint. Users without this permission don't have access to protected endpoint. if set to null then check is disabled.
    • getAdditionalCondition

      public Predicate<ApplicationUser> getAdditionalCondition()
      A condition which has to be evaluated to true to enable access to endpoint.