public class BambooLicenseManagerImpl extends Object implements BambooLicenseManager
Modifier and Type | Field and Description |
---|---|
static String |
BAMBOO_LICENSE_KEY |
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 and Description |
---|
BambooLicenseManagerImpl(BootstrapManager bootstrapManager) |
Modifier and Type | Method and Description |
---|---|
boolean |
authenticateLicense(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(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 Date |
getBuildDate() |
com.atlassian.extras.api.bamboo.BambooLicense |
getLicense()
Retrieves the current bamboo license for this instance.
|
String |
getLicenseString() |
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(String license)
Sets the license for this Bamboo instance.
|
public static final String BAMBOO_LICENSE_KEY
public BambooLicenseManagerImpl(@NotNull BootstrapManager bootstrapManager)
@Nullable public com.atlassian.extras.api.bamboo.BambooLicense getLicense()
BambooLicenseManager
getLicense
in interface BambooLicenseManager
@Nullable public String getLicenseString()
public void setLicense(String license)
BambooLicenseManager
setLicense
in interface BambooLicenseManager
license
- stringpublic boolean authenticateLicense(String license)
BambooLicenseManager
authenticateLicense
in interface BambooLicenseManager
license
- to checkpublic boolean isLicenseValid()
BambooLicenseManager
isLicenseValid
in interface BambooLicenseManager
protected 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(String licenseString)
BambooLicenseManager
getAllowedNumberOfPlans
in interface BambooLicenseManager
licenseString
- to checkpublic 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
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.