|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.license.BambooLicenseManagerImpl
public class BambooLicenseManagerImpl
Field Summary | |
---|---|
static java.lang.String |
BAMBOO_LICENSE_KEY
|
Fields inherited from interface com.atlassian.bamboo.license.BambooLicenseManager |
---|
MAX_LOCAL_AGENTS_BASIC, MAX_LOCAL_AGENTS_UNLIMITED, MAX_PLANS_STARTER, MAX_PLANS_UNLIMITED, MAX_REMOTE_AGENTS_5, MAX_REMOTE_AGENTS_ENTERPRISE, MAX_REMOTE_AGENTS_NONE, MAX_REMOTE_AGENTS_PROFESSIONAL, MAX_REMOTE_AGENTS_STANDARD, MAX_REMOTE_AGENTS_UNLIMITED |
Constructor Summary | |
---|---|
BambooLicenseManagerImpl(BootstrapManager bootstrapManager)
|
Method Summary | |
---|---|
boolean |
authenticateLicense(java.lang.String license)
Checks whether or not a specific license is valid |
int |
getAllowedNumberOfLocalAgents()
Checks the maximum number of local agents allowed for the current license. |
int |
getAllowedNumberOfPlans()
Checks the maximum number of plans that can be created for the current license. |
int |
getAllowedNumberOfPlans(java.lang.String licenseString)
Checks the maximum number of plans that can be created for the provided license |
int |
getAllowedNumberOfRemoteAgents()
Checks the maximum number of remote agents allowed for the current license. |
protected java.util.Date |
getBuildDate()
|
com.atlassian.extras.api.bamboo.BambooLicense |
getLicense()
Retrieves the current bamboo license for this instance. |
boolean |
isAcademic()
|
boolean |
isBasicEdition()
|
boolean |
isCommercial()
|
boolean |
isCommunity()
|
boolean |
isDemonstration()
|
boolean |
isDeveloper()
|
boolean |
isEvaluation()
|
boolean |
isLicenseValid()
Checks whether the existing license is valid |
boolean |
isMaintenanceExpiredForBuild()
Checks if the maintenance has expired for the given license based on the current build number. |
boolean |
isOpenSource()
|
boolean |
isStarter()
|
void |
setLicense(java.lang.String license)
Sets the license for this Bamboo instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String BAMBOO_LICENSE_KEY
Constructor Detail |
---|
public BambooLicenseManagerImpl(@NotNull BootstrapManager bootstrapManager)
Method Detail |
---|
@Nullable public com.atlassian.extras.api.bamboo.BambooLicense getLicense()
BambooLicenseManager
getLicense
in interface BambooLicenseManager
public void setLicense(java.lang.String license)
BambooLicenseManager
setLicense
in interface BambooLicenseManager
license
- stringpublic boolean authenticateLicense(java.lang.String license)
BambooLicenseManager
authenticateLicense
in interface BambooLicenseManager
license
- to check
public boolean isLicenseValid()
BambooLicenseManager
isLicenseValid
in interface BambooLicenseManager
protected java.util.Date getBuildDate()
public boolean isMaintenanceExpiredForBuild()
BambooLicenseManager
isMaintenanceExpiredForBuild
in interface BambooLicenseManager
public int getAllowedNumberOfRemoteAgents()
BambooLicenseManager
getAllowedNumberOfRemoteAgents
in interface BambooLicenseManager
public int getAllowedNumberOfLocalAgents()
BambooLicenseManager
getAllowedNumberOfLocalAgents
in interface BambooLicenseManager
public int getAllowedNumberOfPlans()
BambooLicenseManager
getAllowedNumberOfPlans
in interface BambooLicenseManager
public int getAllowedNumberOfPlans(java.lang.String licenseString)
BambooLicenseManager
getAllowedNumberOfPlans
in interface BambooLicenseManager
licenseString
- to check
public boolean isStarter()
isStarter
in interface BambooLicenseManager
public boolean isBasicEdition()
public boolean isEvaluation()
isEvaluation
in interface BambooLicenseManager
public boolean isAcademic()
isAcademic
in interface BambooLicenseManager
public boolean isDemonstration()
isDemonstration
in interface BambooLicenseManager
public boolean isDeveloper()
isDeveloper
in interface BambooLicenseManager
public boolean isCommunity()
isCommunity
in interface BambooLicenseManager
public boolean isOpenSource()
isOpenSource
in interface BambooLicenseManager
public boolean isCommercial()
isCommercial
in interface BambooLicenseManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |