Interface VcsRootUsernamesManager

  • All Known Subinterfaces:
    VcsManager

    public interface VcsRootUsernamesManager
    Since:
    8.1
    Author:
    Eugene Petrenko (eugene.petrenko@jetbrains.com)
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Collection<SUser> getUsers​(VcsRoot root, java.lang.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)
      java.util.Map<SVcsRoot,​java.lang.String> getVcsRootsUsernames​(User user)
      Returns VCS root specific user names defined by the specified user.
      java.util.Map<VcsSupportCore,​java.lang.String> getVcsUsernames​(User user)
      Returns default usernames for all VCS roots of a VCS plugin.
    • Method Detail

      • getUsers

        @NotNull
        java.util.Collection<SUser> getUsers​(@NotNull
                                             VcsRoot root,
                                             @Nullable
                                             java.lang.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)
        Parameters:
        root - root of interest
        username - name of interest
        Returns:
        see above
        Since:
        6.5.1
      • getVcsRootsUsernames

        @NotNull
        java.util.Map<SVcsRoot,​java.lang.String> getVcsRootsUsernames​(@NotNull
                                                                            User user)
        Returns VCS root specific user names defined by the specified user.
        Parameters:
        user - whose VCS usernames are returned
        Returns:
        map of VCS root to user name
      • getVcsUsernames

        @NotNull
        java.util.Map<VcsSupportCore,​java.lang.String> getVcsUsernames​(@NotNull
                                                                             User user)
        Returns default usernames for all VCS roots of a VCS plugin.
        Parameters:
        user - whose VCS usernames are returned
        Returns:
        map of VCS plugin to user name