com.atlassian.jira.web.action.util
Class JiraLicenseUtils
java.lang.Object
com.atlassian.jira.web.action.util.JiraLicenseUtils
public class JiraLicenseUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JIRA_ENTERPRISE_LEVEL
public static final String JIRA_ENTERPRISE_LEVEL
- See Also:
- Constant Field Values
JIRA_PROFESSIONAL_LEVEL
public static final String JIRA_PROFESSIONAL_LEVEL
- See Also:
- Constant Field Values
JIRA_STANDARD_LEVEL
public static final String JIRA_STANDARD_LEVEL
- See Also:
- Constant Field Values
JIRA_LICENSE_KEY
public static final String JIRA_LICENSE_KEY
- See Also:
- Constant Field Values
JIRA_LICENSE_REG_LOCATION
public static final String JIRA_LICENSE_REG_LOCATION
- See Also:
- Constant Field Values
JiraLicenseUtils
public JiraLicenseUtils()
setLicense
public static com.atlassian.license.License setLicense(String license)
- This does all the validation before setting the license in the app properties.
This method should be called from within JIRA instead of
LicenseManager.setLicense(String, String)
as this method clears any application-level confirmation.
- Parameters:
license
- license to set
- Returns:
- The license, or null if the string given is invalid
setEdition
public static void setEdition()
needLicenseExtensionConfirm
public static boolean needLicenseExtensionConfirm(javax.servlet.ServletContext servletContext)
validateLicenseAgainstBuild
public static String validateLicenseAgainstBuild(String license)
throws com.atlassian.license.LicenseException
- Validates that the license key is a valid license and that it matches the currently running JIRA build.
- Parameters:
license
- the license key to validate
- Returns:
- a i18n key for a found error, null if no error found
- Throws:
com.atlassian.license.LicenseException
- if fails instantiating a licanse pair
validateLicenseRegion
public static String validateLicenseRegion(String license)
throws com.atlassian.license.LicenseException
- Throws:
com.atlassian.license.LicenseException
getLicenseRegistry
public static com.atlassian.license.LicenseRegistry getLicenseRegistry()
isLicenseSetup
public static boolean isLicenseSetup()
isPartnerDetailsValid
public static boolean isPartnerDetailsValid(javax.servlet.ServletContext servletContext)
checkPartnerDetails
public static String checkPartnerDetails(com.atlassian.license.License license)
isEnterpriseEdition
public static boolean isEnterpriseEdition()
isPersonalLicense
public static boolean isPersonalLicense()
getServerId
public static String getServerId()
getLicenseStatusMessage
public static String getLicenseStatusMessage(I18nHelper i18n,
OutlookDate outlookDate,
String delimiter)
getLicenseExpiryStatusMessage
public static String getLicenseExpiryStatusMessage(I18nHelper i18n,
OutlookDate outlookDate)
isLicenseAlmostExpired
public static boolean isLicenseAlmostExpired()
- Check whether the evaluation license has expired or whether the new installation with old license
has expired
- Returns:
- if the license has expired
Copyright © 2002-2008 Atlassian. All Rights Reserved.