Interface RelatedConfigurations


  • public interface RelatedConfigurations
    • Method Detail

      • getRelatedConfigurationsIds

        @NotNull
        List<String> getRelatedConfigurationsIds​(boolean ignoreOverridden)
        Returns related buildType ids
        Parameters:
        ignoreOverridden - when true buildType ids with relation RelationType.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 interest
        ignoreOverridden - when true relations of type RelationType.OVERRIDDEN_ROOT will be ignored, i.e. result will be false
        Returns:
        see above
      • 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
      • 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 id
        relation - 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 of BuildTypeIds intersects it with ids of the build configurations for which there are relations stored and calls consumer for all intersected ids.
        Parameters:
        ids -
        consumer -
      • getRelatedBuildTypeIds

        BuildTypeIds getRelatedBuildTypeIds()