public final class

LicenseChangedEvent

extends Object
java.lang.Object
   ↳ com.atlassian.jira.license.LicenseChangedEvent

Class Overview

Event fired when a new license is entered into JIRA. This can allow, e.g. plugins that cache license-related information to flush their cache.

Summary

Fields
public final Option<? extends LicenseDetails> newLicenseDetails The details of the new license.
public final Option<? extends LicenseDetails> previousLicenseDetails The details of the previous license.
Public Constructors
LicenseChangedEvent(Option<? extends LicenseDetails> previousLicenseDetails, Option<? extends LicenseDetails> newLicenseDetails)
Public Methods
final Option<? extends LicenseDetails> getNewLicenseDetails()
Get new license details
final Option<? extends LicenseDetails> getPreviousLicenseDetails()
Get previous license details
boolean isLicenseRemoved()
Determines whether this event is a remove license event (license removed)
boolean isLicenseUpdated()
Determines whether this event is a update license event (license update)
boolean isNewLicense()
Determines whether this event is a new license event (new license added)
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public final Option<? extends LicenseDetails> newLicenseDetails

The details of the new license.

public final Option<? extends LicenseDetails> previousLicenseDetails

The details of the previous license.

Public Constructors

public LicenseChangedEvent (Option<? extends LicenseDetails> previousLicenseDetails, Option<? extends LicenseDetails> newLicenseDetails)

Public Methods

public final Option<? extends LicenseDetails> getNewLicenseDetails ()

Get new license details

Returns
  • the new LicenseDetails or null if license has been removed

public final Option<? extends LicenseDetails> getPreviousLicenseDetails ()

Get previous license details

Returns
  • the previous LicenseDetails or null if new license

public boolean isLicenseRemoved ()

Determines whether this event is a remove license event (license removed)

Returns
  • true if this is a remove license event

public boolean isLicenseUpdated ()

Determines whether this event is a update license event (license update)

Returns
  • true if this is a update license event

public boolean isNewLicense ()

Determines whether this event is a new license event (new license added)

Returns
  • true if this is a new license event

public String toString ()