Package com.atlassian.jira.license
Class LicenseChangedEvent
java.lang.Object
com.atlassian.jira.license.LicenseChangedEvent
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 Summary
FieldsModifier and TypeFieldDescriptionfinal io.atlassian.fugue.Option<? extends LicenseDetails>The details of the new license.final io.atlassian.fugue.Option<? extends LicenseDetails>The details of the previous license. -
Constructor Summary
ConstructorsConstructorDescriptionLicenseChangedEvent(io.atlassian.fugue.Option<? extends LicenseDetails> previousLicenseDetails, io.atlassian.fugue.Option<? extends LicenseDetails> newLicenseDetails) -
Method Summary
Modifier and TypeMethodDescriptionfinal io.atlassian.fugue.Option<? extends LicenseDetails>Get new license detailsfinal io.atlassian.fugue.Option<? extends LicenseDetails>Get previous license detailsbooleanDetermines whether this event is a remove license event (license removed)booleanDetermines whether this event is a update license event (license update)booleanDetermines whether this event is a new license event (new license added)toString()
-
Field Details
-
previousLicenseDetails
The details of the previous license. -
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
Get new license details- Returns:
- the new LicenseDetails or null if license has been removed
- Since:
- v6.4
-
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
-