public interface Applications
MarketplaceClient.applications() to access this API.
An "application", in this context, is a top-level Atlassian software platform such as JIRA or Confluence;
software packages like JIRA Service Desk, which are called "applications" in the UI, are instead accessed
through the Products API.
| Modifier and Type | Method and Description |
|---|---|
Application |
createApplication(Application application)
Creates a new application.
|
ApplicationVersion |
createVersion(ApplicationKey applicationKey,
ApplicationVersion version)
Creates a new version for an existing application.
|
com.atlassian.fugue.Option<Application> |
getByKey(ApplicationKey applicationKey)
Queries a single application.
|
com.atlassian.fugue.Option<ApplicationVersion> |
getVersion(ApplicationKey applicationKey,
ApplicationVersionSpecifier versionQuery)
Queries a specific version of an application.
|
Page<ApplicationVersion> |
getVersions(ApplicationKey applicationKey,
ApplicationVersionsQuery versionsQuery)
Gets a list of versions for an application.
|
Application |
updateApplication(Application original,
Application updated)
Attempts to modify an existing application.
|
ApplicationVersion |
updateVersion(ApplicationVersion original,
ApplicationVersion updated)
Attempts to modify an existing application version.
|
com.atlassian.fugue.Option<Application> getByKey(ApplicationKey applicationKey) throws MpacException
applicationKey - the application's unique keyOption.none() if there is no matchMpacException - if the server was unavailable or returned an errorApplication createApplication(Application application) throws MpacException
Use ModelBuilders.application() to build a new
Application object.
application - the application to createApplication representing the application in its initial state after being createdMpacException - if the server was unavailable or returned an errorApplication updateApplication(Application original, Application updated) throws MpacException
getByKey(ApplicationKey);
then, build another instance that includes any changes you want to make, using
ModelBuilders.application(Application).original - the existing applicationupdated - a copy of the application that includes some changesMpacException - if the server was unavailable or returned an errorcom.atlassian.fugue.Option<ApplicationVersion> getVersion(ApplicationKey applicationKey, ApplicationVersionSpecifier versionQuery) throws MpacException
applicationKey - the application's unique keyversionQuery - search criteria for identifying a single versionOption.none() if there is no matchMpacException - if the server was unavailable or returned an errorPage<ApplicationVersion> getVersions(ApplicationKey applicationKey, ApplicationVersionsQuery versionsQuery) throws MpacException
applicationKey - the application's unique keyversionsQuery - an ApplicationVersionsQuery which may contain criteria to limit the
search; use ApplicationVersionsQuery.any() if there are no additional criteriaMpacException - if the server was unavailable or returned an errorApplicationVersion createVersion(ApplicationKey applicationKey, ApplicationVersion version) throws MpacException
Use ModelBuilders.applicationVersion() to build a new
ApplicationVersion object.
applicationKey - unique key of the existing applicationversion - the add-on version to createApplicationVersion representing the version in its initial state after being createdMpacException - if the server was unavailable or returned an errorApplicationVersion updateVersion(ApplicationVersion original, ApplicationVersion updated) throws MpacException
getVersion(ApplicationKey, ApplicationVersionSpecifier);
then, build another instance that includes any changes you want to make, using
ModelBuilders.applicationVersion(ApplicationVersion).original - the existing application versionupdated - a copy of the version that includes some changesMpacException - if the server was unavailable or returned an errorCopyright © 2016 Atlassian. All rights reserved.