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 boolean
belongsToPlugin()
String
getMatchType()
Deprecated.since 5.6 useImmutableRequirement.getTypeOfMatch()
instead@Nullable RequirementSet
getRequirementSet()
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)
-
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:
isRegexMatch
in 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
Requirement
belongs to a plugin
-
getRequirementSet
@Nullable @Nullable RequirementSet getRequirementSet()
- Returns:
- requirementSet that this
Requirement
is 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:
-
-