com.pyxis.greenhopper.jira.license
Class GreenHopperPluginLicenseManager

java.lang.Object
  extended by com.pyxis.greenhopper.jira.license.GreenHopperPluginLicenseManager
All Implemented Interfaces:
com.atlassian.upm.license.compatibility.CompatiblePluginLicenseManager, com.atlassian.upm.license.compatibility.LegacyCompatiblePluginLicenseManager

public class GreenHopperPluginLicenseManager
extends java.lang.Object
implements com.atlassian.upm.license.compatibility.LegacyCompatiblePluginLicenseManager

Provides access to GreenHopper licenses when Universal Plugin Manager 2.0 is not installed.


Field Summary
protected  LoggerWrapper log
           
 
Constructor Summary
GreenHopperPluginLicenseManager()
           
 
Method Summary
 com.atlassian.extras.api.ProductLicense getCurrentLicense()
          Get the currently installed GreenHopper license.
 com.atlassian.upm.license.compatibility.CompatibleLicenseStatus getCurrentLicenseStatus()
          Get the status of the current license
 com.atlassian.extras.api.ProductLicense getLicense(java.lang.String licenseString)
          Get a ProductLicense for a given license key
 com.atlassian.upm.license.compatibility.CompatibleLicenseStatus getLicenseStatus(java.lang.String rawLicense)
          Get the status of a given license String
 java.net.URI getPluginLicenseAdministrationUri()
          Get the license edit page - ours, not UPM 2.0's
 com.atlassian.extras.api.ProductLicense setLicense(java.lang.String licenseString)
          Set a new license Note: We expect the license to already be properly validated and passing in case this is called from GreenHopperLicenseManager.setLicense, as this method performs a verify before actually setting the license onto the PluginLicenseManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final LoggerWrapper log
Constructor Detail

GreenHopperPluginLicenseManager

public GreenHopperPluginLicenseManager()
Method Detail

getPluginLicenseAdministrationUri

public java.net.URI getPluginLicenseAdministrationUri()
Get the license edit page - ours, not UPM 2.0's

Specified by:
getPluginLicenseAdministrationUri in interface com.atlassian.upm.license.compatibility.CompatiblePluginLicenseManager

getCurrentLicense

public com.atlassian.extras.api.ProductLicense getCurrentLicense()
Get the currently installed GreenHopper license. The JIRA license will be checked first to see whether it contains a license (used by OnDemand), then the proper GreenHopper license will be checked.

Specified by:
getCurrentLicense in interface com.atlassian.upm.license.compatibility.CompatiblePluginLicenseManager

getLicense

public com.atlassian.extras.api.ProductLicense getLicense(java.lang.String licenseString)
Get a ProductLicense for a given license key

Specified by:
getLicense in interface com.atlassian.upm.license.compatibility.CompatiblePluginLicenseManager

getCurrentLicenseStatus

public com.atlassian.upm.license.compatibility.CompatibleLicenseStatus getCurrentLicenseStatus()
Get the status of the current license

Specified by:
getCurrentLicenseStatus in interface com.atlassian.upm.license.compatibility.CompatiblePluginLicenseManager

getLicenseStatus

public com.atlassian.upm.license.compatibility.CompatibleLicenseStatus getLicenseStatus(java.lang.String rawLicense)
Get the status of a given license String

Specified by:
getLicenseStatus in interface com.atlassian.upm.license.compatibility.CompatiblePluginLicenseManager

setLicense

public com.atlassian.extras.api.ProductLicense setLicense(java.lang.String licenseString)
Set a new license Note: We expect the license to already be properly validated and passing in case this is called from GreenHopperLicenseManager.setLicense, as this method performs a verify before actually setting the license onto the PluginLicenseManager

Specified by:
setLicense in interface com.atlassian.upm.license.compatibility.CompatiblePluginLicenseManager


Copyright © 2007-2013 Atlassian. All Rights Reserved.