Package jetbrains.buildServer.util
Class ContextProjectInfo
- java.lang.Object
-
- jetbrains.buildServer.util.ContextProjectInfo
-
public final class ContextProjectInfo extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOLLAPSED_PATH_PREFIXstatic StringCONTEXT_PROJECT_ATTR
-
Constructor Summary
Constructors Constructor Description ContextProjectInfo(SProject project, SProject contextProject)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ContextProjectInfocreateContextProjectInfo(SBuildType buildType, SProject contextProject)static ContextProjectInfocreateContextProjectInfo(SProject project, SProject contextProject)static SBuildTypegetBuildType(SBuild build)static SBuildTypegetBuildType(SQueuedBuild build)List<SProject>getCollapsedPath()static StringgetDependentBuildTypeName(SBuild currentBuild, SBuildType dependentBuildType)Returns shortened path to the depended build.static StringgetDependentBuildTypeName(SBuildType currentBuildType, SBuildType dependentBuildType)Returns shortened path to the depended build type.static StringgetDependentBuildTypeName(SBuildType dependentBuildType, SProject contextProject)Returns shortened path to the depended build type.SProjectgetLastCollapsed()List<SProject>getVisiblePath()StringgetVisiblePathAsText()booleanisCollapsed()At least one project in the path is collapsedbooleanisFullyCollapsed()All projects in the path are collapsed
-
-
-
Field Detail
-
CONTEXT_PROJECT_ATTR
public static final String CONTEXT_PROJECT_ATTR
- See Also:
- Constant Field Values
-
COLLAPSED_PATH_PREFIX
public static final String COLLAPSED_PATH_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
createContextProjectInfo
public static ContextProjectInfo createContextProjectInfo(@NotNull SBuildType buildType, @Nullable SProject contextProject)
-
createContextProjectInfo
public static ContextProjectInfo createContextProjectInfo(@NotNull SProject project, @Nullable SProject contextProject)
-
isCollapsed
public boolean isCollapsed()
At least one project in the path is collapsed- Returns:
- true if at least one project in the path is collapsed
-
isFullyCollapsed
public boolean isFullyCollapsed()
All projects in the path are collapsed- Returns:
- true if all projects in the path are collapsed
-
getLastCollapsed
@Nullable public SProject getLastCollapsed()
-
getVisiblePathAsText
public String getVisiblePathAsText()
-
getDependentBuildTypeName
public static String getDependentBuildTypeName(@Nullable SBuild currentBuild, @NotNull SBuildType dependentBuildType)
Returns shortened path to the depended build. Common project path will be considered as a collapsible part- Parameters:
currentBuild- - build context, when null - dependentBuildType full name will be returned without considering any current contextdependentBuildType- - build type which path we want to shorten based on actual build context- Returns:
- shortened path to the depended build
-
getDependentBuildTypeName
public static String getDependentBuildTypeName(@NotNull SBuildType currentBuildType, @NotNull SBuildType dependentBuildType)
Returns shortened path to the depended build type. Common project path will be considered as a collapsible part- Parameters:
currentBuildType- - build type to which tha build belongs to; when null - dependentBuildType full name will be returned without considering any current contextdependentBuildType- - build type which path we want to shorten based on actual build context- Returns:
- see above
-
getDependentBuildTypeName
public static String getDependentBuildTypeName(@NotNull SBuildType dependentBuildType, @Nullable SProject contextProject)
Returns shortened path to the depended build type. Common project path will be considered as a collapsible part- Parameters:
dependentBuildType- - build type which path we want to shorten based on actual project contextcontextProject- - context project- Returns:
- see above
-
getBuildType
@Nullable public static SBuildType getBuildType(@NotNull SQueuedBuild build)
-
getBuildType
@Nullable public static SBuildType getBuildType(@NotNull SBuild build)
-
-