|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface VcsManager
A basic starting point for various VCS - related operatoins, including, but not limited to:
| Method Summary | |
|---|---|
SVcsModification |
findModificationById(long changeId,
boolean isPersonal)
Find and return VCS modification by its id and isPersonal flag. |
SVcsRoot |
findRootById(long id)
returns vcs root with specified id |
SVcsRoot |
findRootByIdAndVersion(long rootId,
long versionId)
Find a VCS root with given id and given version |
SVcsRoot |
findRootByName(java.lang.String name)
Returns VCS root having the specified name |
java.util.List<SVcsRoot> |
findUnusedVcsRootsByScope(VcsRootScope scope)
Returns list of VCS roots having specified scope and having no usages in build configurations. |
VcsSupportCore |
findVcsByName(java.lang.String name)
Try to find and return VcsSupport |
VcsSupportContext |
findVcsContextByName(java.lang.String name)
Try to find and return VcsSupportContext |
VcsPersonalSupport |
findVcsPersonalSupportByName(java.lang.String name)
Return specific support for path mapping for paths obtained from personal builds changelists |
java.util.List<SVcsRoot> |
findVcsRootsByScope(VcsRootScope scope)
Returns all VCS roots having specified scope. |
java.util.List<SBuildType> |
getAllConfigurationUsages(VcsRoot root)
Returns all configuratons which use the root. |
java.util.List<SProject> |
getAllProjectUsages(VcsRoot root)
returns all project which contain configuratons which use the root. |
java.util.List<SVcsRoot> |
getAllRegisteredVcsRoots()
returns list of all registered vcs roots |
java.util.Collection<VcsSupportContext> |
getAllVcs()
|
byte[] |
getFileContent(Build build,
java.lang.String filePath)
Get binary content of the single file in modification set. |
byte[] |
getFileContent(java.util.List<VcsRootEntry> vcsRootEntries,
java.lang.String relativePath)
Get the latest file content, searching it in the provided list of VCS roots |
byte[] |
getFileContent(SBuildType buildType,
java.lang.String relativePath)
Get latest file content for given relative path in the given build configuration. |
java.util.Collection<SUser> |
getModificationUsers(SVcsModification modification)
|
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 |
VcsRootStatus |
getStatus(SVcsRoot vcsRoot)
Provides current status of the given vcs root. |
VcsModificationHistory |
getVcsHistory()
|
java.util.Map<SVcsRoot,java.lang.String> |
getVcsRootsUsernames(User user)
Returns VCS root specific user names defined by the specified user. |
VersionSupport<SVcsRoot> |
getVcsRootVersionSupport()
Return the component responsible for versioning support of VCS roots |
VcsStatusProvider |
getVcsStatusProvider()
Returns a component which can be used to detect/report a status of a version control system root in a particular build configuration. |
java.util.Map<VcsSupportContext,java.lang.String> |
getVcsUsernames(User user)
Returns default usernames for all VCS roots of a VCS plugin. |
void |
registerVcsSupport(VcsSupport vcsSupport)
Deprecated. you dont have now to register VCS plugin explicitly |
void |
unregisterVcsSupport(VcsSupport vcsSupport)
Deprecated. you dont have now to register VCS plugin explicitly |
| Methods inherited from interface jetbrains.buildServer.vcs.VcsRootsUpdate |
|---|
createNewVcsRoot, createNewVcsRoot, persistVcsRoots, removeVcsRoot, setVcsRootScope, updateVcsRoot |
| Method Detail |
|---|
void registerVcsSupport(VcsSupport vcsSupport)
vcsSupport - version control support instance.void unregisterVcsSupport(VcsSupport vcsSupport)
vcsSupport - to be unregistered
@Nullable
VcsSupportCore findVcsByName(@NotNull
java.lang.String name)
name - name of VcsSupport to find
@Nullable
VcsSupportContext findVcsContextByName(@NotNull
java.lang.String name)
name - name of VcsSupport to find
@Nullable
VcsPersonalSupport findVcsPersonalSupportByName(@NotNull
java.lang.String name)
name - VCS name
VcsPersonalSupport@NotNull java.util.Collection<VcsSupportContext> getAllVcs()
@NotNull VcsModificationHistory getVcsHistory()
@NotNull
byte[] getFileContent(Build build,
java.lang.String filePath)
throws VcsException
filePath - - relative file path regarding to the project root,
"checkout root" from vcs root should not be includedbuild - build for which file content should be obtained
VcsException - - throw this exception if some problem occurred while
collecting changes or changes cannot be collected because of invalid configuration, or
if file, corresponding to specified path cannot be found.
@Nullable
byte[] getFileContent(@NotNull
SBuildType buildType,
@Nullable
java.lang.String relativePath)
throws VcsException
buildType - build configurationrelativePath - relative path to the file to be searched in the project VCS roots
VcsException - when VCS access problem occures
@Nullable
byte[] getFileContent(java.util.List<VcsRootEntry> vcsRootEntries,
@Nullable
java.lang.String relativePath)
throws VcsException
vcsRootEntries - search file content in a given list of VCS root entriesrelativePath - relative path to the file to be searched in the project VCS roots
VcsException - when VCS access problem occuresVcsRootEntryVcsStatusProvider getVcsStatusProvider()
java.util.List<SVcsRoot> getAllRegisteredVcsRoots()
java.util.List<SVcsRoot> findVcsRootsByScope(@NotNull
VcsRootScope scope)
scope - scope of VCS roots
java.util.List<SVcsRoot> findUnusedVcsRootsByScope(@NotNull
VcsRootScope scope)
scope - scope to filter VCS roots
java.util.List<SProject> getAllProjectUsages(VcsRoot root)
root - specified vcs root
int getNumberOfUsagesInProjects(VcsRoot root)
root - VCS root whose usages should be found
java.util.List<SBuildType> getAllConfigurationUsages(VcsRoot root)
root - specified vcs root
int getNumberOfUsagesInConfigurations(VcsRoot root)
root - VCS root whose usages are searched for
@Nullable SVcsRoot findRootById(long id)
id - vcs root id
@Nullable
SVcsRoot findRootByName(@NotNull
java.lang.String name)
name - name of VcsRoot
VersionSupport<SVcsRoot> getVcsRootVersionSupport()
@Nullable
SVcsRoot findRootByIdAndVersion(long rootId,
long versionId)
rootId - VCS root id, see VcsRoot.getId()versionId - VCS root version, see VcsRoot.getRootVersion()
java.util.Collection<SUser> getModificationUsers(SVcsModification modification)
modification - VCS modification
java.util.Map<SVcsRoot,java.lang.String> getVcsRootsUsernames(User user)
user - whose VCS usernames are returned
java.util.Map<VcsSupportContext,java.lang.String> getVcsUsernames(User user)
user - whose VCS usernames are returned
@Nullable
SVcsModification findModificationById(long changeId,
boolean isPersonal)
changeId - VCS modification identifier, see VcsModification.getId()isPersonal - true if the searched modification relates to personal build
VcsRootStatus getStatus(SVcsRoot vcsRoot)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||