Class SecuredVcsManager
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.auth.SecuredVcsManager
-
- All Implemented Interfaces:
BuildTypeVcsRootsHolder
,VcsRootsManagerSettings
,VcsRootsManagerSettingsHolder
,VcsContentManager
,VcsContentManagerEx
,VcsManager
,VcsManagerEx
,VcsRegistry
,VcsRegistryEx
,VcsRootInstancesManager
,VcsRootsManager
,VcsRootsManagerEx
,VcsRootUsernamesManager
,VcsRootUsernamesManagerEx
,VcsServiceFactory
,VcsServiceProvider
public class SecuredVcsManager extends Object implements VcsManagerEx
- Author:
- Pavel.Sher Date: 04.10.2007
-
-
Constructor Summary
Constructors Constructor Description SecuredVcsManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addVcsRootUsageContributor(VcsRootUsagesContributor contributor)
void
attachTo(SBuildType buildType, SVcsRoot vcsRoot)
void
detachFrom(SBuildType buildType, SVcsRoot vcsRoot)
SVcsModification
findModificationById(long changeId, boolean isPersonal)
Find and return VCS modification by its id and isPersonal flag.SVcsRootEx
findRootByExternalId(String vcsRootExternalId)
Returns vcs root with specified external id.SVcsRootEx
findRootById(long id)
returns vcs root with specified idVcsRootInstance
findRootInstanceById(long id)
Collection<? extends SVcsRoot>
findRootsByVcsName(String vcsSupportName)
Returns collection of VCS roots corresponding to VcsSupport with specified name (seeVcsSupportConfig.getName()
)List<SVcsRoot>
findUnusedVcsRootsByScope(VcsRootScope scope)
Returns list of VCS roots having specified scope and having no usages in build configurations.VcsSupportCore
findVcsByName(String name)
Try to find and return VcsSupportVcsSupportContext
findVcsContextByName(String name)
Try to find and return VcsSupportContextCollection<? extends SVcsRoot>
findVcsRoots(Collection<Long> ids)
returns available vcs roots with the given idsList<SVcsRoot>
findVcsRootsByScope(VcsRootScope scope)
Returns all VCS roots having specified scope.Set<String>
getAllConfigurationUsages(Collection<Long> vcsRootIds)
Returns all configurations which use the VCS roots specified.List<SBuildType>
getAllConfigurationUsages(VcsRoot root)
Returns all configurations which use the root.List<SProject>
getAllProjectUsages(VcsRoot root)
returns all project which contain configurations which use the root.List<SVcsRoot>
getAllRegisteredVcsRoots()
returns list of all registered vcs rootsList<BuildTypeTemplate>
getAllTemplateUsages(VcsRoot root)
Returns all templates with specified vcs root attached.Collection<VcsSupportContext>
getAllVcs()
Collection<VcsSupportCore>
getAllVcsCore()
Set<VcsRootUsagesContributor>
getAllVcsRootUsagesContributors()
List<SVcsRoot>
getAttachedRoots(SBuildType buildType)
byte[]
getContentAfter(VcsModification parentModification, VcsChangeInfo change)
byte[]
getContentBefore(VcsModification parentModification, VcsChangeInfo change)
int
getDefaultModificationCheckInterval()
int
getDefaultQuietPeriod()
byte[]
getFileContent(List<VcsRootInstanceEntry> vcsRootEntries, String relativePath)
Get the file content for the latest revision detected by TeamCity during the last checking for changes process, searching it in the provided list of VCS rootsbyte[]
getFileContent(List<VcsRootInstanceEntry> vcsRootEntries, String relativePath, boolean latest)
Same asVcsContentManager.getFileContent(List, String)
if argument latest is false.byte[]
getFileContent(Build build, String filePath)
Get binary content of the single file in modification set.byte[]
getFileContent(SBuildType buildType, String relativePath)
Get the file content for the latest revision detected by TeamCity during the last checking for changes process, for given relative path in the given build configuration.<T extends VcsGenericService>
TgetGenericService(String vcsName, Class<T> serviceClass)
Fetches a global vcs-related service for a given Vcs pluginsCollection<SUser>
getModificationUsers(SVcsModification modification)
int
getNumberOfUsagesInConfigurations(VcsRoot root)
Returns number of usages of the specified VCS root in build configurationsint
getNumberOfUsagesInProjects(VcsRoot root)
Returns number of usages of this VCS root in projects build configurations and templatesVcsRootStatus
getStatus(SVcsRoot vcsRoot)
Provides current status of the given vcs root.Collection<SUser>
getUsers(VcsRoot root, String username)
Returns users which have specified username in their vcs settings (either in settings of whole VCS or in settings of specified VCS root)VcsModificationHistoryEx
getVcsHistory()
VcsRootInstance
getVcsRootInstance(SVcsRoot parent, Map<String,String> params)
Returns VCS root instance from the specified parent VCS root and new parameters.Map<SVcsRoot,String>
getVcsRootsUsernames(User user)
Returns VCS root specific user names defined by the specified user.<T extends VcsService>
TgetVcsService(VcsSettings settings, Class<T> serviceClass)
Fetches a repository layout service of given type by given settings.VcsStatusLogger
getVcsStatusProvider()
Returns a component which can be used to detect/report a status of a version control system root in a particular build configuration.Map<VcsSupportCore,String>
getVcsUsernames(User user)
Returns default usernames for all VCS roots of a VCS plugin.boolean
isUsedInProjects(SVcsRoot vcsRoot)
void
register(String vcsName, VcsSupportContext context)
Register new vcs with specified name on server.void
registerVcsSupport(VcsSupportContext vcsSupport)
Register new vcs on server.void
setDefaultModificationCheckInterval(int seconds)
void
setDefaultQuietPeriod(int quietPeriod)
void
setDefaultVcsUsername(SUser user, String userName)
Sets default VCS username for the uservoid
setDelegate(VcsManagerEx delegate)
void
setSecurityContext(SecurityContextEx securityContext)
void
setUseDefaultIntervalAsMinimum(boolean enforced)
void
setVcsRootUsername(SUser user, VcsRoot root, String userName)
Sets username of a user in specific VCS rootvoid
setVcsUsername(SUser user, VcsSupportConfig vcs, String userName)
Sets username of a user in all VCS roots of a VCS pluginvoid
unregister(String vcsName)
Unregister vcs with specified name which was previous registered viaVcsRegistryEx.register(String, VcsSupportContext)
method.void
unregisterVcsSupport(VcsSupportContext vcsSupport)
Unregister vcs which was previous registered viaVcsRegistryEx.registerVcsSupport(VcsSupportContext)
method.boolean
useDefaultCheckIntervalAsMinimum()
-
-
-
Method Detail
-
setDelegate
public void setDelegate(@NotNull VcsManagerEx delegate)
-
setSecurityContext
public void setSecurityContext(@NotNull SecurityContextEx securityContext)
-
getVcsService
@Nullable public <T extends VcsService> T getVcsService(@NotNull VcsSettings settings, @NotNull Class<T> serviceClass)
Description copied from interface:VcsServiceProvider
Fetches a repository layout service of given type by given settings. Null will be returned if service is not implemented- Specified by:
getVcsService
in interfaceVcsServiceProvider
- Type Parameters:
T
- type of service- Parameters:
settings
- RepositoryLayout settings descriptionserviceClass
- type of service- Returns:
- RepositoryLayout service for a given settings and service class
-
getGenericService
@Nullable public <T extends VcsGenericService> T getGenericService(@NotNull String vcsName, @NotNull Class<T> serviceClass)
Description copied from interface:VcsServiceProvider
Fetches a global vcs-related service for a given Vcs plugins- Specified by:
getGenericService
in interfaceVcsServiceProvider
serviceClass
- type of service to fetch- Returns:
- service or null if service not supported
-
setVcsRootUsername
public void setVcsRootUsername(SUser user, VcsRoot root, String userName)
Description copied from interface:VcsRootUsernamesManagerEx
Sets username of a user in specific VCS root- Specified by:
setVcsRootUsername
in interfaceVcsRootUsernamesManagerEx
-
setVcsUsername
public void setVcsUsername(SUser user, VcsSupportConfig vcs, String userName)
Description copied from interface:VcsRootUsernamesManagerEx
Sets username of a user in all VCS roots of a VCS plugin- Specified by:
setVcsUsername
in interfaceVcsRootUsernamesManagerEx
-
setDefaultVcsUsername
public void setDefaultVcsUsername(SUser user, String userName)
Description copied from interface:VcsRootUsernamesManagerEx
Sets default VCS username for the user- Specified by:
setDefaultVcsUsername
in interfaceVcsRootUsernamesManagerEx
-
setDefaultModificationCheckInterval
public void setDefaultModificationCheckInterval(int seconds)
- Specified by:
setDefaultModificationCheckInterval
in interfaceVcsRootsManagerSettings
-
getDefaultModificationCheckInterval
public int getDefaultModificationCheckInterval()
- Specified by:
getDefaultModificationCheckInterval
in interfaceVcsRootsManagerSettingsHolder
- Returns:
- Default VCS polling interval in seconds. Can be optionally enforced as a minimum
-
getDefaultQuietPeriod
public int getDefaultQuietPeriod()
- Specified by:
getDefaultQuietPeriod
in interfaceVcsRootsManagerSettingsHolder
- Returns:
- Default quiet period in seconds used through the server, if set in VCS trigger
-
useDefaultCheckIntervalAsMinimum
public boolean useDefaultCheckIntervalAsMinimum()
- Specified by:
useDefaultCheckIntervalAsMinimum
in interfaceVcsRootsManagerSettingsHolder
- Returns:
- if set, default modification check interval is used as an enforced minimum value for the whole server
-
setDefaultQuietPeriod
public void setDefaultQuietPeriod(int quietPeriod)
- Specified by:
setDefaultQuietPeriod
in interfaceVcsRootsManagerSettings
-
setUseDefaultIntervalAsMinimum
public void setUseDefaultIntervalAsMinimum(boolean enforced)
- Specified by:
setUseDefaultIntervalAsMinimum
in interfaceVcsRootsManagerSettings
-
registerVcsSupport
public void registerVcsSupport(@NotNull VcsSupportContext vcsSupport)
Description copied from interface:VcsRegistryEx
Register new vcs on server. Works likeVcsRegistryEx.register(String, VcsSupportContext)
with name from VcsSupportContext- Specified by:
registerVcsSupport
in interfaceVcsRegistryEx
- Parameters:
vcsSupport
-VcsSupportContext
implementation for vcs which provides core functionality
-
unregisterVcsSupport
public void unregisterVcsSupport(@NotNull VcsSupportContext vcsSupport)
Description copied from interface:VcsRegistryEx
Unregister vcs which was previous registered viaVcsRegistryEx.registerVcsSupport(VcsSupportContext)
method.- Specified by:
unregisterVcsSupport
in interfaceVcsRegistryEx
-
unregister
public void unregister(@NotNull String vcsName)
Description copied from interface:VcsRegistryEx
Unregister vcs with specified name which was previous registered viaVcsRegistryEx.register(String, VcsSupportContext)
method. If vcs with given name is not found then method does nothing- Specified by:
unregister
in interfaceVcsRegistryEx
- Parameters:
vcsName
- name of vcs
-
register
public void register(@NotNull String vcsName, @NotNull VcsSupportContext context) throws VcsSupportNameCollisionException
Description copied from interface:VcsRegistryEx
Register new vcs with specified name on server. If vcs with given name already registered thenVcsSupportNameCollisionException
will be thrown.- Specified by:
register
in interfaceVcsRegistryEx
- Parameters:
vcsName
- name of vcscontext
-VcsSupportContext
implementation for vcs which provides core functionality- Throws:
VcsSupportNameCollisionException
- if vcs with given name already registed
-
getAllConfigurationUsages
@NotNull public Set<String> getAllConfigurationUsages(@NotNull Collection<Long> vcsRootIds)
Description copied from interface:VcsRootsManagerEx
Returns all configurations which use the VCS roots specified. Result set can be unmodifiable.- Specified by:
getAllConfigurationUsages
in interfaceVcsRootsManagerEx
- Parameters:
vcsRootIds
- ids of vcs roots to search through- Returns:
- all root usages (set of build type ids)
- See Also:
VcsRootsManager.getAllConfigurationUsages(VcsRoot)
-
findVcsByName
@Nullable public VcsSupportCore findVcsByName(@NotNull String name)
Description copied from interface:VcsRegistry
Try to find and return VcsSupport- Specified by:
findVcsByName
in interfaceVcsRegistry
- Parameters:
name
- name of VcsSupport to find- Returns:
- Found VcsSupport with given name
-
findVcsContextByName
@Nullable public VcsSupportContext findVcsContextByName(@NotNull String name)
Description copied from interface:VcsRegistry
Try to find and return VcsSupportContext- Specified by:
findVcsContextByName
in interfaceVcsRegistry
- Parameters:
name
- name of VcsSupport to find- Returns:
- Found VcsSupport with given name
- See Also:
VcsServiceProvider
-
getAllVcs
@NotNull public Collection<VcsSupportContext> getAllVcs()
- Specified by:
getAllVcs
in interfaceVcsRegistry
- Returns:
- Collection of all registered VcsSupports
-
getAllVcsCore
@NotNull public Collection<VcsSupportCore> getAllVcsCore()
- Specified by:
getAllVcsCore
in interfaceVcsRegistry
- Returns:
- Collection of all registered VcsSupports
-
getVcsHistory
@NotNull public VcsModificationHistoryEx getVcsHistory()
- Specified by:
getVcsHistory
in interfaceVcsManager
- Specified by:
getVcsHistory
in interfaceVcsManagerEx
- Returns:
- manager for detected VCS changes (i.e. user commits)
-
getFileContent
@Nullable public byte[] getFileContent(@NotNull List<VcsRootInstanceEntry> vcsRootEntries, @Nullable String relativePath, boolean latest) throws VcsException
Description copied from interface:VcsContentManagerEx
Same asVcsContentManager.getFileContent(List, String)
if argument latest is false. If latest is true then TeamCity will take the file content for the latest possible revision, in other words it will first go the the repository for the current state and then take the content for the revision from this state.- Specified by:
getFileContent
in interfaceVcsContentManagerEx
latest
- if false then returned content will correspond to the revision which was seen by the server during the last polling process, if true, then the most recent content is returned- Throws:
VcsException
-
getContentBefore
@NotNull public byte[] getContentBefore(VcsModification parentModification, VcsChangeInfo change) throws VcsException
- Specified by:
getContentBefore
in interfaceVcsContentManagerEx
- Throws:
VcsException
-
getContentAfter
@NotNull public byte[] getContentAfter(VcsModification parentModification, VcsChangeInfo change) throws VcsException
- Specified by:
getContentAfter
in interfaceVcsContentManagerEx
- Throws:
VcsException
-
getFileContent
@NotNull public byte[] getFileContent(@NotNull Build build, String filePath) throws VcsException
Description copied from interface:VcsContentManager
Get binary content of the single file in modification set.- Specified by:
getFileContent
in interfaceVcsContentManager
- Parameters:
build
- build for which file content should be obtainedfilePath
- - relative file path regarding to the project root, "checkout root" from vcs root should not be included- Returns:
- - specified file content, corresponding to the build
- Throws:
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.
-
getFileContent
@Nullable public byte[] getFileContent(@NotNull SBuildType buildType, @Nullable String relativePath) throws VcsException
Description copied from interface:VcsContentManager
Get the file content for the latest revision detected by TeamCity during the last checking for changes process, for given relative path in the given build configuration.- Specified by:
getFileContent
in interfaceVcsContentManager
- Parameters:
buildType
- build configurationrelativePath
- relative path to the file to be searched in the project VCS roots- Returns:
- null if no corresponding file found
- Throws:
VcsException
- when VCS access problem occurs
-
getFileContent
@Nullable public byte[] getFileContent(@NotNull List<VcsRootInstanceEntry> vcsRootEntries, @Nullable String relativePath) throws VcsException
Description copied from interface:VcsContentManager
Get the file content for the latest revision detected by TeamCity during the last checking for changes process, searching it in the provided list of VCS roots- Specified by:
getFileContent
in interfaceVcsContentManager
- Parameters:
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- Returns:
- null if no corresponding file found
- Throws:
VcsException
- when VCS access problem occurs- See Also:
VcsRootEntry
-
getVcsStatusProvider
@NotNull public VcsStatusLogger getVcsStatusProvider()
Description copied from interface:VcsManager
Returns a component which can be used to detect/report a status of a version control system root in a particular build configuration.- Specified by:
getVcsStatusProvider
in interfaceVcsManager
- Returns:
- see above
-
getAllRegisteredVcsRoots
@NotNull public List<SVcsRoot> getAllRegisteredVcsRoots()
Description copied from interface:VcsRootsManager
returns list of all registered vcs roots- Specified by:
getAllRegisteredVcsRoots
in interfaceVcsRootsManager
- Returns:
- see above
-
findVcsRootsByScope
@NotNull public List<SVcsRoot> findVcsRootsByScope(@NotNull VcsRootScope scope)
Description copied from interface:VcsRootsManager
Returns all VCS roots having specified scope.- Specified by:
findVcsRootsByScope
in interfaceVcsRootsManager
- Parameters:
scope
- scope of VCS roots- Returns:
- all VCS roots with specified scope
-
findUnusedVcsRootsByScope
public List<SVcsRoot> findUnusedVcsRootsByScope(@NotNull VcsRootScope scope)
Description copied from interface:VcsRootsManager
Returns list of VCS roots having specified scope and having no usages in build configurations.- Specified by:
findUnusedVcsRootsByScope
in interfaceVcsRootsManager
- Parameters:
scope
- scope to filter VCS roots- Returns:
- list of unused VCS roots
-
getAllProjectUsages
@NotNull public List<SProject> getAllProjectUsages(@NotNull VcsRoot root)
Description copied from interface:VcsRootsManager
returns all project which contain configurations which use the root. Projects are sorted withProjectManager.getProjectsComparator()
.- Specified by:
getAllProjectUsages
in interfaceVcsRootsManager
- Parameters:
root
- specified vcs root- Returns:
- all root usages in projects
-
getNumberOfUsagesInProjects
public int getNumberOfUsagesInProjects(VcsRoot root)
Description copied from interface:VcsRootsManager
Returns number of usages of this VCS root in projects build configurations and templates- Specified by:
getNumberOfUsagesInProjects
in interfaceVcsRootsManager
- Parameters:
root
- VCS root whose usages should be found- Returns:
- see above
-
isUsedInProjects
public boolean isUsedInProjects(@NotNull SVcsRoot vcsRoot)
- Specified by:
isUsedInProjects
in interfaceVcsRootsManager
- Parameters:
vcsRoot
- VCS Root to check- Returns:
- true if VCS root is used by any project (is attached to a build configuration or template, or is used as Versioned Settings VCS root)
-
getNumberOfUsagesInConfigurations
public int getNumberOfUsagesInConfigurations(VcsRoot root)
Description copied from interface:VcsRootsManager
Returns number of usages of the specified VCS root in build configurations- Specified by:
getNumberOfUsagesInConfigurations
in interfaceVcsRootsManager
- Parameters:
root
- VCS root whose usages are searched for- Returns:
- see above
-
getAllConfigurationUsages
public List<SBuildType> getAllConfigurationUsages(VcsRoot root)
Description copied from interface:VcsRootsManager
Returns all configurations which use the root. Build configurations are sorted by project name then by build configuration name.- Specified by:
getAllConfigurationUsages
in interfaceVcsRootsManager
- Parameters:
root
- specified vcs root- Returns:
- all root usages in configuration
-
getAllTemplateUsages
@NotNull public List<BuildTypeTemplate> getAllTemplateUsages(@NotNull VcsRoot root)
Description copied from interface:VcsRootsManager
Returns all templates with specified vcs root attached.- Specified by:
getAllTemplateUsages
in interfaceVcsRootsManager
- Parameters:
root
- vcs root- Returns:
- all templates with specified vcs root
-
findRootById
@Nullable public SVcsRootEx findRootById(long id)
Description copied from interface:VcsRootsManager
returns vcs root with specified id- Specified by:
findRootById
in interfaceVcsRootsManager
- Specified by:
findRootById
in interfaceVcsRootsManagerEx
- Parameters:
id
- vcs root id- Returns:
- vcs root by id
-
findRootByExternalId
@Nullable public SVcsRootEx findRootByExternalId(@Nullable String vcsRootExternalId)
Description copied from interface:VcsRootsManager
Returns vcs root with specified external id. Since 8.1 the method also looks up the vcs root by the previous external ids. So the result project can have a different external id after a call. But the later is impossible if there is a vcs root that currently has aexternalId
.- Specified by:
findRootByExternalId
in interfaceVcsRootsManager
- Specified by:
findRootByExternalId
in interfaceVcsRootsManagerEx
- Parameters:
vcsRootExternalId
- vcs root external id- Returns:
- vcs root by external id
-
findRootInstanceById
public VcsRootInstance findRootInstanceById(long id)
- Specified by:
findRootInstanceById
in interfaceVcsRootInstancesManager
- Parameters:
id
- id of the VCS root instance- Returns:
- VCS root instance with specified id
-
getVcsRootInstance
@NotNull public VcsRootInstance getVcsRootInstance(@NotNull SVcsRoot parent, @NotNull Map<String,String> params)
Description copied from interface:VcsRootInstancesManager
Returns VCS root instance from the specified parent VCS root and new parameters.- Specified by:
getVcsRootInstance
in interfaceVcsRootInstancesManager
- Parameters:
parent
- parent VCS root for the instanceparams
- new VCS root instance parameters- Returns:
- new VCS root instance
-
findVcsRoots
@NotNull public Collection<? extends SVcsRoot> findVcsRoots(@NotNull Collection<Long> ids)
Description copied from interface:VcsRootsManager
returns available vcs roots with the given ids- Specified by:
findVcsRoots
in interfaceVcsRootsManager
- Parameters:
ids
- root ids- Returns:
- collection of available object identified by the given ids
-
findRootsByVcsName
@NotNull public Collection<? extends SVcsRoot> findRootsByVcsName(String vcsSupportName)
Description copied from interface:VcsRootsManager
Returns collection of VCS roots corresponding to VcsSupport with specified name (seeVcsSupportConfig.getName()
)- Specified by:
findRootsByVcsName
in interfaceVcsRootsManager
- Parameters:
vcsSupportName
- name of VcsSupport- Returns:
- see above
-
getModificationUsers
@NotNull public Collection<SUser> getModificationUsers(@NotNull SVcsModification modification)
- Specified by:
getModificationUsers
in interfaceVcsManager
- Parameters:
modification
- VCS modification- Returns:
- collection of users who contributed to the given VCS modification
-
getUsers
@NotNull public Collection<SUser> getUsers(@NotNull VcsRoot root, @Nullable String username)
Description copied from interface:VcsRootUsernamesManager
Returns users which have specified username in their vcs settings (either in settings of whole VCS or in settings of specified VCS root)- Specified by:
getUsers
in interfaceVcsRootUsernamesManager
- Parameters:
root
- root of interestusername
- name of interest- Returns:
- see above
-
getVcsRootsUsernames
@NotNull public Map<SVcsRoot,String> getVcsRootsUsernames(@NotNull User user)
Description copied from interface:VcsRootUsernamesManager
Returns VCS root specific user names defined by the specified user.- Specified by:
getVcsRootsUsernames
in interfaceVcsRootUsernamesManager
- Parameters:
user
- whose VCS usernames are returned- Returns:
- map of VCS root to user name
-
getVcsUsernames
@NotNull public Map<VcsSupportCore,String> getVcsUsernames(@NotNull User user)
Description copied from interface:VcsRootUsernamesManager
Returns default usernames for all VCS roots of a VCS plugin.- Specified by:
getVcsUsernames
in interfaceVcsRootUsernamesManager
- Parameters:
user
- whose VCS usernames are returned- Returns:
- map of VCS plugin to user name
-
findModificationById
@Nullable public SVcsModification findModificationById(long changeId, boolean isPersonal)
Description copied from interface:VcsManager
Find and return VCS modification by its id and isPersonal flag.- Specified by:
findModificationById
in interfaceVcsManager
- Parameters:
changeId
- VCS modification identifier, seeVcsModification.getId()
isPersonal
- true if the searched modification relates to personal build- Returns:
- see above
-
getStatus
@NotNull public VcsRootStatus getStatus(@NotNull SVcsRoot vcsRoot)
Description copied from interface:VcsManager
Provides current status of the given vcs root. Can be
- last checked at- Specified by:
getStatus
in interfaceVcsManager
- Parameters:
vcsRoot
- vcs root to get status for- Returns:
- given root status
- See Also:
LVcsRootInstance.getStatus()
-
attachTo
public void attachTo(@NotNull SBuildType buildType, @NotNull SVcsRoot vcsRoot) throws VcsRootNotFoundException
- Specified by:
attachTo
in interfaceBuildTypeVcsRootsHolder
- Throws:
VcsRootNotFoundException
-
detachFrom
public void detachFrom(@NotNull SBuildType buildType, @NotNull SVcsRoot vcsRoot)
- Specified by:
detachFrom
in interfaceBuildTypeVcsRootsHolder
-
getAttachedRoots
@NotNull public List<SVcsRoot> getAttachedRoots(@NotNull SBuildType buildType)
- Specified by:
getAttachedRoots
in interfaceBuildTypeVcsRootsHolder
- Specified by:
getAttachedRoots
in interfaceVcsRootsManagerEx
-
addVcsRootUsageContributor
public void addVcsRootUsageContributor(@NotNull VcsRootUsagesContributor contributor)
- Specified by:
addVcsRootUsageContributor
in interfaceVcsRootsManagerEx
-
getAllVcsRootUsagesContributors
@NotNull public Set<VcsRootUsagesContributor> getAllVcsRootUsagesContributors()
- Specified by:
getAllVcsRootUsagesContributors
in interfaceVcsRootsManagerEx
- Returns:
- all registred extension which can provide additional usages for VCS root
-
-