Class LicenseChangedEvent

java.lang.Object
java.util.EventObject
com.atlassian.bitbucket.event.ApplicationEvent
com.atlassian.bitbucket.event.license.LicenseChangedEvent
All Implemented Interfaces:
Serializable

@AsynchronousPreferred @TransactionAware public class LicenseChangedEvent extends ApplicationEvent
Event that is raised when the license is changed.

This event is internally audited.

See Also:
  • Constructor Details

    • LicenseChangedEvent

      public LicenseChangedEvent(@Nonnull Object source)
    • LicenseChangedEvent

      public LicenseChangedEvent(@Nonnull Object source, @Nullable com.atlassian.extras.api.bitbucket.BitbucketServerLicense newLicense, @Nullable com.atlassian.extras.api.bitbucket.BitbucketServerLicense previousLicense)
      Allows passing in the old and new licenses optionally
      Parameters:
      source - the publisher of this event
      newLicense - new license that has been updated. Can be null
      previousLicense - license that existed before updating this license. Can be null
      Since:
      7.0
  • Method Details

    • getNewLicense

      @Nullable public com.atlassian.extras.api.bitbucket.BitbucketServerLicense getNewLicense()
    • getPreviousLicense

      @Nullable public com.atlassian.extras.api.bitbucket.BitbucketServerLicense getPreviousLicense()