View Javadoc

1   package com.atlassian.sal.api.license;
2   
3   /**
4    * Interface into the license system for the individual application
5    *
6    * @since 2.0
7    */
8   public interface LicenseHandler
9   {
10      /**
11       * Sets the license string for the currently running application
12       *
13       * @param license The license string
14       * @throws IllegalArgumentException if the license string is not a valid license
15       */
16      void setLicense(String license);
17  
18      /**
19       * Gets the server ID of the currently running application.
20       *
21       * @return the server ID.
22       */
23      String getServerId();
24  
25      /**
26       * Gets the Support Entitlement Number (SEN) for the currently running application.
27       *
28       * @return the Support Entitlement Number, or {@code null} if there is no current support entitlement.
29       */
30      String getSupportEntitlementNumber();
31  }