public class JiraApplicationAdapter extends Object
Application
s defined on the instance
into JiraApplication
, so that project types are correctly parsed and exposed to consumers.Modifier and Type | Field and Description |
---|---|
ApplicationAuthorizationService |
applicationAuthorizationService |
com.atlassian.application.api.ApplicationManager |
applicationManager |
com.atlassian.application.host.plugin.PluginApplicationMetaDataManager |
metaDataManager |
Constructor and Description |
---|
JiraApplicationAdapter(com.atlassian.application.api.ApplicationManager applicationManager,
com.atlassian.application.host.plugin.PluginApplicationMetaDataManager metaDataManager,
ApplicationAuthorizationService applicationAuthorizationService,
ApplicationRoleDefinitions applicationRoleDefinitions) |
Modifier and Type | Method and Description |
---|---|
Iterable<JiraApplication> |
getAccessibleJiraApplications()
Returns an iterable over all the JIRA applications accessible in the instance.
|
Iterable<JiraApplication> |
getAccessibleJiraApplications(ApplicationUser user)
Returns an iterable over all the JIRA applications accessible for the given user.
|
Iterable<JiraApplication> |
getJiraApplications()
Returns an iterable over all the JIRA applications defined on the instance.
|
public final com.atlassian.application.api.ApplicationManager applicationManager
public final com.atlassian.application.host.plugin.PluginApplicationMetaDataManager metaDataManager
public final ApplicationAuthorizationService applicationAuthorizationService
public JiraApplicationAdapter(com.atlassian.application.api.ApplicationManager applicationManager, com.atlassian.application.host.plugin.PluginApplicationMetaDataManager metaDataManager, ApplicationAuthorizationService applicationAuthorizationService, ApplicationRoleDefinitions applicationRoleDefinitions)
public Iterable<JiraApplication> getJiraApplications()
public Iterable<JiraApplication> getAccessibleJiraApplications()
The platform application (Business) will always be accessible at least one of the applications is licensed.
public Iterable<JiraApplication> getAccessibleJiraApplications(ApplicationUser user)
user
- The userCopyright © 2002-2021 Atlassian. All Rights Reserved.