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 interface
VcsRootUsernamesManagerImpl.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.void
setDefaultVcsUsername(SUser user, String userName)
Sets default VCS username for the uservoid
setExtensionHolder(ExtensionHolder extensionHolder)
void
setRegistrar(VcsRegistry registrar)
void
setRootManagerImpl(VcsRootsManagerImpl rootManagerImpl)
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
setVcsUsernameStorage(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: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:
vcsRoot
- root of interestusername
- name of interest- Returns:
- see above
-
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
-
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
-
-