@Internal @ParametersAreNonnullByDefault public class ConfluenceLicenseUtils extends Object
Modifier and Type | Field and Description |
---|---|
static com.atlassian.extras.api.Product |
CONFLUENCE_QUESTION |
Constructor and Description |
---|
ConfluenceLicenseUtils() |
Modifier and Type | Method and Description |
---|---|
static long |
getSupportPeriodAlmostExpiredDate(com.atlassian.extras.api.confluence.ConfluenceLicense license) |
static long |
getSupportPeriodEnd(com.atlassian.extras.api.confluence.ConfluenceLicense license)
Calculates the end of the support period (during which customers are entitled to updates and commercial support)
|
static boolean |
isDataCenter(com.atlassian.extras.api.confluence.ConfluenceLicense license)
Returns whether a license is for Confluence Data Center.
|
static com.atlassian.fugue.Option<Integer> |
numberOfClusterNodes(com.atlassian.extras.api.confluence.ConfluenceLicense license)
Returns the number of cluster nodes.
|
public static final com.atlassian.extras.api.Product CONFLUENCE_QUESTION
public static boolean isDataCenter(com.atlassian.extras.api.confluence.ConfluenceLicense license)
license
- the license to check.@Nonnull public static com.atlassian.fugue.Option<Integer> numberOfClusterNodes(com.atlassian.extras.api.confluence.ConfluenceLicense license)
license
- the license to look withinpublic static long getSupportPeriodEnd(com.atlassian.extras.api.confluence.ConfluenceLicense license)
license
- the license for which to calculate the support period end datepublic static long getSupportPeriodAlmostExpiredDate(com.atlassian.extras.api.confluence.ConfluenceLicense license)
Copyright © 2003–2015 Atlassian. All rights reserved.