1 package com.atlassian.sal.api.license;
2
3 import javax.annotation.Nullable;
4
5 /**
6 * This event gets thrown whenever the host application license changes. This includes additions, updates, and removals.
7 * <p>
8 * This event will get fired once per license key involved in a change; in other words, if multiple products are licensed
9 * from a single newly-added license key, only a single event would be fired.
10 *
11 * @since v3.0
12 */
13 public interface LicenseChangedEvent {
14 /**
15 * Returns the previously set license. Will return null when adding a license.
16 *
17 * @return the previously set license.
18 */
19 @Nullable
20 BaseLicenseDetails getPreviousLicense();
21
22 /**
23 * Returns the newly set license. Will return null when removing a license.
24 *
25 * @return the newly set license.
26 */
27 @Nullable
28 BaseLicenseDetails getNewLicense();
29 }