@Deprecated public interface ScopeManager
Scope key is accessible from all ScopeAware classes.
Typical users of this class are module descriptor resolvers which will expose/hide module functionality based on whenever given scope is enabled for current tenant.
For example serving JIRA Service Desk rest request would need to pass `jira-service-desk` license scope verification and if product happened not to be licensed for current tenant then rest module descriptor resolver will intercept request and return 404 instead of serving normal response by underlying plugin's rest endpoint.
Return values of this class must not be cached and underlying implementation will guarantee acceptable performance for multiple per-request invocations.
ScopeAware| Modifier and Type | Method and Description |
|---|---|
static boolean |
isActive(ScopeManager scopeManager,
ScopeAware scopeAware)
Deprecated.
|
boolean |
isScopeActive(String scopeKey)
Deprecated.
|
boolean isScopeActive(String scopeKey)
scopeKey - the scope keystatic boolean isActive(ScopeManager scopeManager, ScopeAware scopeAware)
Copyright © 2019 Atlassian. All rights reserved.