Interface License


public interface License
Represents a license that can be used in testing.
Since:
v7.0
  • Method Details

    • getLicenseString

      String getLicenseString()
      Return the raw license key.
      Returns:
      the raw license key.
    • getDescription

      String getDescription()
      Return the description contained in the license.
      Returns:
      the description contained in the license.
    • getOrganisation

      String getOrganisation()
      Return the organisation in the license.
      Returns:
      the organisation in the license.
    • getSen

      String getSen()
      Return the SEN in the license.
      Returns:
      the SEN in the license.
    • isEvaluation

      boolean isEvaluation()
      Is the license an evaluation license?
      Returns:
      is the license an evaluation license?
    • getSubscriptionExpiryDate

      io.atlassian.fugue.Option<Date> getSubscriptionExpiryDate()
      Return the expiry date of the license or Option.none() if its a perpetual license.
      Returns:
      the expiry date of the license or Option.none() if its a perpetual license.
    • getMaintenanceExpiryDate

      io.atlassian.fugue.Option<Date> getMaintenanceExpiryDate()
      Return the maintenance expiry of the license or Option.none() if its a perpetual license.
      Returns:
      the maintenance expiry of the license or Option.none() if its a perpetual license.
    • getRoles

      Map<String,License.Role> getRoles()
      Return a map of the roles in the license.
      Returns:
      a map of the roles in the license.
    • getLicenseType

      com.atlassian.extras.api.LicenseType getLicenseType()
      Return the LicenseType for the license.
      Returns:
      the license type.
    • getProperty

      @Nullable String getProperty(@Nonnull String property)