public class UserManagement extends java.lang.Object implements IUserManagement
Modifier and Type | Field and Description |
---|---|
private EntityManager |
manager |
Constructor and Description |
---|
UserManagement() |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
createParticipant(Participant participant)
Creates a new participant with the given name.
|
void |
deleteParticipant(java.lang.Integer participantId)
Delete the given participant from the system
|
void |
deleteParticipants(java.util.List<java.lang.Integer> participantIds)
Delete the givens participants from the system
|
java.util.List<Participant> |
findAllParticipants()
List all the existing participant.
|
Participant |
findParticipantById(java.lang.Integer participantId)
Find a participant identified by his Identifier
|
java.util.List<Participant> |
findParticipantsByIds(java.util.List<java.lang.Integer> participantIds)
Find participants identified by ther Identifier
|
java.util.List<Participant> |
findParticipantsByProject(java.lang.Integer projectId)
List all participant of specified project.
|
java.util.List<Participant> |
findParticipantsByProjectAndRoles(java.lang.Integer projectId,
java.util.List<java.lang.Integer> roleIds)
List all participant of specified project whith specified roles.
|
java.util.List<Participant> |
findParticipantsByWorkgroup(java.lang.Integer workgroupId)
List all participant of specified workgroup.
|
void |
updateParticipant(Participant participant)
Update the given participant from the system
|
public java.lang.Integer createParticipant(Participant participant) throws java.io.IOException
IUserManagement
createParticipant
in interface IUserManagement
participant
- Participant Datajava.io.IOException
public void updateParticipant(Participant participant) throws java.io.IOException
IUserManagement
updateParticipant
in interface IUserManagement
participant
- Participant Datajava.io.IOException
public void deleteParticipant(java.lang.Integer participantId) throws java.io.IOException
IUserManagement
deleteParticipant
in interface IUserManagement
participantId
- Identifier of participantjava.io.IOException
public Participant findParticipantById(java.lang.Integer participantId) throws java.io.IOException
IUserManagement
findParticipantById
in interface IUserManagement
participantId
- Identifier of participantjava.io.IOException
public java.util.List<Participant> findAllParticipants() throws java.io.IOException
IUserManagement
findAllParticipants
in interface IUserManagement
java.io.IOException
public java.util.List<Participant> findParticipantsByProject(java.lang.Integer projectId) throws java.io.IOException
IUserManagement
findParticipantsByProject
in interface IUserManagement
projectId
- Identifier of projectjava.io.IOException
public java.util.List<Participant> findParticipantsByProjectAndRoles(java.lang.Integer projectId, java.util.List<java.lang.Integer> roleIds) throws java.io.IOException
IUserManagement
findParticipantsByProjectAndRoles
in interface IUserManagement
projectId
- Identifier of projectjava.io.IOException
public java.util.List<Participant> findParticipantsByWorkgroup(java.lang.Integer workgroupId) throws java.io.IOException
IUserManagement
findParticipantsByWorkgroup
in interface IUserManagement
workgroupId
- Identifier of workgroupjava.io.IOException
public void deleteParticipants(java.util.List<java.lang.Integer> participantIds) throws java.io.IOException
IUserManagement
deleteParticipants
in interface IUserManagement
participantIds
- LIst of participants Identifiersjava.io.IOException
public java.util.List<Participant> findParticipantsByIds(java.util.List<java.lang.Integer> participantIds) throws java.io.IOException
IUserManagement
findParticipantsByIds
in interface IUserManagement
participantIds
- Identifier of participantjava.io.IOException