public class RequirementDetailsImpl extends Object implements RequirementDetails
ImmutableRequirement.MatchType
Constructor and Description |
---|
RequirementDetailsImpl(ImmutableRequirement immutableRequirement,
CapabilityType capabilityType,
String ownerName,
Integer matchingAgents,
Integer matchingImages) |
Modifier and Type | Method and Description |
---|---|
long |
getId() |
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
|
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() |
String |
getOwnerName() |
String |
getPluginModuleKey()
The
ModuleDescriptor.getKey() that is responsible for the Lifecycle of this Requirement |
String |
getRequirementLabel() |
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 ImmutableRequirement immutableRequirement, @NotNull CapabilityType capabilityType, @Nullable String ownerName, Integer matchingAgents, Integer matchingImages)
public long getId()
getId
in interface BambooIdProvider
@NotNull public String getKey()
ImmutableRequirement
Capability
getKey().getKey
in interface ImmutableRequirement
@NotNull public String getRequirementLabel()
getRequirementLabel
in interface RequirementDetails
@Nullable public String getMatchValue()
ImmutableRequirement
The regex must match the Capability
value.
getMatchValue
in interface ImmutableRequirement
@NotNull public 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 String getPluginModuleKey()
ImmutableRequirement
ModuleDescriptor.getKey()
that is responsible for the Lifecycle of this Requirement
getPluginModuleKey
in interface ImmutableRequirement
@Nullable public 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 © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.