Package com.atlassian.application.api
Interface ApplicationManager
public interface ApplicationManager
Interface into the
Applications (e.g. Service Desk) installed on the underlying platform (e.g. JIRA).
Unless otherwise noted none of the parameters or return values can be null.- Since:
- v1.0
-
Method Summary
Modifier and TypeMethodDescriptionio.atlassian.fugue.Option<ApplicationAccess>getAccess(ApplicationKey key) Get theApplicationAccessassociated with the passed application, orOption.none()if there is noApplicationinstalled with the passed key.io.atlassian.fugue.Option<Application>Return the installedApplicationwith the passed key.<A extends Application>
io.atlassian.fugue.Option<A>getApplication(ApplicationKey key, Class<A> type) Return the installedApplicationassociated with the passedApplicationKeyif it is of the correct type.Return all theApplications installed on the platform.Return thePlatformApplicationthat represents the Platform.
-
Method Details
-
getPlatform
PlatformApplication getPlatform()Return thePlatformApplicationthat represents the Platform.- Returns:
- the
PlatformApplicationthat represents the Platform.
-
getApplications
Iterable<Application> getApplications()Return all theApplications installed on the platform. This will include thePlatformApplication. An application may or may not be licensed.- Returns:
- all the
Applications installed on the platform.
-
getApplication
Return the installedApplicationwith the passed key.Option.none()is returned to indicate that theApplicationis not installed.- Parameters:
key- the key to search for.- Returns:
- the
Applicationwith the passed key orOption.none()if no suchApplicationexists.
-
getApplication
<A extends Application> io.atlassian.fugue.Option<A> getApplication(ApplicationKey key, Class<A> type) Return the installedApplicationassociated with the passedApplicationKeyif it is of the correct type.Option.none()is returned to indicate no match.- Type Parameters:
A- the type ofApplicationto return.- Parameters:
key- the key to search for.type- the type ofApplicationto return.- Returns:
- the
Applicationwith the passed key and type orOption.none()if no suchApplicationexists.
-
getAccess
Get theApplicationAccessassociated with the passed application, orOption.none()if there is noApplicationinstalled with the passed key.- Parameters:
key- the key to search for.- Returns:
- the
ApplicationAccessassociated with the passed key.
-