public class ApplicationMarketplaceQueriesImpl extends Object implements ApplicationMarketplaceQueries, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean
| Constructor and Description |
|---|
ApplicationMarketplaceQueriesImpl(ApplicationAccessor applicationAccessor,
com.atlassian.sal.api.ApplicationProperties applicationProperties,
VersionAwareHostApplicationInformation hostApplicationInformation,
com.atlassian.event.api.EventPublisher eventPublisher,
MarketplaceClientManager marketplaceClientFactory,
SysPersisted sysPersisted,
com.atlassian.sal.api.executor.ThreadLocalDelegateExecutorFactory threadLocalDelegateExecutorFactory,
com.atlassian.cache.CacheFactory cacheFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
MarketplaceResult<Iterable<AppUpdateInfo>> |
getAppUpdateInfo(int targetPlatformBuildNumber,
Iterable<com.atlassian.application.api.Application> installedApps)
Query Marketplace for available updates to installed applications.
|
MarketplaceResult<Iterable<com.atlassian.marketplace.client.model.Product>> |
getAvailableAppsInfo(boolean withPlatform,
io.atlassian.fugue.Option<Integer> platformBuildNumber)
Get listings for available applications from Marketplace.
|
io.atlassian.fugue.Option<com.atlassian.marketplace.client.model.ProductVersion> |
getMpacVersionInfoForInstalledApp(com.atlassian.application.api.Application app)
Query Marketplace to get the version info for the provided application
|
MarketplaceResult<Map<String,com.atlassian.marketplace.client.model.ProductVersion>> |
getMpacVersionInfoForInstalledApps(Iterable<com.atlassian.application.api.Application> apps)
Query Marketplace to get version info for the provided applications if found
|
PlatformVersionInfo |
getPlatformVersionInfo()
Get information about the current installed platform version and whether it is known to Marketplace.
|
io.atlassian.fugue.Option<com.atlassian.marketplace.client.model.Product> |
getProductWithLatestVersion(String applicationKey)
Query Marketplace for the listing of the specified application.
|
void |
onMarketplaceBaseUrlChangedEvent(MarketplaceBaseUrlChangedEvent event) |
void |
onPlatformBuildNumberChangeEvent(PlatformBuildNumberChangeEvent event) |
public ApplicationMarketplaceQueriesImpl(ApplicationAccessor applicationAccessor, com.atlassian.sal.api.ApplicationProperties applicationProperties, VersionAwareHostApplicationInformation hostApplicationInformation, com.atlassian.event.api.EventPublisher eventPublisher, MarketplaceClientManager marketplaceClientFactory, SysPersisted sysPersisted, com.atlassian.sal.api.executor.ThreadLocalDelegateExecutorFactory threadLocalDelegateExecutorFactory, com.atlassian.cache.CacheFactory cacheFactory)
public void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic void destroy()
destroy in interface org.springframework.beans.factory.DisposableBeanpublic PlatformVersionInfo getPlatformVersionInfo()
ApplicationMarketplaceQueriesgetPlatformVersionInfo in interface ApplicationMarketplaceQueriesPlatformVersionInfopublic MarketplaceResult<Iterable<com.atlassian.marketplace.client.model.Product>> getAvailableAppsInfo(boolean withPlatform, io.atlassian.fugue.Option<Integer> platformBuildNumber)
ApplicationMarketplaceQueriesMarketplaceResult
instead of a list. If we know that Marketplace is available but that we won't be able to query for
compatibility with the current platform, because the current platform version is unknown to Marketplace,
then it returns an empty list.getAvailableAppsInfo in interface ApplicationMarketplaceQuerieswithPlatform - true if the results should include the platformplatformBuildNumber - Some(N) to query only applications that are compatible with platform build
number N; None to query applications that are compatible with the current installed platform versionMarketplaceResult whose value is a list of product representations; each of these
contains a single product version representation that is the compatible versionpublic MarketplaceResult<Iterable<AppUpdateInfo>> getAppUpdateInfo(int targetPlatformBuildNumber, Iterable<com.atlassian.application.api.Application> installedApps)
ApplicationMarketplaceQueriesMarketplaceResult
instead of a list. If we know that Marketplace is available but that we won't be able to query for
compatibility with the current platform, because the current platform version is unknown to Marketplace,
then it returns an empty list.getAppUpdateInfo in interface ApplicationMarketplaceQueriestargetPlatformBuildNumber - application updates must be compatible with this platform versioninstalledApps - a list of installed applicationsMarketplaceResult whose value is a list of AppUpdateInfo objects for the
available updates, if anypublic io.atlassian.fugue.Option<com.atlassian.marketplace.client.model.Product> getProductWithLatestVersion(String applicationKey)
ApplicationMarketplaceQueriesgetProductWithLatestVersion in interface ApplicationMarketplaceQueriesapplicationKey - an application keypublic MarketplaceResult<Map<String,com.atlassian.marketplace.client.model.ProductVersion>> getMpacVersionInfoForInstalledApps(Iterable<com.atlassian.application.api.Application> apps)
ApplicationMarketplaceQueriesgetMpacVersionInfoForInstalledApps in interface ApplicationMarketplaceQueriesapps - iterable of applicationsProductVersion representationspublic io.atlassian.fugue.Option<com.atlassian.marketplace.client.model.ProductVersion> getMpacVersionInfoForInstalledApp(com.atlassian.application.api.Application app)
ApplicationMarketplaceQueriesgetMpacVersionInfoForInstalledApp in interface ApplicationMarketplaceQueriesapp - applicationProductVersion info for the application@EventListener public void onPlatformBuildNumberChangeEvent(PlatformBuildNumberChangeEvent event)
@EventListener public void onMarketplaceBaseUrlChangedEvent(MarketplaceBaseUrlChangedEvent event)
Copyright © 2024 Atlassian. All rights reserved.