com.atlassian.jira.license
Class MockLicense
java.lang.Object
com.atlassian.jira.license.MockLicense
- All Implemented Interfaces:
- com.atlassian.extras.api.jira.JiraLicense, com.atlassian.extras.api.LicenseEditionAware, com.atlassian.extras.api.ProductLicense
public class MockLicense
- extends Object
- implements com.atlassian.extras.api.jira.JiraLicense
- Since:
- v6.3
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.extras.api.ProductLicense |
getGracePeriodEndDate, getNumberOfDaysBeforeGracePeriodExpiry, getProducts, isGracePeriodExpired, isSubscription, isWithinGracePeriod |
MockLicense
public MockLicense()
getLicenseVersion
public int getLicenseVersion()
- Specified by:
getLicenseVersion
in interface com.atlassian.extras.api.ProductLicense
getDescription
public String getDescription()
- Specified by:
getDescription
in interface com.atlassian.extras.api.ProductLicense
getProduct
public com.atlassian.extras.api.Product getProduct()
- Specified by:
getProduct
in interface com.atlassian.extras.api.ProductLicense
getServerId
public String getServerId()
- Specified by:
getServerId
in interface com.atlassian.extras.api.ProductLicense
getPartner
public com.atlassian.extras.api.Partner getPartner()
- Specified by:
getPartner
in interface com.atlassian.extras.api.ProductLicense
getOrganisation
public com.atlassian.extras.api.Organisation getOrganisation()
- Specified by:
getOrganisation
in interface com.atlassian.extras.api.ProductLicense
getContacts
public Collection<com.atlassian.extras.api.Contact> getContacts()
- Specified by:
getContacts
in interface com.atlassian.extras.api.ProductLicense
getCreationDate
public Date getCreationDate()
- Specified by:
getCreationDate
in interface com.atlassian.extras.api.ProductLicense
getPurchaseDate
public Date getPurchaseDate()
- Specified by:
getPurchaseDate
in interface com.atlassian.extras.api.ProductLicense
getLicenseType
public com.atlassian.extras.api.LicenseType getLicenseType()
- Specified by:
getLicenseType
in interface com.atlassian.extras.api.ProductLicense
getProperty
public String getProperty(String name)
- Specified by:
getProperty
in interface com.atlassian.extras.api.ProductLicense
isExpired
public boolean isExpired()
- Specified by:
isExpired
in interface com.atlassian.extras.api.ProductLicense
getExpiryDate
public Date getExpiryDate()
- Specified by:
getExpiryDate
in interface com.atlassian.extras.api.ProductLicense
getNumberOfDaysBeforeExpiry
public int getNumberOfDaysBeforeExpiry()
- Specified by:
getNumberOfDaysBeforeExpiry
in interface com.atlassian.extras.api.ProductLicense
getSupportEntitlementNumber
public String getSupportEntitlementNumber()
- Specified by:
getSupportEntitlementNumber
in interface com.atlassian.extras.api.ProductLicense
getMaintenanceExpiryDate
public Date getMaintenanceExpiryDate()
- Specified by:
getMaintenanceExpiryDate
in interface com.atlassian.extras.api.ProductLicense
getNumberOfDaysBeforeMaintenanceExpiry
public int getNumberOfDaysBeforeMaintenanceExpiry()
- Specified by:
getNumberOfDaysBeforeMaintenanceExpiry
in interface com.atlassian.extras.api.ProductLicense
isMaintenanceExpired
public boolean isMaintenanceExpired()
- Specified by:
isMaintenanceExpired
in interface com.atlassian.extras.api.ProductLicense
getMaximumNumberOfUsers
public int getMaximumNumberOfUsers()
- Specified by:
getMaximumNumberOfUsers
in interface com.atlassian.extras.api.ProductLicense
isUnlimitedNumberOfUsers
public boolean isUnlimitedNumberOfUsers()
- Specified by:
isUnlimitedNumberOfUsers
in interface com.atlassian.extras.api.ProductLicense
isEvaluation
public boolean isEvaluation()
- Specified by:
isEvaluation
in interface com.atlassian.extras.api.ProductLicense
setLicenseType
public void setLicenseType(com.atlassian.extras.api.LicenseType licenseType)
setExpiryDate
public void setExpiryDate(Date date)
setExpiryDate
public void setExpiryDate(long time)
setExpired
public void setExpired(boolean isExpired)
getLicenseEdition
public com.atlassian.extras.api.LicenseEdition getLicenseEdition()
- Specified by:
getLicenseEdition
in interface com.atlassian.extras.api.LicenseEditionAware
setEvaluation
public void setEvaluation(boolean evaluation)
setMaintenanceExpiryDate
public void setMaintenanceExpiryDate(long maintenanceExpiryDate)
setMaintenanceExpiryDate
public void setMaintenanceExpiryDate(Date maintenanceExpiryDate)
setMaintenanceExpired
public void setMaintenanceExpired(boolean maintenanceExpired)
setNumberOfDaysBeforeMaintenanceExpiry
public void setNumberOfDaysBeforeMaintenanceExpiry(int numberOfDaysBeforeMaintenanceExpiry)
setLicenseVersion
public void setLicenseVersion(int licenseVersion)
setProperty
public void setProperty(String name,
String value)
Copyright © 2002-2014 Atlassian. All Rights Reserved.