Class ConfluenceLicenseUtils

java.lang.Object
com.atlassian.confluence.license.util.ConfluenceLicenseUtils

@Internal @ParametersAreNonnullByDefault public class ConfluenceLicenseUtils extends Object
Contains license utility methods.
Since:
5.6
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.atlassian.extras.api.Product
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    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)
    Deprecated.
    since 5.9.1.
    static @NonNull com.atlassian.fugue.Option<Integer>
    numberOfClusterNodes(com.atlassian.extras.api.confluence.ConfluenceLicense license)
    Deprecated.
    since 5.9.1.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CONFLUENCE_QUESTION

      public static final com.atlassian.extras.api.Product CONFLUENCE_QUESTION
  • Constructor Details

    • ConfluenceLicenseUtils

      public ConfluenceLicenseUtils()
  • Method Details

    • isDataCenter

      @Deprecated public static boolean isDataCenter(com.atlassian.extras.api.confluence.ConfluenceLicense license)
      Deprecated.
      since 5.9.1. Use ProductLicense.isClusteringEnabled() instead.
      Returns whether a license is for Confluence Data Center.
      Parameters:
      license - the license to check.
      Returns:
      whether a license is for Confluence Data Center.

      Note: this method should be removed, see CONFDEV-26238 for details.

    • numberOfClusterNodes

      @Deprecated public static @NonNull com.atlassian.fugue.Option<Integer> numberOfClusterNodes(com.atlassian.extras.api.confluence.ConfluenceLicense license)
      Deprecated.
      since 5.9.1. Use ConfluenceLicense.getMaximumNumberOfClusterNodes() instead.
      Returns the number of cluster nodes. This property was used in legacy cluster licenses.
      Parameters:
      license - the license to look within
      Returns:
      whether the property exists or not.
    • getSupportPeriodEnd

      public 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)
      Parameters:
      license - the license for which to calculate the support period end date
      Returns:
      the license support period end date
    • getSupportPeriodAlmostExpiredDate

      public static long getSupportPeriodAlmostExpiredDate(com.atlassian.extras.api.confluence.ConfluenceLicense license)