public interface

BambooLicenseManager

com.atlassian.bamboo.license.BambooLicenseManager
Known Indirect Subclasses

Summary

Constants
int MAX_LOCAL_AGENTS_BASIC
int MAX_LOCAL_AGENTS_UNLIMITED
int MAX_PLANS_STARTER
int MAX_PLANS_UNLIMITED
int MAX_REMOTE_AGENTS_5
int MAX_REMOTE_AGENTS_ENTERPRISE
int MAX_REMOTE_AGENTS_NONE
int MAX_REMOTE_AGENTS_PROFESSIONAL
int MAX_REMOTE_AGENTS_STANDARD
int MAX_REMOTE_AGENTS_UNLIMITED
Public Methods
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.
@Nullable BambooLicense getLicense()
Retrieves the current bamboo license for this instance.
boolean isAcademic()
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.

Constants

public static final int MAX_LOCAL_AGENTS_BASIC

Constant Value: 1 (0x00000001)

public static final int MAX_LOCAL_AGENTS_UNLIMITED

Constant Value: -1 (0xffffffff)

public static final int MAX_PLANS_STARTER

Constant Value: 10 (0x0000000a)

public static final int MAX_PLANS_UNLIMITED

Constant Value: -1 (0xffffffff)

public static final int MAX_REMOTE_AGENTS_5

Constant Value: 5 (0x00000005)

public static final int MAX_REMOTE_AGENTS_ENTERPRISE

Constant Value: 25 (0x00000019)

public static final int MAX_REMOTE_AGENTS_NONE

Constant Value: 0 (0x00000000)

public static final int MAX_REMOTE_AGENTS_PROFESSIONAL

Constant Value: 10 (0x0000000a)

public static final int MAX_REMOTE_AGENTS_STANDARD

Constant Value: 1 (0x00000001)

public static final int MAX_REMOTE_AGENTS_UNLIMITED

Constant Value: 100 (0x00000064)

Public Methods

public 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

public 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

public 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

public 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

public 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

@Nullable public 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.

public boolean isAcademic ()

public boolean isCommercial ()

public boolean isCommunity ()

public boolean isDemonstration ()

public boolean isDeveloper ()

public boolean isEvaluation ()

public boolean isLicenseValid ()

Checks whether the existing license is valid

Returns
  • true if license is valid, otherwise false

public boolean isMaintenanceExpiredForBuild ()

Checks if the maintenance has expired for the given license based on the current build number.

Returns
  • true if expired otherwise false.

public boolean isOpenSource ()

public boolean isStarter ()

public void setLicense (String license)

Sets the license for this Bamboo instance.

Parameters
license string