public interface

Requirement

implements BambooObject
com.atlassian.bamboo.v2.build.agent.capability.Requirement
Known Indirect Subclasses

Summary

Constants
String EQUALS
String EXISTS
String REGEX
Public Methods
boolean belongsToPlugin()
@NotNull String getKey()
Represents the requirement.
String getMatchType()
@Nullable String getMatchValue()
A match requirement value.
long getOwnerId()
The identifier of this Requirement that is used to identify it uniquely for all Requirements created by getPluginModuleKey()
@Nullable String getPluginModuleKey()
The getKey() that is responsible for the Lifecycle of this Requirement
@Nullable RequirementSet getRequirementSet()
Boolean isReadonly()
If a requirement is readonly, it cannot be removed through the UI (the backend can do what it wants, however)
boolean isRegexMatch()
Is this a regex match requirement or exact match requirement.
boolean isSystemRequirement()
Is this a system requirement? System requirements are builder/jdk requirements which cannot be removed from the plan.
void setKey(String key)
void setOwnerId(long uniqueIdentifier)
void setPluginModuleKey(String pluginModuleKey)
void setReadonly(Boolean readonly)
void setRequirementSet(RequirementSet requirementSet)
[Expand]
Inherited Methods
From interface com.atlassian.bamboo.core.BambooIdProvider
From interface com.atlassian.bamboo.core.BambooObject

Constants

public static final String EQUALS

Constant Value: "equal"

public static final String EXISTS

Constant Value: "exist"

public static final String REGEX

Constant Value: "match"

Public Methods

public boolean belongsToPlugin ()

Returns

@NotNull public String getKey ()

Represents the requirement. Must match exactly to the Capability getKey().

public String getMatchType ()

@Nullable public String getMatchValue ()

A match requirement value. The regex must match the Capability value.

public long getOwnerId ()

The identifier of this Requirement that is used to identify it uniquely for all Requirements created by getPluginModuleKey()

Returns
  • ownerId

@Nullable public String getPluginModuleKey ()

The getKey() that is responsible for the Lifecycle of this Requirement

Returns
  • pluginKey

@Nullable public RequirementSet getRequirementSet ()

Returns

public Boolean isReadonly ()

If a requirement is readonly, it cannot be removed through the UI (the backend can do what it wants, however)

public boolean isRegexMatch ()

Is this a regex match requirement or exact match requirement.

public boolean isSystemRequirement ()

Is this a system requirement? System requirements are builder/jdk requirements which cannot be removed from the plan.

public void setKey (String key)

public void setOwnerId (long uniqueIdentifier)

public void setPluginModuleKey (String pluginModuleKey)

public void setReadonly (Boolean readonly)

public void setRequirementSet (RequirementSet requirementSet)