@PublicApi public interface MultiProductLicenseDetails extends BaseLicenseDetails
products that may
appear in a single license. At the most basic level, licenses are collections of products. Licenses and products
across Atlassian vary considerably with respect to the number of licenses that any given product may accept (1-many),
but also in terms of the number of products that may be granted within license (also 1-many). Heterogeneous mixes of
single-product licenses together with multi-product licenses (e.g. Enterprise Licensing Agreements, ELAs) are also
possible within a single product.
This interface partitions the products granted by a license into 2 sets:
getProductLicenses(), the latter by getEmbeddedLicenses(). These
collections are expected to be mutually exclusive (getEmbeddedLicenses().retainAll(getEmbeddedLicenses())
equals the empty set), and the union of these Sets (getEmbeddedLicenses().addAll(getEmbeddedLicenses()))
is expected to represent all products found in the source license.| Modifier and Type | Method and Description |
|---|---|
Set<ProductLicense> |
getEmbeddedLicenses() |
ProductLicense |
getProductLicense(String productKey)
Returns the individual product or embedded license with the given product key.
|
Set<ProductLicense> |
getProductLicenses()
Returns
ProductLicenses for the host product license (if relevant) as well as all products in this
license that are direct sub-products of the current host product/platform. |
getDescription, getLicenseExpiryDate, getLicenseTypeName, getMaintenanceExpiryDate, getOrganisationName, getProperty, getServerId, getSupportEntitlementNumber, isDataCenter, isEnterpriseLicensingAgreement, isEvaluationLicense, isPerpetualLicense@Nonnull Set<ProductLicense> getProductLicenses()
ProductLicenses for the host product license (if relevant) as well as all products in this
license that are direct sub-products of the current host product/platform.
By convention, starting with JIRA 7.0, these properties are expected to conform to the
naming convention "[host-product-namespace].product.[sub-product-namespace].[property-name]", eg:
jira.product.jira-software.NumberOfUsers.
Host products that do not have sub-products would return only their host product license.
getEmbeddedLicenses()@Nonnull Set<ProductLicense> getEmbeddedLicenses()
ProductLicenses for all products in this license that are not for this host product, and/or are
not considered to be sub-products by the host product/platform.getProductLicenses()@Nullable ProductLicense getProductLicense(@Nonnull String productKey)
productKey - the product key.Copyright © 2019 Atlassian. All rights reserved.