Class RequirementDetailsImpl
java.lang.Object
com.atlassian.bamboo.v2.build.requirement.RequirementDetailsImpl
- All Implemented Interfaces:
BambooIdProvider,ImmutableRequirement,RequirementDetails
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.bamboo.v2.build.requirement.ImmutableRequirement
ImmutableRequirement.MatchType -
Constructor Summary
ConstructorsConstructorDescriptionRequirementDetailsImpl(@NotNull ImmutableRequirement immutableRequirement, @NotNull CapabilityType capabilityType, @Nullable String ownerName, Integer matchingAgents, Integer matchingImages, Integer matchingEphemeralAgentTemplates) -
Method Summary
Modifier and TypeMethodDescriptionlonggetId()@NotNull StringgetKey()Represents the requirement.Number of non-elastic agents that match this requirementNumber of ephemeral agent templates that match this requirementNumber of elastic images that match this requirement@Nullable StringA match requirement value.longThe identifier of thisRequirementthat is used to identify it uniquely for allRequirements created byImmutableRequirement.getPluginModuleKey()@Nullable String@Nullable StringTheModuleDescriptor.getKey()that is responsible for the Lifecycle of thisRequirement@NotNull String@NotNull ImmutableRequirement.MatchTypeIf a requirement is readonly, it cannot be removed through the UI (the backend can do what it wants, however)booleanIs this a regex match requirement or exact match requirement.
-
Constructor Details
-
RequirementDetailsImpl
public RequirementDetailsImpl(@NotNull @NotNull ImmutableRequirement immutableRequirement, @NotNull @NotNull CapabilityType capabilityType, @Nullable @Nullable String ownerName, Integer matchingAgents, Integer matchingImages, Integer matchingEphemeralAgentTemplates)
-
-
Method Details
-
getId
public long getId()- Specified by:
getIdin interfaceBambooIdProvider
-
getKey
Description copied from interface:ImmutableRequirementRepresents the requirement. Must match exactly to theCapabilitygetKey().- Specified by:
getKeyin interfaceImmutableRequirement- Returns:
-
getRequirementLabel
- Specified by:
getRequirementLabelin interfaceRequirementDetails- Returns:
- User friendly name of the capability that the requirement requires.
-
getMatchValue
Description copied from interface:ImmutableRequirementA match requirement value. Even "EXISTS" matches are represented as a regex match with match value ".*"The regex must match the
Capabilityvalue.- Specified by:
getMatchValuein interfaceImmutableRequirement- Returns:
- the value to match.
-
getTypeOfMatch
- Specified by:
getTypeOfMatchin interfaceImmutableRequirement- Returns:
- representing the type of match
-
isReadonly
Description copied from interface:ImmutableRequirementIf a requirement is readonly, it cannot be removed through the UI (the backend can do what it wants, however)- Specified by:
isReadonlyin interfaceImmutableRequirement- Returns:
- true if the requirement cannot be removed or edited via the UI.
-
getOwnerId
public long getOwnerId()Description copied from interface:ImmutableRequirementThe identifier of thisRequirementthat is used to identify it uniquely for allRequirements created byImmutableRequirement.getPluginModuleKey()- Specified by:
getOwnerIdin interfaceImmutableRequirement- Returns:
- ownerId
-
getPluginModuleKey
Description copied from interface:ImmutableRequirementTheModuleDescriptor.getKey()that is responsible for the Lifecycle of thisRequirement- Specified by:
getPluginModuleKeyin interfaceImmutableRequirement- Returns:
- pluginKey
-
getOwnerName
- Specified by:
getOwnerNamein interfaceRequirementDetails- Returns:
- The name of the task that owns this requirement
-
getMatchingAgents
Description copied from interface:RequirementDetailsNumber of non-elastic agents that match this requirement- Specified by:
getMatchingAgentsin interfaceRequirementDetails- Returns:
-
getMatchingImages
Description copied from interface:RequirementDetailsNumber of elastic images that match this requirement- Specified by:
getMatchingImagesin interfaceRequirementDetails- Returns:
-
getMatchingEphemeralAgentTemplates
Description copied from interface:RequirementDetailsNumber of ephemeral agent templates that match this requirement- Specified by:
getMatchingEphemeralAgentTemplatesin interfaceRequirementDetails- Returns:
-
isRegexMatch
public boolean isRegexMatch()Description copied from interface:ImmutableRequirementIs this a regex match requirement or exact match requirement.- Specified by:
isRegexMatchin interfaceImmutableRequirement- Returns:
-