Class LicenseChangedEvent
java.lang.Object
java.util.EventObject
com.atlassian.bitbucket.event.ApplicationEvent
com.atlassian.bitbucket.event.license.LicenseChangedEvent
- All Implemented Interfaces:
Serializable
Event that is raised when the license is changed.
This event is internally audited.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionLicenseChangedEvent(Object source) LicenseChangedEvent(Object source, com.atlassian.extras.api.bitbucket.BitbucketServerLicense newLicense, com.atlassian.extras.api.bitbucket.BitbucketServerLicense previousLicense) Allows passing in the old and new licenses optionally -
Method Summary
Modifier and TypeMethodDescriptioncom.atlassian.extras.api.bitbucket.BitbucketServerLicensecom.atlassian.extras.api.bitbucket.BitbucketServerLicenseMethods inherited from class com.atlassian.bitbucket.event.ApplicationEvent
getDate, getUserMethods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
LicenseChangedEvent
-
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 eventnewLicense- new license that has been updated. Can be nullpreviousLicense- 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()
-