Interface HierarchyProvider
-
- All Known Implementing Classes:
HierarchyProviderImpl
public interface HierarchyProviderFacade interface for ProjectManager and Project to easily mock project structure
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanbuildTypeBelongsTo(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)booleanhasAnyChildIn(String projectInternalId, Set<String> projectInternalIds, Set<String> buildTypeInternalIds)Checks whether any project in projectInternalIds or build type in buildTypeInternalIds belongs to the project with projectInternalIdbooleanprojectBelongsTo(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)
-
-
-
Method Detail
-
buildTypeBelongsTo
boolean buildTypeBelongsTo(@NotNull String buildTypeInternalId, @NotNull 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)- Parameters:
buildTypeInternalId-projectInternalIds-- Returns:
- true if build type with given internal ID exists and belongs recursively to any project found by projectInternalIds
-
hasAnyChildIn
boolean hasAnyChildIn(@NotNull String projectInternalId, @NotNull Set<String> projectInternalIds, @NotNull Set<String> buildTypeInternalIds)Checks whether any project in projectInternalIds or build type in buildTypeInternalIds belongs to the project with projectInternalId- Parameters:
projectInternalId-projectInternalIds-buildTypeInternalIds-- Returns:
- true if project with projectInternalId exists and any project in projectInternalIds or any build type in buildTypeInternalIds belongs to the project
-
projectBelongsTo
boolean projectBelongsTo(@NotNull String projectInternalId, @NotNull 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)- Parameters:
projectInternalId-projectInternalIds-- Returns:
- true if project with given internal ID exists and belongs recursively to any project found by projectInternalIds
-
-