|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RequirementSet
Method Summary | |
---|---|
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)
Deprecated. since 3.1 key is not unique |
Requirement |
getRequirement(String key,
long ownerId)
Get a requirement from the set via the key and ownerId. |
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. |
void |
removeRequirement(String key)
Deprecated. since 3.1 use removeRequirement(ImmutableRequirement) |
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 |
Methods inherited from interface com.atlassian.bamboo.core.BambooObject |
---|
setId |
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider |
---|
getId |
Methods inherited from interface com.atlassian.bamboo.v2.build.agent.capability.MinimalRequirementSet |
---|
getRequirements |
Method Detail |
---|
@Deprecated @Nullable Requirement getRequirement(@NotNull String key)
key
-
@Nullable Requirement getRequirement(@NotNull String key, long ownerId)
key
- ownerId
-
@Nullable Requirement getRequirement(long id)
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
- @Deprecated void removeRequirement(@NotNull String key)
removeRequirement(ImmutableRequirement)
key
- boolean removeRequirement(@NotNull ImmutableRequirement requirement)
requirement
- to remove
int 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
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |