Package jetbrains.buildServer.vcs.impl
Class VcsRootUsernamesManagerImpl
- java.lang.Object
-
- jetbrains.buildServer.vcs.impl.VcsRootUsernamesManagerImpl
-
- All Implemented Interfaces:
VcsRootUsernamesManager,VcsRootUsernamesManagerEx
public class VcsRootUsernamesManagerImpl extends Object implements VcsRootUsernamesManagerEx
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceVcsRootUsernamesManagerImpl.VcsRootCommittersFilter
-
Constructor Summary
Constructors Constructor Description VcsRootUsernamesManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<SUser>getUsers(VcsRoot vcsRoot, 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)Map<SVcsRoot,String>getVcsRootsUsernames(User user)Returns VCS root specific user names defined by the specified user.Map<VcsSupportCore,String>getVcsUsernames(User user)Returns default usernames for all VCS roots of a VCS plugin.voidsetDefaultVcsUsername(SUser user, String userName)Sets default VCS username for the uservoidsetExtensionHolder(ExtensionHolder extensionHolder)voidsetRegistrar(VcsRegistry registrar)voidsetRootManagerImpl(VcsRootsManagerImpl rootManagerImpl)voidsetVcsRootUsername(SUser user, VcsRoot root, String userName)Sets username of a user in specific VCS rootvoidsetVcsUsername(SUser user, VcsSupportConfig vcs, String userName)Sets username of a user in all VCS roots of a VCS pluginvoidsetVcsUsernameStorage(VcsUsernameStorage storage)
-
-
-
Method Detail
-
setRegistrar
public void setRegistrar(VcsRegistry registrar)
-
setVcsUsernameStorage
public void setVcsUsernameStorage(@NotNull VcsUsernameStorage storage)
-
setRootManagerImpl
public void setRootManagerImpl(@NotNull VcsRootsManagerImpl rootManagerImpl)
-
setExtensionHolder
public void setExtensionHolder(ExtensionHolder extensionHolder)
-
getUsers
@NotNull public Collection<SUser> getUsers(@NotNull VcsRoot vcsRoot, @Nullable String username)
Description copied from interface:VcsRootUsernamesManagerReturns users which have specified username in their vcs settings (either in settings of whole VCS or in settings of specified VCS root)- Specified by:
getUsersin interfaceVcsRootUsernamesManager- Parameters:
vcsRoot- root of interestusername- name of interest- Returns:
- see above
-
setVcsRootUsername
public void setVcsRootUsername(SUser user, VcsRoot root, String userName)
Description copied from interface:VcsRootUsernamesManagerExSets username of a user in specific VCS root- Specified by:
setVcsRootUsernamein interfaceVcsRootUsernamesManagerEx
-
setVcsUsername
public void setVcsUsername(SUser user, VcsSupportConfig vcs, String userName)
Description copied from interface:VcsRootUsernamesManagerExSets username of a user in all VCS roots of a VCS plugin- Specified by:
setVcsUsernamein interfaceVcsRootUsernamesManagerEx
-
setDefaultVcsUsername
public void setDefaultVcsUsername(SUser user, String userName)
Description copied from interface:VcsRootUsernamesManagerExSets default VCS username for the user- Specified by:
setDefaultVcsUsernamein interfaceVcsRootUsernamesManagerEx
-
getVcsRootsUsernames
@NotNull public Map<SVcsRoot,String> getVcsRootsUsernames(@NotNull User user)
Description copied from interface:VcsRootUsernamesManagerReturns VCS root specific user names defined by the specified user.- Specified by:
getVcsRootsUsernamesin 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:VcsRootUsernamesManagerReturns default usernames for all VCS roots of a VCS plugin.- Specified by:
getVcsUsernamesin interfaceVcsRootUsernamesManager- Parameters:
user- whose VCS usernames are returned- Returns:
- map of VCS plugin to user name
-
-