public interface ProjectMembersAgent
Modifier and Type | Field and Description |
---|---|
static SpecialistType<ProjectMembersAgent> |
TYPE
Agent providing access to user and group information.
|
Modifier and Type | Method and Description |
---|---|
Group |
getGroupByName(String name)
Gets the group with the specified name.
|
List<Group> |
getGroups()
Get all groups of the current project.
|
User |
getUserByLogin(String login)
Gets the user with the specified login name.
|
Collection<Group> |
getUserGroups(User user)
Get all project groups where the provided user is a member of.
|
List<User> |
getUsers()
Get all users of the current project.
|
static final SpecialistType<ProjectMembersAgent> TYPE
@NotNull List<Group> getGroups()
@NotNull List<User> getUsers()
@Nullable User getUserByLogin(@NotNull String login)
login
- The login of the user.null
if no user exists.@Nullable Group getGroupByName(@NotNull String name)
name
- The name of the group.null
if group does not exists.@NotNull Collection<Group> getUserGroups(@NotNull User user)
user
- The user to get the groups for.Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210