public interface VcsRootsManager
Modifier and Type | Method and Description |
---|---|
SVcsRoot |
findRootByExternalId(java.lang.String vcsRootExternalId)
Returns vcs root with specified external id.
|
SVcsRoot |
findRootById(long id)
returns vcs root with specified id
|
SVcsRoot |
findRootByIdAndVersion(long rootId,
long versionId)
Deprecated.
since 6.5
|
SVcsRoot |
findRootByName(java.lang.String name)
Deprecated.
since 8.0
|
java.util.Collection<? extends SVcsRoot> |
findRootsByVcsName(java.lang.String vcsSupportName)
Returns collection of VCS roots corresponding to VcsSupport with specified
name (see
VcsSupportConfig.getName() ) |
java.util.List<SVcsRoot> |
findUnusedVcsRootsByScope(VcsRootScope scope)
Returns list of VCS roots having specified scope and having no usages in build configurations.
|
java.util.Collection<? extends SVcsRoot> |
findVcsRoots(java.util.Collection<java.lang.Long> ids)
returns available vcs roots with the given ids
|
java.util.List<SVcsRoot> |
findVcsRootsByScope(VcsRootScope scope)
Returns all VCS roots having specified scope.
|
java.util.List<SBuildType> |
getAllConfigurationUsages(VcsRoot root)
Returns all configurations which use the root.
|
java.util.List<SProject> |
getAllProjectUsages(VcsRoot root)
returns all project which contain configurations which use the root.
|
java.util.List<SVcsRoot> |
getAllRegisteredVcsRoots()
returns list of all registered vcs roots
|
java.util.List<BuildTypeTemplate> |
getAllTemplateUsages(VcsRoot root)
Returns all templates with specified vcs root attached.
|
int |
getNumberOfUsagesInConfigurations(VcsRoot root)
Returns number of usages of the specified VCS root in build configurations
|
int |
getNumberOfUsagesInProjects(VcsRoot root)
Returns number of usages of this VCS root in projects build configurations and templates
|
@Nullable SVcsRoot findRootById(long id)
id
- vcs root id@Nullable SVcsRoot findRootByExternalId(@Nullable java.lang.String vcsRootExternalId)
externalId
.vcsRootExternalId
- vcs root external id@NotNull java.util.List<SVcsRoot> getAllRegisteredVcsRoots()
@NotNull java.util.List<SVcsRoot> findVcsRootsByScope(@NotNull VcsRootScope scope)
scope
- scope of VCS rootsjava.util.List<SVcsRoot> findUnusedVcsRootsByScope(@NotNull VcsRootScope scope)
scope
- scope to filter VCS roots@NotNull java.util.List<SProject> getAllProjectUsages(@NotNull VcsRoot root)
ProjectManager.getProjectsComparator()
.root
- specified vcs rootint getNumberOfUsagesInProjects(VcsRoot root)
root
- VCS root whose usages should be foundjava.util.List<SBuildType> getAllConfigurationUsages(VcsRoot root)
root
- specified vcs root@NotNull java.util.List<BuildTypeTemplate> getAllTemplateUsages(@NotNull VcsRoot root)
root
- vcs rootint getNumberOfUsagesInConfigurations(VcsRoot root)
root
- VCS root whose usages are searched for@Deprecated @Nullable SVcsRoot findRootByName(@NotNull java.lang.String name)
name
- name of VcsRoot@NotNull java.util.Collection<? extends SVcsRoot> findVcsRoots(@NotNull java.util.Collection<java.lang.Long> ids)
ids
- root ids@NotNull java.util.Collection<? extends SVcsRoot> findRootsByVcsName(java.lang.String vcsSupportName)
VcsSupportConfig.getName()
)vcsSupportName
- name of VcsSupport@Deprecated @Nullable SVcsRoot findRootByIdAndVersion(long rootId, long versionId)
rootId
- VCS root id, see VcsRoot.getId()
versionId
- VCS root version