public class RequirementDetailsImpl extends Object implements RequirementDetails
ImmutableRequirement.MatchType
Constructor and Description |
---|
RequirementDetailsImpl(@NotNull ImmutableRequirement immutableRequirement,
@NotNull CapabilityType capabilityType,
@Nullable String ownerName,
Integer matchingAgents,
Integer matchingImages) |
Modifier and Type | Method and Description |
---|---|
long |
getId() |
@NotNull String |
getKey()
Represents the requirement.
|
Integer |
getMatchingAgents()
Number of non-elastic agents that match this requirement
|
Integer |
getMatchingImages()
Number of elastic images that match this requirement
|
@Nullable String |
getMatchValue()
A match requirement value.
|
long |
getOwnerId()
The identifier of this
Requirement that is used to identify it uniquely for all Requirement s
created by ImmutableRequirement.getPluginModuleKey() |
@Nullable String |
getOwnerName() |
@Nullable String |
getPluginModuleKey()
The
ModuleDescriptor.getKey() that is responsible for the Lifecycle of this Requirement |
@NotNull String |
getRequirementLabel() |
@NotNull ImmutableRequirement.MatchType |
getTypeOfMatch() |
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.
|
public RequirementDetailsImpl(@NotNull @NotNull ImmutableRequirement immutableRequirement, @NotNull @NotNull CapabilityType capabilityType, @Nullable @Nullable String ownerName, Integer matchingAgents, Integer matchingImages)
public long getId()
getId
in interface BambooIdProvider
@NotNull public @NotNull String getKey()
ImmutableRequirement
Capability
getKey().getKey
in interface ImmutableRequirement
@NotNull public @NotNull String getRequirementLabel()
getRequirementLabel
in interface RequirementDetails
@Nullable public @Nullable String getMatchValue()
ImmutableRequirement
The regex must match the Capability
value.
getMatchValue
in interface ImmutableRequirement
@NotNull public @NotNull ImmutableRequirement.MatchType getTypeOfMatch()
getTypeOfMatch
in interface ImmutableRequirement
public Boolean isReadonly()
ImmutableRequirement
isReadonly
in interface ImmutableRequirement
public long getOwnerId()
ImmutableRequirement
Requirement
that is used to identify it uniquely for all Requirement
s
created by ImmutableRequirement.getPluginModuleKey()
getOwnerId
in interface ImmutableRequirement
@Nullable public @Nullable String getPluginModuleKey()
ImmutableRequirement
ModuleDescriptor.getKey()
that is responsible for the Lifecycle of this Requirement
getPluginModuleKey
in interface ImmutableRequirement
@Nullable public @Nullable String getOwnerName()
getOwnerName
in interface RequirementDetails
public Integer getMatchingAgents()
RequirementDetails
getMatchingAgents
in interface RequirementDetails
public Integer getMatchingImages()
RequirementDetails
getMatchingImages
in interface RequirementDetails
public boolean isRegexMatch()
ImmutableRequirement
isRegexMatch
in interface ImmutableRequirement
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.