Class VcsSettingsBeanImpl
- java.lang.Object
-
- jetbrains.buildServer.controllers.admin.projects.VcsSettingsBean
-
- jetbrains.buildServer.controllers.admin.projects.VcsSettingsBeanImpl
-
- Direct Known Subclasses:
BuildTypeVcsSettingsBean
public class VcsSettingsBeanImpl extends VcsSettingsBean
This bean contains build configuration VCS settings.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VcsSettingsBeanImpl.BuildTypeVcsRoots
-
Field Summary
-
Fields inherited from class jetbrains.buildServer.controllers.admin.projects.VcsSettingsBean
myVcsManager, VCS_ROOT_COMPARATOR
-
-
Constructor Summary
Constructors Constructor Description VcsSettingsBeanImpl(SProject project, BuildTypeTemplate buildTypeTemplate, VcsManager vcsManager, ProjectManager projectManager, VcsAccessFactory vcsAccessFactory, VcsRootInstancesManagerEx vcsRootInstancesManager)
Create fromBuildTypeTemplate
VcsSettingsBeanImpl(SProject project, SBuildType buildType, VcsManager vcsManager, ProjectManager projectManager, VcsAccessFactory vcsAccessFactory, VcsRootInstancesManagerEx vcsRootInstancesManager)
Create fromSBuildType
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<VcsSettingsBeanImpl.BuildTypeVcsRoots>
getChildDependenciesVcsRoots()
Collect VCS roots attached to child dependencies (including transitive dependencies) of this build type.Browser
getVcsBrowser(boolean dirsOnly, String vcsRootId)
boolean
isDefaultExcluded()
protected boolean
supportsLabeling(SVcsRoot root)
-
Methods inherited from class jetbrains.buildServer.controllers.admin.projects.VcsSettingsBean
addVcsRoot, getAttachableVcsRoots, getAvailableCheckoutTypes, getAvailableVcsTypes, getAvailableVcsTypes, getCheckoutDir, getCheckoutType, getCheckoutTypeDescription, getOwnerProject, getPopularVcsRoots, getProjectsMap, getVcsRoots, getVcsRootsCollection, getVcsRootsWithLabelingSupport, isShowIncludeRulesIntersectWarning, isShowInefficientCheckoutRulesWarning, isVcsBrowsingPossible, setCheckoutRules
-
-
-
-
Constructor Detail
-
VcsSettingsBeanImpl
public VcsSettingsBeanImpl(@NotNull SProject project, @NotNull SBuildType buildType, @NotNull VcsManager vcsManager, @NotNull ProjectManager projectManager, @NotNull VcsAccessFactory vcsAccessFactory, @NotNull VcsRootInstancesManagerEx vcsRootInstancesManager)
Create fromSBuildType
-
VcsSettingsBeanImpl
public VcsSettingsBeanImpl(@NotNull SProject project, @NotNull BuildTypeTemplate buildTypeTemplate, @NotNull VcsManager vcsManager, @NotNull ProjectManager projectManager, @NotNull VcsAccessFactory vcsAccessFactory, @NotNull VcsRootInstancesManagerEx vcsRootInstancesManager)
Create fromBuildTypeTemplate
-
-
Method Detail
-
supportsLabeling
protected boolean supportsLabeling(SVcsRoot root)
- Specified by:
supportsLabeling
in classVcsSettingsBean
-
isDefaultExcluded
public boolean isDefaultExcluded()
- Specified by:
isDefaultExcluded
in classVcsSettingsBean
-
getVcsBrowser
@Nullable public Browser getVcsBrowser(boolean dirsOnly, @Nullable String vcsRootId)
- Specified by:
getVcsBrowser
in classVcsSettingsBean
- Parameters:
dirsOnly
- if true, directory-only browser will be returnedvcsRootId
- external id of VCS root, if not null then VCS browser is created for this VCS root only (checkout rules are ignored)- Returns:
- VCS browser if this VCS roots are attached to this bean and listing of files is supported by attached VCS roots, otherwise returns null
-
getChildDependenciesVcsRoots
@NotNull public List<VcsSettingsBeanImpl.BuildTypeVcsRoots> getChildDependenciesVcsRoots()
Collect VCS roots attached to child dependencies (including transitive dependencies) of this build type. Note that build type own vcs roots are not included. Duplicated VCS roots that are attached to the several dependencies are returned only once - for the dependency nearest to the top of build chain.- Returns:
- list of build types with vcs roots attached to them. This list is sorted by distance from the root of the build chain
-
-