com.atlassian.jira.license
Class LicenseJohnsonEventRaiserImpl

java.lang.Object
  extended by com.atlassian.jira.license.LicenseJohnsonEventRaiserImpl
All Implemented Interfaces:
LicenseJohnsonEventRaiser

public class LicenseJohnsonEventRaiserImpl
extends Object
implements LicenseJohnsonEventRaiser

An implementation of LicenseJohnsonEventRaiser

Since:
v4.0

Field Summary
 
Fields inherited from interface com.atlassian.jira.license.LicenseJohnsonEventRaiser
LICENSE_INVALID, LICENSE_TOO_OLD
 
Constructor Summary
LicenseJohnsonEventRaiserImpl(BuildUtilsInfo buildUtilsInfo, JiraLicenseService jiraLicenseService, I18nHelper.BeanFactory i18nBeanFactory, UserUtil userUtil)
           
 
Method Summary
 boolean checkLicenseIsInvalid(javax.servlet.ServletContext servletContext, LicenseDetails licenseDetails)
          Checks whether the license is invalid for this JIRA instance, and raise a Johnson LicenseJohnsonEventRaiser.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 LicenseJohnsonEventRaiser.LICENSE_TOO_OLD event if it is the case.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LicenseJohnsonEventRaiserImpl

public LicenseJohnsonEventRaiserImpl(BuildUtilsInfo buildUtilsInfo,
                                     JiraLicenseService jiraLicenseService,
                                     I18nHelper.BeanFactory i18nBeanFactory,
                                     UserUtil userUtil)
Method Detail

checkLicenseIsTooOldForBuild

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

Specified by:
checkLicenseIsTooOldForBuild in interface LicenseJohnsonEventRaiser
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

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

Specified by:
checkLicenseIsInvalid in interface LicenseJohnsonEventRaiser
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-2012 Atlassian. All Rights Reserved.