Interface ImmutableRequirement
- All Superinterfaces:
BambooIdProvider
- All Known Subinterfaces:
Requirement,RequirementDetails
- All Known Implementing Classes:
AgentAssignmentRequirement,RequirementDetailsImpl,RequirementImpl
Read only view of a requirement
- Since:
- v5.6
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescription@NotNull StringgetKey()Represents the requirement.@Nullable StringA match requirement value.longThe identifier of thisRequirementthat is used to identify it uniquely for allRequirements created bygetPluginModuleKey()@Nullable StringTheModuleDescriptor.getKey()that is responsible for the Lifecycle of thisRequirement@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.Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
-
Method Details
-
getKey
Represents the requirement. Must match exactly to theCapabilitygetKey().- Returns:
-
getMatchValue
A match requirement value. Even "EXISTS" matches are represented as a regex match with match value ".*"The regex must match the
Capabilityvalue.- Returns:
- the value to match.
-
getTypeOfMatch
- Returns:
- representing the type of match
-
isReadonly
Boolean isReadonly()If a requirement is readonly, it cannot be removed through the UI (the backend can do what it wants, however)- Returns:
- true if the requirement cannot be removed or edited via the UI.
-
getOwnerId
long getOwnerId()The identifier of thisRequirementthat is used to identify it uniquely for allRequirements created bygetPluginModuleKey()- Returns:
- ownerId
-
getPluginModuleKey
TheModuleDescriptor.getKey()that is responsible for the Lifecycle of thisRequirement- Returns:
- pluginKey
-
isRegexMatch
boolean isRegexMatch()Is this a regex match requirement or exact match requirement.- Returns:
-