com.pyxis.greenhopper.jira.license
Class GreenHopperLicenseManagerImpl

java.lang.Object
  extended by com.pyxis.greenhopper.jira.license.GreenHopperLicenseManagerImpl
All Implemented Interfaces:
com.atlassian.jira.plugin.license.PluginLicenseManager, GreenHopperLicenseManager

public class GreenHopperLicenseManagerImpl
extends java.lang.Object
implements GreenHopperLicenseManager


Constructor Summary
GreenHopperLicenseManagerImpl()
           
 
Method Summary
 com.atlassian.jira.license.LicenseDetails getLicense()
          Get the current license details
 com.atlassian.jira.license.LicenseDetails getLicense(java.lang.String licenseString)
          Get the license details for a given license String
 java.lang.String getLicenseRedirectUrl()
          Returns the correct license page redirect url
 java.lang.String getServerId()
          Get the server id
 boolean isOneShotTrialAvailable()
          NOTE: MUST NOT BE DELETED - called through reflection by another plugin!
 void setLicense(java.lang.String licenseString)
          Sets a new license in GreenHopper.
 void startOneShotTrialNow()
          NOTE: MUST NOT BE DELETED - called through reflection by another plugin!
 void verify()
          Verify the license
 void verifyOnStartup()
          Keep - at some point we had different logic on startup, due to crowd not being correctly up yet Not anymore a problem (educated guess) since we have now crowd embedded.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GreenHopperLicenseManagerImpl

public GreenHopperLicenseManagerImpl()
Method Detail

getServerId

public java.lang.String getServerId()
Get the server id

Specified by:
getServerId in interface GreenHopperLicenseManager

getLicense

public com.atlassian.jira.license.LicenseDetails getLicense()
Get the current license details

Specified by:
getLicense in interface GreenHopperLicenseManager

getLicense

public com.atlassian.jira.license.LicenseDetails getLicense(java.lang.String licenseString)
Get the license details for a given license String

Specified by:
getLicense in interface GreenHopperLicenseManager

getLicenseRedirectUrl

public java.lang.String getLicenseRedirectUrl()
Returns the correct license page redirect url

Specified by:
getLicenseRedirectUrl in interface GreenHopperLicenseManager

setLicense

public void setLicense(java.lang.String licenseString)
                throws com.atlassian.extras.common.LicenseException
Sets a new license in GreenHopper. Known users: - GreenHopper admin page - JIRA setup wizard - OnDemand

Specified by:
setLicense in interface com.atlassian.jira.plugin.license.PluginLicenseManager
Throws:
com.atlassian.extras.common.LicenseException

verifyOnStartup

public void verifyOnStartup()
                     throws com.atlassian.extras.common.LicenseException
Keep - at some point we had different logic on startup, due to crowd not being correctly up yet Not anymore a problem (educated guess) since we have now crowd embedded.

Specified by:
verifyOnStartup in interface GreenHopperLicenseManager
Throws:
com.atlassian.extras.common.LicenseException

verify

public void verify()
            throws com.atlassian.extras.common.LicenseException
Verify the license

Specified by:
verify in interface GreenHopperLicenseManager
Throws:
com.atlassian.extras.common.LicenseException

isOneShotTrialAvailable

public boolean isOneShotTrialAvailable()
NOTE: MUST NOT BE DELETED - called through reflection by another plugin!

Specified by:
isOneShotTrialAvailable in interface GreenHopperLicenseManager

startOneShotTrialNow

public void startOneShotTrialNow()
NOTE: MUST NOT BE DELETED - called through reflection by another plugin!

Specified by:
startOneShotTrialNow in interface GreenHopperLicenseManager


Copyright © 2007-2012 Atlassian. All Rights Reserved.