Class HierarchyProviderImpl

    • Constructor Detail

      • HierarchyProviderImpl

        public HierarchyProviderImpl​(@NotNull
                                     ProjectManager projectManager)
    • Method Detail

      • buildTypeBelongsTo

        public boolean buildTypeBelongsTo​(@NotNull
                                          String buildTypeInternalId,
                                          @NotNull
                                          Set<String> projectInternalIds)
        Description copied from interface: HierarchyProvider
        Checks whether given build type belongs to any project in the set (recursively - will always return true if there is _Root in projectInternalIds)
        Specified by:
        buildTypeBelongsTo in interface HierarchyProvider
        Returns:
        true if build type with given internal ID exists and belongs recursively to any project found by projectInternalIds
      • hasAnyChildIn

        public boolean hasAnyChildIn​(@NotNull
                                     String projectInternalId,
                                     @NotNull
                                     Set<String> projectInternalIds,
                                     @NotNull
                                     Set<String> buildTypeInternalIds)
        Description copied from interface: HierarchyProvider
        Checks whether any project in projectInternalIds or build type in buildTypeInternalIds belongs to the project with projectInternalId
        Specified by:
        hasAnyChildIn in interface HierarchyProvider
        Returns:
        true if project with projectInternalId exists and any project in projectInternalIds or any build type in buildTypeInternalIds belongs to the project
      • projectBelongsTo

        public boolean projectBelongsTo​(@NotNull
                                        String projectInternalId,
                                        @NotNull
                                        Set<String> projectInternalIds)
        Description copied from interface: HierarchyProvider
        Checks whether given project belongs to any project in the set (recursively - will always return true if there is _Root in projectInternalIds)
        Specified by:
        projectBelongsTo in interface HierarchyProvider
        Returns:
        true if project with given internal ID exists and belongs recursively to any project found by projectInternalIds