public interface IProjectManagement
Modifier and Type | Method and Description |
---|---|
void |
addParticipant(java.lang.Integer projectId,
java.lang.Integer participantId,
java.util.List<java.lang.Integer> roleIds)
Add specified Participant to Project with specified roles
Roles must be roles of project
|
void |
addParticipants(java.lang.Integer projectId,
java.util.List<java.lang.Integer> participantIds,
java.util.List<java.lang.Integer> roleIds)
Add specified participant to Project
|
void |
addRole(java.lang.Integer projectId,
java.lang.Integer roleId)
Add specified Role to specified Project
|
void |
addRoles(java.lang.Integer projectId,
java.util.List<java.lang.Integer> rolesIds)
Add specified roles to Project
|
java.lang.Integer |
createProject(Project project)
Creates a new project in the system .It returns the id of project
|
void |
deleteProject(java.lang.Integer projectId)
Delete the given project from the system
|
void |
deleteProjects(java.util.List<java.lang.Integer> projectIds)
Delete the given projects from the system
|
java.util.List<Project> |
findAllProjects()
List all existing projects.
|
Project |
findProjectById(java.lang.Integer projectId)
Find a project identified by his Identifier
|
java.util.List<Project> |
findProjectByIds(java.util.List<java.lang.Integer> projectIds)
Find a list project identified by her Identifier
|
java.util.List<Project> |
findProjectsByParticipant(java.lang.Integer participantId)
List all project of specified participant.
|
void |
removeParticipant(java.lang.Integer projectId,
java.lang.Integer participantId,
java.util.List<java.lang.Integer> roleIds)
Remove specified Participant from Project with specified role
Roles must be roles of project
|
void |
removeParticipants(java.lang.Integer projectId,
java.util.List<java.lang.Integer> participantIds,
java.util.List<java.lang.Integer> roleIds)
Remove specified participant from Project
|
void |
removeRole(java.lang.Integer projectId,
java.lang.Integer roleId)
Add specified Role of specified Project
|
void |
removeRoles(java.lang.Integer projectsId,
java.util.List<java.lang.Integer> rolesIds)
Remove List of roles to Project
|
void |
updateProject(Project project)
Update the given project from the system
|
void addParticipant(java.lang.Integer projectId, java.lang.Integer participantId, java.util.List<java.lang.Integer> roleIds) throws java.io.IOException
projectId
- Identifier of projectparticipantId
- Identifier of participantroleId
- List of role Identifierjava.io.IOException
void removeParticipant(java.lang.Integer projectId, java.lang.Integer participantId, java.util.List<java.lang.Integer> roleIds) throws java.io.IOException
projectId
- Identifier of ProjectparticipantId
- Identifier of ParticipantroleIds
- List of role Identifierjava.io.IOException
void addRole(java.lang.Integer projectId, java.lang.Integer roleId) throws java.io.IOException
projectId
- Identifier of projectroleId
- Identifier of rolejava.io.IOException
void removeRole(java.lang.Integer projectId, java.lang.Integer roleId) throws java.io.IOException
projectId
- Identifier of projectroleId
- Identifier of rolejava.io.IOException
Project findProjectById(java.lang.Integer projectId) throws java.io.IOException
projectId
- Identifier of projectjava.io.IOException
java.util.List<Project> findProjectByIds(java.util.List<java.lang.Integer> projectIds) throws java.io.IOException
projectId
- Identifier of projectjava.io.IOException
java.util.List<Project> findAllProjects() throws java.io.IOException
java.io.IOException
java.util.List<Project> findProjectsByParticipant(java.lang.Integer participantId) throws java.io.IOException
java.io.IOException
void addParticipants(java.lang.Integer projectId, java.util.List<java.lang.Integer> participantIds, java.util.List<java.lang.Integer> roleIds) throws java.io.IOException
projectId
- identifiers of projectparticipantIds
- List of participant's identifiersroleIds
- List of role's identifiersjava.io.IOException
void removeParticipants(java.lang.Integer projectId, java.util.List<java.lang.Integer> participantIds, java.util.List<java.lang.Integer> roleIds) throws java.io.IOException
projectId
- identifiers of projectparticipantIds
- roleIds
- List of role's identifiersjava.io.IOException
void addRoles(java.lang.Integer projectId, java.util.List<java.lang.Integer> rolesIds) throws java.io.IOException
projectId
- identifiers of projectrolesIds
- List of role's identifiersjava.io.IOException
void removeRoles(java.lang.Integer projectsId, java.util.List<java.lang.Integer> rolesIds) throws java.io.IOException
projectsId
- identifiers of projectrolesIds
- identifiers of rolesjava.io.IOException
java.lang.Integer createProject(Project project) throws java.io.IOException
project
- Project Datajava.io.IOException
void deleteProject(java.lang.Integer projectId) throws java.io.IOException
projectId
- Identifier of projectjava.io.IOException
void updateProject(Project project) throws java.io.IOException
project
- Project Datajava.io.IOException
void deleteProjects(java.util.List<java.lang.Integer> projectIds) throws java.io.IOException
projectIds
- Identifier of projectsjava.io.IOException