Class LicenseChangedEvent

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

public final class LicenseChangedEvent extends Object
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.
Since:
v6.4
  • Field Details

    • previousLicenseDetails

      public final io.atlassian.fugue.Option<? extends LicenseDetails> previousLicenseDetails
      The details of the previous license.
    • newLicenseDetails

      public final io.atlassian.fugue.Option<? extends LicenseDetails> newLicenseDetails
      The details of the new license.
  • Constructor Details

    • LicenseChangedEvent

      public LicenseChangedEvent(@Nonnull io.atlassian.fugue.Option<? extends LicenseDetails> previousLicenseDetails, @Nonnull io.atlassian.fugue.Option<? extends LicenseDetails> newLicenseDetails)
  • Method Details

    • getNewLicenseDetails

      public final io.atlassian.fugue.Option<? extends LicenseDetails> getNewLicenseDetails()
      Get new license details
      Returns:
      the new LicenseDetails or null if license has been removed
      Since:
      v6.4
    • getPreviousLicenseDetails

      public final io.atlassian.fugue.Option<? extends LicenseDetails> getPreviousLicenseDetails()
      Get previous license details
      Returns:
      the previous LicenseDetails or null if new license
      Since:
      v6.4
    • isNewLicense

      public boolean isNewLicense()
      Determines whether this event is a new license event (new license added)
      Returns:
      true if this is a new license event
      Since:
      v6.4
    • isLicenseUpdated

      public boolean isLicenseUpdated()
      Determines whether this event is a update license event (license update)
      Returns:
      true if this is a update license event
      Since:
      v6.4
    • isLicenseRemoved

      public boolean isLicenseRemoved()
      Determines whether this event is a remove license event (license removed)
      Returns:
      true if this is a remove license event
      Since:
      v6.4
    • toString

      public String toString()
      Overrides:
      toString in class Object