@PublicApi
public interface ProductLicense
| Modifier and Type | Field and Description |
|---|---|
static int |
UNLIMITED_USER_COUNT |
| Modifier and Type | Method and Description |
|---|---|
int |
getNumberOfUsers()
Returns the number of users allowed by the current license.
|
String |
getProductDisplayName()
Returns the "official" product name (e.g.
|
String |
getProductKey()
Returns the canonical product key as defined by the respective source license.
|
String |
getProperty(String property)
Returns the license property value for the given property of this product.
|
boolean |
isUnlimitedNumberOfUsers()
Returns true if this license authorises an unlimited number of users.
|
static final int UNLIMITED_USER_COUNT
@Nonnull String getProductKey()
For example, a license containing com.gliffy.integration.jira.active would return a product key of
com.gliffy.integration.jira, and every other license key relevant to this plugin is expected to be of
form:
com.gliffy.integration.jira.interestingProperty
boolean isUnlimitedNumberOfUsers()
getNumberOfUsers()int getNumberOfUsers()
UNLIMITED_USER_COUNT if there is no limit, or the
number of users is unlimited.isUnlimitedNumberOfUsers()@Nonnull String getProductDisplayName()
@Nullable String getProperty(@Nonnull String property)
BaseLicenseDetails.getProperty(java.lang.String)(getProductKey() + "." + property)
property - the license property name, without this product's namespace.Copyright © 2019 Atlassian. All rights reserved.