Interface Requirement
-
- All Superinterfaces:
BambooIdProvider,BambooObject,ImmutableRequirement
- All Known Implementing Classes:
AgentAssignmentRequirement,RequirementImpl
public interface Requirement extends BambooObject, ImmutableRequirement
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.atlassian.bamboo.v2.build.requirement.ImmutableRequirement
ImmutableRequirement.MatchType
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleanbelongsToPlugin()StringgetMatchType()Deprecated.since 5.6 useImmutableRequirement.getTypeOfMatch()instead@Nullable RequirementSetgetRequirementSet()booleanisRegexMatch()Is this a regex match requirement or exact match requirement.booleanisSystemRequirement()Is this a system requirement? System requirements are builder/jdk requirements which cannot be removed from the plan.voidsetKey(String key)voidsetOwnerId(long uniqueIdentifier)voidsetPluginModuleKey(String pluginModuleKey)voidsetReadonly(Boolean readonly)voidsetRequirementSet(RequirementSet requirementSet)-
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
-
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
-
Methods inherited from interface com.atlassian.bamboo.v2.build.requirement.ImmutableRequirement
getKey, getMatchValue, getOwnerId, getPluginModuleKey, getTypeOfMatch, isReadonly
-
-
-
-
Field Detail
-
EXISTS
static final String EXISTS
- See Also:
- Constant Field Values
-
EQUALS
static final String EQUALS
- See Also:
- Constant Field Values
-
REGEX
static final String REGEX
- See Also:
- Constant Field Values
-
-
Method Detail
-
setKey
void setKey(String key)
-
isRegexMatch
boolean isRegexMatch()
Is this a regex match requirement or exact match requirement.- Specified by:
isRegexMatchin interfaceImmutableRequirement- Returns:
-
isSystemRequirement
boolean isSystemRequirement()
Is this a system requirement? System requirements are builder/jdk requirements which cannot be removed from the plan.- Returns:
-
setReadonly
void setReadonly(Boolean readonly)
-
setPluginModuleKey
void setPluginModuleKey(String pluginModuleKey)
-
setOwnerId
void setOwnerId(long uniqueIdentifier)
-
belongsToPlugin
boolean belongsToPlugin()
- Returns:
- true if this
Requirementbelongs to a plugin
-
getRequirementSet
@Nullable @Nullable RequirementSet getRequirementSet()
- Returns:
- requirementSet that this
Requirementis linked to
-
setRequirementSet
void setRequirementSet(RequirementSet requirementSet)
-
getMatchType
@Deprecated String getMatchType()
Deprecated.since 5.6 useImmutableRequirement.getTypeOfMatch()insteadString representation of the type of match the requirement needs. This us representitive of what the users see in the UI.- Returns:
-
-