Class HierarchyProviderImpl
- java.lang.Object
-
- jetbrains.buildServer.notification.impl.HierarchyProviderImpl
-
- All Implemented Interfaces:
HierarchyProvider
public class HierarchyProviderImpl extends Object implements HierarchyProvider
-
-
Constructor Summary
Constructors Constructor Description HierarchyProviderImpl(ProjectManager projectManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
buildTypeBelongsTo(String buildTypeInternalId, Set<String> projectInternalIds)
Checks whether given build type belongs to any project in the set (recursively - will always return true if there is _Root in projectInternalIds)Iterator<String>
getProjectPath(String projectInternalId)
boolean
hasAnyChildIn(String projectInternalId, Set<String> projectInternalIds, Set<String> buildTypeInternalIds)
Checks whether any project in projectInternalIds or build type in buildTypeInternalIds belongs to the project with projectInternalIdboolean
projectBelongsTo(String projectInternalId, Set<String> projectInternalIds)
Checks whether given project belongs to any project in the set (recursively - will always return true if there is _Root in projectInternalIds)
-
-
-
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 interfaceHierarchyProvider
- 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 interfaceHierarchyProvider
- 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 interfaceHierarchyProvider
- Returns:
- true if project with given internal ID exists and belongs recursively to any project found by projectInternalIds
-
getProjectPath
@NotNull public Iterator<String> getProjectPath(@NotNull String projectInternalId)
- Specified by:
getProjectPath
in interfaceHierarchyProvider
-
-