public final class AddonVersion extends AddonVersionBase
Addon.Addons,
AddonVersionSummary| Constructor and Description |
|---|
AddonVersion() |
| Modifier and Type | Method and Description |
|---|---|
com.atlassian.fugue.Option<ArtifactInfo> |
getArtifactInfo()
Details about the installable file for this add-on, if it has one that is hosted by
Marketplace.
|
com.atlassian.fugue.Option<URI> |
getArtifactUri()
Shortcut for getting the download URI for the add-on's installable file, if any.
|
int |
getBuildNumber()
The version's build number, a value specified by the vendor (or, in the case of Atlassian
Connect add-ons, set automatically by Marketplace) that distinguishes it from all other versions
of the add-on and determines the correct ordering of versions.
|
Iterable<VersionCompatibility> |
getCompatibilities()
A list of
VersionCompatibility objects representing each of the
Applications the add-on version is compatible with, and the compatible
application version range. |
com.atlassian.fugue.Option<Iterable<VersionCompatibility>> |
getCompatibilitiesIfSpecified()
Same as
getCompatibilities(), but returns none() rather than an empty
list if this is a new version that you are creating which has no compatibilities specified
(meaning that it will inherit its compatibilities from the previous version). |
Iterable<ApplicationKey> |
getCompatibleApplications()
Returns just the application keys from the list of compatibilities.
|
com.atlassian.fugue.Option<URI> |
getExternalLinkUri(AddonVersionExternalLinkType type)
Returns one of the optional vendor-specified external links for the add-on version.
|
Iterable<AddonCategorySummary> |
getFunctionalCategories()
Returns summaries of all functional categories that this add-on version belongs to.
|
Iterable<Highlight> |
getHighlights()
The image/text "highlight" items that are featured in a public add-on listing; may be
omitted for private versions.
|
com.atlassian.fugue.Option<Iterable<Highlight>> |
getHighlightsIfSpecified()
Same as
getHighlights(), but returns none() rather than an empty
list if this is a new version that you are creating which has no highlights specified
(meaning that it will inherit its highlights from the previous version). |
com.atlassian.fugue.Option<LicenseType> |
getLicenseType()
Information about the add-on version's software license type; may be omitted for
private versions.
|
com.atlassian.fugue.Option<LicenseTypeId> |
getLicenseTypeId()
The unique resource identifier for the add-on version's software license type; may be
omitted for private versions.
|
com.atlassian.fugue.Option<HtmlString> |
getMoreDetails()
Optional descriptive text to be displayed in the add-on listing.
|
PaymentModel |
getPaymentModel()
Indicates whether the version is free, paid via Atlassian, or paid via Vendor.
|
com.atlassian.fugue.Option<HtmlString> |
getReleaseNotes()
Optional details about this release of the add-on (for instance, new features).
|
com.atlassian.fugue.Option<String> |
getReleaseSummary()
A brief description of the nature or purpose of this release (for instance, "bug fixes").
|
com.atlassian.fugue.Option<URI> |
getRemoteDescriptorUri()
Shortcut for getting the remote Atlassian Connect descriptor URI for the add-on, if any.
|
Iterable<Screenshot> |
getScreenshots()
Screenshot images with optional captions.
|
com.atlassian.fugue.Option<Iterable<Screenshot>> |
getScreenshotsIfSpecified()
Same as
getScreenshots(), but returns none() rather than an empty
list if this is a new version that you are creating which has no screenshots specified
(meaning that it will inherit its screenshots from the previous version). |
AddonVersionStatus |
getStatus()
Indicates whether the version is public, private, or pending approval.
|
com.atlassian.fugue.Option<String> |
getYoutubeId()
The string key of a YouTube video to be featured in the add-on listing.
|
boolean |
isCompatibleWith(com.google.common.base.Predicate<ApplicationKey> applicationCriteria,
HostingType hostingType,
int build)
Shortcut for testing whether the version is compatible with the specified application
build and hosting type.
|
boolean |
isCompatibleWithApplication(ApplicationKey application)
Shortcut for testing whether the version has any compatibility with the specified application.
|
boolean |
isStatic()
True if this is a static add-on (Plugins 1, a deprecated add-on framework).
|
getConnectScopes, getFunctionalCategoryIds, getLinks, getName, getReleaseDate, getReleasedBy, getSelfUri, isAutoUpdateAllowed, isBeta, isCloud, isConnect, isDataCenterCompatible, isDeployable, isServer, isSupportedpublic com.atlassian.fugue.Option<ArtifactInfo> getArtifactInfo()
AddonVersionBasegetArtifactInfo in class AddonVersionBaseModelBuilders.AddonVersionBuilder.artifact(Option)public com.atlassian.fugue.Option<URI> getArtifactUri()
AddonVersionBasegetArtifactUri in class AddonVersionBaseAddonVersionBase.getArtifactInfo()public com.atlassian.fugue.Option<URI> getRemoteDescriptorUri()
AddonVersionBasegetRemoteDescriptorUri in class AddonVersionBaseAddonVersionBase.getArtifactInfo()public int getBuildNumber()
public Iterable<VersionCompatibility> getCompatibilities()
VersionCompatibility objects representing each of the
Applications the add-on version is compatible with, and the compatible
application version range. For an existing add-on listing, there will always be
at least one of these.getCompatibilitiesIfSpecified()public com.atlassian.fugue.Option<Iterable<VersionCompatibility>> getCompatibilitiesIfSpecified()
getCompatibilities(), but returns none() rather than an empty
list if this is a new version that you are creating which has no compatibilities specified
(meaning that it will inherit its compatibilities from the previous version).public com.atlassian.fugue.Option<URI> getExternalLinkUri(AddonVersionExternalLinkType type)
type - specifies which type of link to getOption.none() if there is no such linkpublic Iterable<AddonCategorySummary> getFunctionalCategories()
AddonVersionBaseAddonBase.getCategories() - describes a specific kind of feature integration
based on the software structure of the add-on (for instance, the types of modules it
provides); this is computed by Marketplace, not set by the vendor. Examples of
functional categories include macros in Confluence and workflows in JIRA.getFunctionalCategories in class AddonVersionBasepublic Iterable<Highlight> getHighlights()
public com.atlassian.fugue.Option<Iterable<Highlight>> getHighlightsIfSpecified()
getHighlights(), but returns none() rather than an empty
list if this is a new version that you are creating which has no highlights specified
(meaning that it will inherit its highlights from the previous version).public com.atlassian.fugue.Option<LicenseType> getLicenseType()
public com.atlassian.fugue.Option<LicenseTypeId> getLicenseTypeId()
getLicenseTypeId in class AddonVersionBaseModelBuilders.AddonVersionBuilder.licenseTypeId(Option),
getLicenseType()public com.atlassian.fugue.Option<HtmlString> getMoreDetails()
public PaymentModel getPaymentModel()
AddonVersionBaseModelBuilders.AddonVersionBuilder.paymentModel(PaymentModel)getPaymentModel in class AddonVersionBasepublic com.atlassian.fugue.Option<HtmlString> getReleaseNotes()
public com.atlassian.fugue.Option<String> getReleaseSummary()
public Iterable<Screenshot> getScreenshots()
public com.atlassian.fugue.Option<Iterable<Screenshot>> getScreenshotsIfSpecified()
getScreenshots(), but returns none() rather than an empty
list if this is a new version that you are creating which has no screenshots specified
(meaning that it will inherit its screenshots from the previous version).public AddonVersionStatus getStatus()
AddonVersionBaseModelBuilders.AddonVersionBuilder.status(AddonVersionStatus)getStatus in class AddonVersionBasepublic boolean isStatic()
AddonVersionBaseisStatic in class AddonVersionBasepublic com.atlassian.fugue.Option<String> getYoutubeId()
public Iterable<ApplicationKey> getCompatibleApplications()
getCompatibilities()public boolean isCompatibleWithApplication(ApplicationKey application)
getCompatibilities()public boolean isCompatibleWith(com.google.common.base.Predicate<ApplicationKey> applicationCriteria, HostingType hostingType, int build)
getCompatibilities()Copyright © 2016 Atlassian. All rights reserved.