Package jetbrains.buildServer.vcs.impl
Interface RelatedConfigurations
-
public interface RelatedConfigurations
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
consumeRelations(BiConsumer<String,RelationType> consumer)
Calls the specified consumer, pass it buildType internalId and relation as argumentsvoid
consumeRelations(BuildTypeIds ids, BiConsumer<String,RelationType> consumer)
Accepts the build configuration ids in the form ofBuildTypeIds
intersects it with ids of the build configurations for which there are relations stored and calls consumer for all intersected ids.boolean
containsRelation(String buildTypeId, RelationType relation)
Returns true if there is a relation of specified type to the given buildTypeMap<String,RelationType>
getBuildTypeRelations()
BuildTypeIds
getRelatedBuildTypeIds()
List<String>
getRelatedConfigurationsIds(boolean ignoreOverridden)
Returns related buildType idsRelationType
getRelation(String buildTypeId)
Returns the relation to the buildType with the specified buildType internal id, or null if no relation to the buildType existsList<RelationType>
getRelationTypes()
boolean
isRelatedTo(String buildTypeId, boolean ignoreOverridden)
Return true if there is some relation to the buildType with the specified internal idboolean
isRelatedTo(String buildTypeId, Predicate<RelationType> relationPredicate)
void
processRelations(BiProcessor<String,RelationType> processor)
-
-
-
Method Detail
-
getRelatedConfigurationsIds
@NotNull List<String> getRelatedConfigurationsIds(boolean ignoreOverridden)
Returns related buildType ids- Parameters:
ignoreOverridden
- when true buildType ids with relationRelationType.OVERRIDDEN_ROOT
will be excluded from result- Returns:
- see above
-
isRelatedTo
boolean isRelatedTo(@NotNull String buildTypeId, boolean ignoreOverridden)
Return true if there is some relation to the buildType with the specified internal id- Parameters:
buildTypeId
- internal id of buildType of interestignoreOverridden
- when true relations of typeRelationType.OVERRIDDEN_ROOT
will be ignored, i.e. result will be false- Returns:
- see above
-
isRelatedTo
boolean isRelatedTo(@NotNull String buildTypeId, @NotNull Predicate<RelationType> relationPredicate)
-
getRelation
@Nullable RelationType getRelation(@NotNull String buildTypeId)
Returns the relation to the buildType with the specified buildType internal id, or null if no relation to the buildType exists- Parameters:
buildTypeId
- buildType internal id- Returns:
- see above
-
getBuildTypeRelations
@NotNull Map<String,RelationType> getBuildTypeRelations()
- Returns:
- map of relations (internal buildType id ->
RelationType
)
-
containsRelation
boolean containsRelation(@NotNull String buildTypeId, @NotNull RelationType relation)
Returns true if there is a relation of specified type to the given buildType- Parameters:
buildTypeId
- buildType internal idrelation
- relation of interest- Returns:
- see above
-
consumeRelations
void consumeRelations(@NotNull BiConsumer<String,RelationType> consumer)
Calls the specified consumer, pass it buildType internalId and relation as arguments- Parameters:
consumer
- consumer to call
-
consumeRelations
void consumeRelations(@NotNull BuildTypeIds ids, @NotNull BiConsumer<String,RelationType> consumer)
Accepts the build configuration ids in the form ofBuildTypeIds
intersects it with ids of the build configurations for which there are relations stored and calls consumer for all intersected ids.- Parameters:
ids
-consumer
-
-
processRelations
void processRelations(@NotNull BiProcessor<String,RelationType> processor)
-
getRelatedBuildTypeIds
BuildTypeIds getRelatedBuildTypeIds()
-
getRelationTypes
@NotNull List<RelationType> getRelationTypes()
-
-