Package com.atlassian.jira.test.util.lic
Interface License
public interface License
Represents a license that can be used in testing.
- Since:
- v7.0
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionReturn the description contained in the license.Return the raw license key.com.atlassian.extras.api.LicenseType
Return theLicenseType
for the license.io.atlassian.fugue.Option<Date>
Return the maintenance expiry of the license orOption.none()
if its a perpetual license.Return the organisation in the license.getProperty
(String property) getRoles()
Return a map of the roles in the license.getSen()
Return the SEN in the license.io.atlassian.fugue.Option<Date>
Return the expiry date of the license orOption.none()
if its a perpetual license.boolean
Is the license an evaluation license?
-
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 orOption.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 orOption.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 theLicenseType
for the license.- Returns:
- the license type.
-
getProperty
-