|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.license.util.ConfluenceLicenseUtils
@Internal @ParametersAreNonnullByDefault public class ConfluenceLicenseUtils
Contains license utility methods.
Constructor Summary | |
---|---|
ConfluenceLicenseUtils()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfluenceLicenseUtils()
Method Detail |
---|
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 within
public static long getSupportPeriodEnd(com.atlassian.extras.api.confluence.ConfluenceLicense license)
license
- the license for which to calculate the support period end date
public static long getSupportPeriodAlmostExpiredDate(com.atlassian.extras.api.confluence.ConfluenceLicense license)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |