Package com.atlassian.bamboo.license
Interface BambooLicenseManager
-
- All Known Implementing Classes:
BambooLicenseManagerImpl
public interface BambooLicenseManager
-
-
Field Summary
Fields Modifier and Type Field Description static intMAX_LOCAL_AGENTS_BASICstatic intMAX_LOCAL_AGENTS_UNLIMITEDstatic intMAX_PLANS_STARTERstatic intMAX_PLANS_UNLIMITEDstatic intMAX_REMOTE_AGENTS_5static intMAX_REMOTE_AGENTS_ENTERPRISEstatic intMAX_REMOTE_AGENTS_NONEstatic intMAX_REMOTE_AGENTS_PROFESSIONALstatic intMAX_REMOTE_AGENTS_STANDARDstatic intMAX_REMOTE_AGENTS_UNLIMITED
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanauthenticateLicense(String license)Checks whether or not a specific license is validintgetAllowedNumberOfLocalAgents()Checks the maximum number of local agents allowed for the current license.intgetAllowedNumberOfPlans()Checks the maximum number of plans that can be created for the current license.intgetAllowedNumberOfPlans(String licenseString)Checks the maximum number of plans that can be created for the provided licenseintgetAllowedNumberOfRemoteAgents()Checks the maximum number of remote agents allowed for the current license.@Nullable com.atlassian.extras.api.bamboo.BambooLicensegetLicense()Retrieves the current bamboo license for this instance.booleanisAcademic()booleanisCommercial()booleanisCommunity()booleanisDataCenter()booleanisDemonstration()booleanisDeveloper()booleanisEvaluation()booleanisLicenseValid()Checks whether the existing license is validbooleanisMaintenanceExpiredForBuild()Checks if the maintenance has expired for the given license based on the current build number.booleanisOpenSource()booleanisStarter()voidsetLicense(String license)Sets the license for this Bamboo instance.
-
-
-
Field Detail
-
MAX_PLANS_UNLIMITED
static final int MAX_PLANS_UNLIMITED
- See Also:
- Constant Field Values
-
MAX_REMOTE_AGENTS_NONE
static final int MAX_REMOTE_AGENTS_NONE
- See Also:
- Constant Field Values
-
MAX_REMOTE_AGENTS_STANDARD
static final int MAX_REMOTE_AGENTS_STANDARD
- See Also:
- Constant Field Values
-
MAX_REMOTE_AGENTS_5
static final int MAX_REMOTE_AGENTS_5
- See Also:
- Constant Field Values
-
MAX_REMOTE_AGENTS_PROFESSIONAL
static final int MAX_REMOTE_AGENTS_PROFESSIONAL
- See Also:
- Constant Field Values
-
MAX_REMOTE_AGENTS_ENTERPRISE
static final int MAX_REMOTE_AGENTS_ENTERPRISE
- See Also:
- Constant Field Values
-
MAX_REMOTE_AGENTS_UNLIMITED
static final int MAX_REMOTE_AGENTS_UNLIMITED
- See Also:
- Constant Field Values
-
MAX_LOCAL_AGENTS_BASIC
static final int MAX_LOCAL_AGENTS_BASIC
- See Also:
- Constant Field Values
-
MAX_LOCAL_AGENTS_UNLIMITED
static final int MAX_LOCAL_AGENTS_UNLIMITED
- See Also:
- Constant Field Values
-
MAX_PLANS_STARTER
static final int MAX_PLANS_STARTER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getLicense
@Nullable @Nullable com.atlassian.extras.api.bamboo.BambooLicense getLicense()
Retrieves the current bamboo license for this instance. Looks for version 2 license only- Returns:
- BambooLicense if exists or null if no license exists.
-
setLicense
void setLicense(String license)
Sets the license for this Bamboo instance.- Parameters:
license- string
-
authenticateLicense
boolean authenticateLicense(String license)
Checks whether or not a specific license is valid- Parameters:
license- to check- Returns:
- true if license is valid, otherwise false
-
isLicenseValid
boolean isLicenseValid()
Checks whether the existing license is valid- Returns:
- true if license is valid, otherwise false
-
isMaintenanceExpiredForBuild
boolean isMaintenanceExpiredForBuild()
Checks if the maintenance has expired for the given license based on the current build number.- Returns:
- true if expired otherwise false.
-
getAllowedNumberOfRemoteAgents
int getAllowedNumberOfRemoteAgents()
Checks the maximum number of remote agents allowed for the current license.- Returns:
- The maximum number of remote agents allowed or -1 if not limited
-
getAllowedNumberOfLocalAgents
int getAllowedNumberOfLocalAgents()
Checks the maximum number of local agents allowed for the current license.- Returns:
- The maximum number of local agents allowed or -1 if not limited
-
getAllowedNumberOfPlans
int getAllowedNumberOfPlans()
Checks the maximum number of plans that can be created for the current license.- Returns:
- The maximum number of plans that can be created or -1 if not limited
-
getAllowedNumberOfPlans
int getAllowedNumberOfPlans(String licenseString)
Checks the maximum number of plans that can be created for the provided license- Parameters:
licenseString- to check- Returns:
- The maximum number of plans that can be created or -1 if not limited
-
isStarter
boolean isStarter()
-
isEvaluation
boolean isEvaluation()
-
isAcademic
boolean isAcademic()
-
isDemonstration
boolean isDemonstration()
-
isDeveloper
boolean isDeveloper()
-
isCommunity
boolean isCommunity()
-
isOpenSource
boolean isOpenSource()
-
isCommercial
boolean isCommercial()
-
isDataCenter
boolean isDataCenter()
-
-