com.atlassian.jira.license
Interface LicenseJohnsonEventRaiser

All Known Implementing Classes:
LicenseJohnsonEventRaiserImpl

public interface LicenseJohnsonEventRaiser

This can raise its Johnson with events related to licensing

Since:
v4.0

Field Summary
static java.lang.String LICENSE_INVALID
          This is the key used to indicate that the license is invalid to Johnson
static java.lang.String LICENSE_TOO_OLD
          This is the key used to indicate that the license is too old to Johnson
 
Method Summary
 boolean checkLicenseIsInvalid(javax.servlet.ServletContext servletContext, LicenseDetails licenseDetails)
          Checks whether the license is invalid for this JIRA instance, and raise a Johnson LICENSE_INVALID event if it is the case.
 boolean checkLicenseIsTooOldForBuild(javax.servlet.ServletContext servletContext, LicenseDetails licenseDetails)
          Checks whether the license is too old for this JIRA instance, and raise a Johnson LICENSE_TOO_OLD event if it is the case.
 

Field Detail

LICENSE_INVALID

static final java.lang.String LICENSE_INVALID
This is the key used to indicate that the license is invalid to Johnson

See Also:
Constant Field Values

LICENSE_TOO_OLD

static final java.lang.String LICENSE_TOO_OLD
This is the key used to indicate that the license is too old to Johnson

See Also:
Constant Field Values
Method Detail

checkLicenseIsTooOldForBuild

boolean checkLicenseIsTooOldForBuild(javax.servlet.ServletContext servletContext,
                                     LicenseDetails licenseDetails)
Checks whether the license is too old for this JIRA instance, and raise a Johnson LICENSE_TOO_OLD event if it is the case.

Parameters:
servletContext - the current servlet context
licenseDetails - the current license details
Returns:
true if the license is too old and the Johnson event has been raised.

checkLicenseIsInvalid

boolean checkLicenseIsInvalid(javax.servlet.ServletContext servletContext,
                              LicenseDetails licenseDetails)
Checks whether the license is invalid for this JIRA instance, and raise a Johnson LICENSE_INVALID event if it is the case.

Parameters:
servletContext - the current servlet context
licenseDetails - the current license details
Returns:
true if the license is invalid and the Johnson event has been raised.


Copyright © 2002-2010 Atlassian. All Rights Reserved.