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.  The server ID format is four quadruples of
20       * alphanumeric characters, each separated by a dash (<tt>-</tt>).
21       *
22       * @return the server ID, or {@code null} if the server ID has not yet
23       *         been set for the currently running application.
24       *
25       * @since 2.7
26       */
27      String getServerId();
28  
29      /**
30       * Gets the Support Entitlement Number (SEN) for the currently running application.
31       *
32       * @return the Support Entitlement Number, or {@code null} if there is no current support entitlement.
33       *
34       * @since 2.7
35       */
36      String getSupportEntitlementNumber();
37  }