Interface ProjectMembersAgent


public interface ProjectMembersAgent
Agent providing access to user and group information.
Since:
5.2.1502
  • Field Details

  • Method Details

    • getGroups

      @NotNull @NotNull List<Group> getGroups()
      Get all groups of the current project.
      Returns:
      All groups of the current project.
      Since:
      5.2.1502
    • getUsers

      @NotNull @NotNull List<User> getUsers()
      Get all users of the current project.
      Returns:
      All users of the current project.
      Since:
      5.2.1502
    • getUserByLogin

      @Nullable @Nullable User getUserByLogin(@NotNull @NotNull String login)
      Gets the user with the specified login name.
      Parameters:
      login - The login of the user.
      Returns:
      User with the specified login name or null if no user exists.
      Since:
      5.2.1502
    • getGroupByName

      @Nullable @Nullable Group getGroupByName(@NotNull @NotNull String name)
      Gets the group with the specified name.
      Parameters:
      name - The name of the group.
      Returns:
      Group with the specified name or null if group does not exists.
      Since:
      5.2.1502
    • getUserGroups

      @NotNull @NotNull Collection<Group> getUserGroups(@NotNull @NotNull User user)
      Get all project groups where the provided user is a member of.
      Parameters:
      user - The user to get the groups for.
      Returns:
      All project groups where the provided user is a member of.
      Since:
      5.2.1502