public class WorkgroupManagement extends java.lang.Object implements IWorkgroupManagement
Modifier and Type | Field and Description |
---|---|
private EntityManager |
manager |
Constructor and Description |
---|
WorkgroupManagement() |
Modifier and Type | Method and Description |
---|---|
void |
addParticipant(java.lang.Integer workgroupId,
java.lang.Integer participantId)
Add specified Participant to specified Workgroup
|
void |
addParticipants(java.lang.Integer workgroupId,
java.util.List<java.lang.Integer> participantIds)
Add specified Participants to specified Workgroup
|
java.lang.Integer |
createWorkgroup(Workgroup workgroup)
Creates a new group in the system.
|
void |
deleteWorkgroup(java.lang.Integer workgroupId)
Deletes the given workgroup from the system
|
void |
deleteWorkgroups(java.util.List<java.lang.Integer> workgroupIds)
Delete the given workgroups from the system
|
java.util.List<Workgroup> |
findAllWorkgroups()
List all existing workgroup.
|
Workgroup |
findWorkgroupById(java.lang.Integer workgroupId)
Find a workgroup identified by his Identifier
|
java.util.List<Workgroup> |
findWorkgroupsByIds(java.util.List<java.lang.Integer> workgroupsIds)
Find workgroups identified by her identifiers
|
java.util.List<Workgroup> |
findWorkgroupsByParticipant(java.lang.Integer participantId)
List all workgroup of specified participant.
|
void |
removeParticipant(java.lang.Integer workgroupId,
java.lang.Integer participantId)
Remove specified Participant of specified Workgroup
|
void |
removeParticipants(java.lang.Integer workgroupId,
java.util.List<java.lang.Integer> participantIds)
Remove specified Participants of specified Workgroup
|
void |
updateWorkgroup(Workgroup workgroup)
Update the given workgroup from the system
|
public void addParticipant(java.lang.Integer workgroupId, java.lang.Integer participantId) throws java.io.IOException
IWorkgroupManagement
addParticipant
in interface IWorkgroupManagement
workgroupId
- Identifier of WorkgroupparticipantId
- Identifier of Participantjava.io.IOException
public void removeParticipant(java.lang.Integer workgroupId, java.lang.Integer participantId) throws java.io.IOException
IWorkgroupManagement
removeParticipant
in interface IWorkgroupManagement
workgroupId
- Identifier of WorkgroupparticipantId
- Identifier of Participantjava.io.IOException
public Workgroup findWorkgroupById(java.lang.Integer workgroupId) throws java.io.IOException
IWorkgroupManagement
findWorkgroupById
in interface IWorkgroupManagement
workgroupId
- Identifier of workgroupjava.io.IOException
public java.util.List<Workgroup> findAllWorkgroups() throws java.io.IOException
IWorkgroupManagement
findAllWorkgroups
in interface IWorkgroupManagement
java.io.IOException
public java.util.List<Workgroup> findWorkgroupsByParticipant(java.lang.Integer participantId) throws java.io.IOException
IWorkgroupManagement
findWorkgroupsByParticipant
in interface IWorkgroupManagement
java.io.IOException
public void addParticipants(java.lang.Integer workgroupId, java.util.List<java.lang.Integer> participantIds) throws java.io.IOException
IWorkgroupManagement
addParticipants
in interface IWorkgroupManagement
workgroupId
- identifiers of workgroupsparticipantIds
- List of Participant's identifiersjava.io.IOException
public void removeParticipants(java.lang.Integer workgroupId, java.util.List<java.lang.Integer> participantIds) throws java.io.IOException
IWorkgroupManagement
removeParticipants
in interface IWorkgroupManagement
workgroupId
- identifiers of workgroupsparticipantIds
- List of Participant's identifiersjava.io.IOException
public java.util.List<Workgroup> findWorkgroupsByIds(java.util.List<java.lang.Integer> workgroupsIds) throws java.io.IOException
IWorkgroupManagement
findWorkgroupsByIds
in interface IWorkgroupManagement
workgroupsIds
- List of Workgroup's identifiersjava.io.IOException
public java.lang.Integer createWorkgroup(Workgroup workgroup) throws java.io.IOException
IWorkgroupManagement
createWorkgroup
in interface IWorkgroupManagement
workgroup
- Workgroup Datajava.io.IOException
public void deleteWorkgroup(java.lang.Integer workgroupId) throws java.io.IOException
IWorkgroupManagement
deleteWorkgroup
in interface IWorkgroupManagement
workgroupId
- Identifier of workgroupjava.io.IOException
public void deleteWorkgroups(java.util.List<java.lang.Integer> workgroupIds) throws java.io.IOException
IWorkgroupManagement
deleteWorkgroups
in interface IWorkgroupManagement
workgroupIds
- Identifier of workgroupsjava.io.IOException
public void updateWorkgroup(Workgroup workgroup) throws java.io.IOException
IWorkgroupManagement
updateWorkgroup
in interface IWorkgroupManagement
workgroup
- Workgroup Datajava.io.IOException