public interface RequirementSet extends BambooObject, MinimalRequirementSet, ImmutableRequirementSet
Modifier and Type | Method and Description |
---|---|
void |
addAllRequirements(Iterable<Requirement> requirements)
Adds all the specified requirements to the set
|
void |
addRequirement(Requirement requirement)
Adds a requirement to the set.
|
Requirement |
getRequirement(long id)
Get a requirement from the set via the id.
|
Requirement |
getRequirement(String key,
long ownerId)
Get a requirement from the set via the key and ownerId.
|
Set<Requirement> |
getRequirements()
Get all requirements as a
Set |
Set<Requirement> |
getRequirementsForPlugin(String pluginModuleKey,
long ownerId)
Gets all requirements that match the specified
ImmutableRequirement.getPluginModuleKey() and ImmutableRequirement.getOwnerId() |
Set<Requirement> |
getSystemRequirements(String type)
Gets a subset of requirements which are of a particular system type.
|
boolean |
removeRequirement(ImmutableRequirement requirement)
Removes the requirement from the set.
|
int |
removeRequirements(Iterable<Requirement> requirements)
Removes all the specified
Requirement s from the set. |
int |
removeRequirements(com.google.common.base.Predicate<Requirement> requirementPredicate)
Remove requirements from set if they match the given
Predicate |
setId
getId
@NotNull Set<Requirement> getRequirements()
ImmutableRequirementSet
Set
getRequirements
in interface ImmutableRequirementSet
@Nullable Requirement getRequirement(@NotNull String key, long ownerId)
key
- ownerId
- @Nullable Requirement getRequirement(long id)
getRequirement
in interface ImmutableRequirementSet
id
- Set<Requirement> getRequirementsForPlugin(@NotNull String pluginModuleKey, long ownerId)
ImmutableRequirement.getPluginModuleKey()
and ImmutableRequirement.getOwnerId()
pluginModuleKey
- ownerId
- void addRequirement(@NotNull Requirement requirement)
requirement
- void addAllRequirements(Iterable<Requirement> requirements)
requirements
- boolean removeRequirement(@NotNull ImmutableRequirement requirement)
requirement
- to removeint removeRequirements(@NotNull com.google.common.base.Predicate<Requirement> requirementPredicate)
Predicate
requirementPredicate
- for requirements to be removed from the current RequirementSet
int removeRequirements(@NotNull Iterable<Requirement> requirements)
Requirement
s from the set.requirements
- to remove@NotNull Set<Requirement> getSystemRequirements(String type)
type
- Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.