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
ConstructorDescriptionRequirementDetailsImpl
(@NotNull ImmutableRequirement immutableRequirement, @NotNull CapabilityType capabilityType, @Nullable String ownerName, Integer matchingAgents, Integer matchingImages, Integer matchingEphemeralAgentTemplates) -
Method Summary
Modifier and TypeMethodDescriptionlong
getId()
@NotNull String
getKey()
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 String
A match requirement value.long
The identifier of thisRequirement
that is used to identify it uniquely for allRequirement
s created byImmutableRequirement.getPluginModuleKey()
@Nullable String
@Nullable String
TheModuleDescriptor.getKey()
that is responsible for the Lifecycle of thisRequirement
@NotNull String
@NotNull ImmutableRequirement.MatchType
If a requirement is readonly, it cannot be removed through the UI (the backend can do what it wants, however)boolean
Is 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:
getId
in interfaceBambooIdProvider
-
getKey
Description copied from interface:ImmutableRequirement
Represents the requirement. Must match exactly to theCapability
getKey().- Specified by:
getKey
in interfaceImmutableRequirement
- Returns:
-
getRequirementLabel
- Specified by:
getRequirementLabel
in interfaceRequirementDetails
- Returns:
- User friendly name of the capability that the requirement requires.
-
getMatchValue
Description copied from interface:ImmutableRequirement
A match requirement value. Even "EXISTS" matches are represented as a regex match with match value ".*"The regex must match the
Capability
value.- Specified by:
getMatchValue
in interfaceImmutableRequirement
- Returns:
- the value to match.
-
getTypeOfMatch
- Specified by:
getTypeOfMatch
in interfaceImmutableRequirement
- Returns:
- representing the type of match
-
isReadonly
Description copied from interface:ImmutableRequirement
If a requirement is readonly, it cannot be removed through the UI (the backend can do what it wants, however)- Specified by:
isReadonly
in interfaceImmutableRequirement
- Returns:
- true if the requirement cannot be removed or edited via the UI.
-
getOwnerId
public long getOwnerId()Description copied from interface:ImmutableRequirement
The identifier of thisRequirement
that is used to identify it uniquely for allRequirement
s created byImmutableRequirement.getPluginModuleKey()
- Specified by:
getOwnerId
in interfaceImmutableRequirement
- Returns:
- ownerId
-
getPluginModuleKey
Description copied from interface:ImmutableRequirement
TheModuleDescriptor.getKey()
that is responsible for the Lifecycle of thisRequirement
- Specified by:
getPluginModuleKey
in interfaceImmutableRequirement
- Returns:
- pluginKey
-
getOwnerName
- Specified by:
getOwnerName
in interfaceRequirementDetails
- Returns:
- The name of the task that owns this requirement
-
getMatchingAgents
Description copied from interface:RequirementDetails
Number of non-elastic agents that match this requirement- Specified by:
getMatchingAgents
in interfaceRequirementDetails
- Returns:
-
getMatchingImages
Description copied from interface:RequirementDetails
Number of elastic images that match this requirement- Specified by:
getMatchingImages
in interfaceRequirementDetails
- Returns:
-
getMatchingEphemeralAgentTemplates
Description copied from interface:RequirementDetails
Number of ephemeral agent templates that match this requirement- Specified by:
getMatchingEphemeralAgentTemplates
in interfaceRequirementDetails
- Returns:
-
isRegexMatch
public boolean isRegexMatch()Description copied from interface:ImmutableRequirement
Is this a regex match requirement or exact match requirement.- Specified by:
isRegexMatch
in interfaceImmutableRequirement
- Returns:
-