public class MockLicense extends Object implements com.atlassian.extras.api.jira.JiraLicense
| Constructor and Description |
|---|
MockLicense() |
| Modifier and Type | Method and Description |
|---|---|
Collection<com.atlassian.extras.api.Contact> |
getContacts() |
Date |
getCreationDate() |
String |
getDescription() |
Date |
getExpiryDate() |
com.atlassian.extras.api.LicenseEdition |
getLicenseEdition() |
com.atlassian.extras.api.LicenseType |
getLicenseType() |
int |
getLicenseVersion() |
Date |
getMaintenanceExpiryDate() |
int |
getMaximumNumberOfUsers() |
int |
getNumberOfDaysBeforeExpiry() |
int |
getNumberOfDaysBeforeMaintenanceExpiry() |
com.atlassian.extras.api.Organisation |
getOrganisation() |
com.atlassian.extras.api.Partner |
getPartner() |
com.atlassian.extras.api.Product |
getProduct() |
String |
getProperty(String name) |
Date |
getPurchaseDate() |
String |
getServerId() |
String |
getSupportEntitlementNumber() |
boolean |
isEvaluation() |
boolean |
isExpired() |
boolean |
isMaintenanceExpired() |
boolean |
isUnlimitedNumberOfUsers() |
void |
setEvaluation(boolean evaluation) |
void |
setExpired(boolean isExpired) |
void |
setExpiryDate(Date date) |
void |
setExpiryDate(long time) |
void |
setLicenseType(com.atlassian.extras.api.LicenseType licenseType) |
void |
setLicenseVersion(int licenseVersion) |
void |
setMaintenanceExpired(boolean maintenanceExpired) |
void |
setMaintenanceExpiryDate(Date maintenanceExpiryDate) |
void |
setMaintenanceExpiryDate(long maintenanceExpiryDate) |
void |
setNumberOfDaysBeforeMaintenanceExpiry(int numberOfDaysBeforeMaintenanceExpiry) |
void |
setProperty(String name,
String value) |
public int getLicenseVersion()
getLicenseVersion in interface com.atlassian.extras.api.ProductLicensepublic String getDescription()
getDescription in interface com.atlassian.extras.api.ProductLicensepublic com.atlassian.extras.api.Product getProduct()
getProduct in interface com.atlassian.extras.api.ProductLicensepublic String getServerId()
getServerId in interface com.atlassian.extras.api.ProductLicensepublic com.atlassian.extras.api.Partner getPartner()
getPartner in interface com.atlassian.extras.api.ProductLicensepublic com.atlassian.extras.api.Organisation getOrganisation()
getOrganisation in interface com.atlassian.extras.api.ProductLicensepublic Collection<com.atlassian.extras.api.Contact> getContacts()
getContacts in interface com.atlassian.extras.api.ProductLicensepublic Date getCreationDate()
getCreationDate in interface com.atlassian.extras.api.ProductLicensepublic Date getPurchaseDate()
getPurchaseDate in interface com.atlassian.extras.api.ProductLicensepublic com.atlassian.extras.api.LicenseType getLicenseType()
getLicenseType in interface com.atlassian.extras.api.ProductLicensepublic String getProperty(String name)
getProperty in interface com.atlassian.extras.api.ProductLicensepublic boolean isExpired()
isExpired in interface com.atlassian.extras.api.ProductLicensepublic Date getExpiryDate()
getExpiryDate in interface com.atlassian.extras.api.ProductLicensepublic int getNumberOfDaysBeforeExpiry()
getNumberOfDaysBeforeExpiry in interface com.atlassian.extras.api.ProductLicensepublic String getSupportEntitlementNumber()
getSupportEntitlementNumber in interface com.atlassian.extras.api.ProductLicensepublic Date getMaintenanceExpiryDate()
getMaintenanceExpiryDate in interface com.atlassian.extras.api.ProductLicensepublic int getNumberOfDaysBeforeMaintenanceExpiry()
getNumberOfDaysBeforeMaintenanceExpiry in interface com.atlassian.extras.api.ProductLicensepublic boolean isMaintenanceExpired()
isMaintenanceExpired in interface com.atlassian.extras.api.ProductLicensepublic int getMaximumNumberOfUsers()
getMaximumNumberOfUsers in interface com.atlassian.extras.api.ProductLicensepublic boolean isUnlimitedNumberOfUsers()
isUnlimitedNumberOfUsers in interface com.atlassian.extras.api.ProductLicensepublic boolean isEvaluation()
isEvaluation in interface com.atlassian.extras.api.ProductLicensepublic void setLicenseType(com.atlassian.extras.api.LicenseType licenseType)
public void setExpiryDate(Date date)
public void setExpiryDate(long time)
public void setExpired(boolean isExpired)
public com.atlassian.extras.api.LicenseEdition getLicenseEdition()
getLicenseEdition in interface com.atlassian.extras.api.LicenseEditionAwarepublic void setEvaluation(boolean evaluation)
public void setMaintenanceExpiryDate(long maintenanceExpiryDate)
public void setMaintenanceExpiryDate(Date maintenanceExpiryDate)
public void setMaintenanceExpired(boolean maintenanceExpired)
public void setNumberOfDaysBeforeMaintenanceExpiry(int numberOfDaysBeforeMaintenanceExpiry)
public void setLicenseVersion(int licenseVersion)
Copyright © 2002-2015 Atlassian. All Rights Reserved.