Interface ProjectMembersAgent


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

  • Method Details

    • getGroups

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

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

      @Nullable User getUserByLogin(@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 Group getGroupByName(@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 Collection<Group> getUserGroups(@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