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(@NotNull 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() |
@Nullable com.atlassian.extras.api.bamboo.BambooLicense |
getLicense()
Retrieves the current bamboo license for this instance.
|
@Nullable String |
getLicenseString() |
boolean |
isAcademic() |
boolean |
isBasicEdition() |
boolean |
isCommercial() |
boolean |
isCommunity() |
boolean |
isDataCenter() |
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
@NotNull BootstrapManager bootstrapManager)
@Nullable public @Nullable com.atlassian.extras.api.bamboo.BambooLicense getLicense()
BambooLicenseManagergetLicense in interface BambooLicenseManager@Nullable public @Nullable String getLicenseString()
public void setLicense(String license)
BambooLicenseManagersetLicense in interface BambooLicenseManagerlicense - stringpublic boolean authenticateLicense(String license)
BambooLicenseManagerauthenticateLicense in interface BambooLicenseManagerlicense - to checkpublic boolean isLicenseValid()
BambooLicenseManagerisLicenseValid in interface BambooLicenseManagerprotected Date getBuildDate()
public boolean isMaintenanceExpiredForBuild()
BambooLicenseManagerisMaintenanceExpiredForBuild in interface BambooLicenseManagerpublic int getAllowedNumberOfRemoteAgents()
BambooLicenseManagergetAllowedNumberOfRemoteAgents in interface BambooLicenseManagerpublic int getAllowedNumberOfLocalAgents()
BambooLicenseManagergetAllowedNumberOfLocalAgents in interface BambooLicenseManagerpublic int getAllowedNumberOfPlans()
BambooLicenseManagergetAllowedNumberOfPlans in interface BambooLicenseManagerpublic int getAllowedNumberOfPlans(String licenseString)
BambooLicenseManagergetAllowedNumberOfPlans in interface BambooLicenseManagerlicenseString - to checkpublic boolean isStarter()
isStarter in interface BambooLicenseManagerpublic boolean isBasicEdition()
public boolean isEvaluation()
isEvaluation in interface BambooLicenseManagerpublic boolean isAcademic()
isAcademic in interface BambooLicenseManagerpublic boolean isDemonstration()
isDemonstration in interface BambooLicenseManagerpublic boolean isDeveloper()
isDeveloper in interface BambooLicenseManagerpublic boolean isCommunity()
isCommunity in interface BambooLicenseManagerpublic boolean isOpenSource()
isOpenSource in interface BambooLicenseManagerpublic boolean isCommercial()
isCommercial in interface BambooLicenseManagerpublic boolean isDataCenter()
isDataCenter in interface BambooLicenseManagerCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.