public interface

License

com.atlassian.jira.test.util.lic.License

Class Overview

Represents a license that can be used in testing.

Summary

Nested Classes
interface License.Role  
Public Methods
String getDescription()
Return the description contained in the license.
String getLicenseString()
Return the raw license key.
LicenseType getLicenseType()
Return the com.atlassian.extras.api.LicenseType for the license.
Option<Date> getMaintenanceExpiryDate()
Return the maintenance expiry of the license or none() if its a perpetual license.
String getOrganisation()
Return the organisation in the license.
@Nullable String getProperty(String property)
Map<StringLicense.Role> getRoles()
Return a map of the roles in the license.
String getSen()
Return the SEN in the license.
Option<Date> getSubscriptionExpiryDate()
Return the expiry date of the license or none() if its a perpetual license.
boolean isEvaluation()
Is the license an evaluation license?

Public Methods

public String getDescription ()

Return the description contained in the license.

Returns
  • the description contained in the license.

public String getLicenseString ()

Return the raw license key.

Returns
  • the raw license key.

public LicenseType getLicenseType ()

Return the com.atlassian.extras.api.LicenseType for the license.

Returns
  • the license type.

public Option<Date> getMaintenanceExpiryDate ()

Return the maintenance expiry of the license or none() if its a perpetual license.

Returns
  • the maintenance expiry of the license or none() if its a perpetual license.

public String getOrganisation ()

Return the organisation in the license.

Returns
  • the organisation in the license.

@Nullable public String getProperty (String property)

public Map<StringLicense.Role> getRoles ()

Return a map of the roles in the license.

Returns
  • a map of the roles in the license.

public String getSen ()

Return the SEN in the license.

Returns
  • the SEN in the license.

public Option<Date> getSubscriptionExpiryDate ()

Return the expiry date of the license or none() if its a perpetual license.

Returns
  • the expiry date of the license or none() if its a perpetual license.

public boolean isEvaluation ()

Is the license an evaluation license?

Returns
  • is the license an evaluation license?