Package jetbrains.buildServer.vcs.impl
Interface RelatedConfigurations
-
public interface RelatedConfigurations
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconsumeRelations(BiConsumer<String,RelationType> consumer)Calls the specified consumer, pass it buildType internalId and relation as argumentsvoidconsumeRelations(BuildTypeIds ids, BiConsumer<String,RelationType> consumer)Accepts the build configuration ids in the form ofBuildTypeIdsintersects it with ids of the build configurations for which there are relations stored and calls consumer for all intersected ids.booleancontainsRelation(String buildTypeId, RelationType relation)Returns true if there is a relation of specified type to the given buildTypeMap<String,RelationType>getBuildTypeRelations()BuildTypeIdsgetRelatedBuildTypeIds()List<String>getRelatedConfigurationsIds(boolean ignoreOverridden)Returns related buildType idsRelationTypegetRelation(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()booleanisRelatedTo(String buildTypeId, boolean ignoreOverridden)Return true if there is some relation to the buildType with the specified internal idbooleanisRelatedTo(String buildTypeId, Predicate<RelationType> relationPredicate)voidprocessRelations(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_ROOTwill 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_ROOTwill 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 ofBuildTypeIdsintersects 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()
-
-