Package de.espirit.firstspirit.agency
Interface ProjectMembersAgent
public interface ProjectMembersAgent
Agent providing access to user and group information.
- Since:
- 5.2.1502
-
Field Summary
Modifier and TypeFieldDescriptionstatic final SpecialistType<ProjectMembersAgent>
Agent providing access to user and group information. -
Method Summary
Modifier and TypeMethodDescription@Nullable Group
getGroupByName
(@NotNull String name) Gets the group with the specified name.Get all groups of the current project.@Nullable User
getUserByLogin
(@NotNull String login) Gets the user with the specified login name.@NotNull Collection<Group>
getUserGroups
(@NotNull User user) Get all project groups where the provided user is a member of.getUsers()
Get all users of the current project.
-
Field Details
-
TYPE
Agent providing access to user and group information.- Since:
- 5.2.1502
-
-
Method Details
-
getGroups
Get all groups of the current project.- Returns:
- All groups of the current project.
- Since:
- 5.2.1502
-
getUsers
Get all users of the current project.- Returns:
- All users of the current project.
- Since:
- 5.2.1502
-
getUserByLogin
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
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
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
-