public interface IRoleManagement
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
createRole(Role role)
Creates a new role in the system .It returns the id of role
|
void |
deleteRole(java.lang.Integer roleId)
Delete the given role from the system
|
void |
deleteRoles(java.util.List<java.lang.Integer> roleIds)
Delete the given roles from the system
|
java.util.List<Role> |
findAllRoles()
List all existing role.
|
Role |
findRoleById(java.lang.Integer roleId)
Find a role identified by his Identifier
|
java.util.List<Role> |
findRoleByIds(java.util.List<java.lang.Integer> roleIds)
Find List of role identified by her Identifier
|
java.util.List<Role> |
findRolesByProject(java.lang.Integer projectId)
List all role of specified project.
|
java.util.List<Role> |
findRolesByProjectAndParticipant(java.lang.Integer porjectId,
java.lang.Integer participantId)
List all role of participantId in specified project.
|
void |
updateRole(Role role)
Update the given role from the system
|
java.util.List<Role> findRolesByProject(java.lang.Integer projectId) throws java.io.IOException
projectId
- Identifier of projectjava.io.IOException
java.util.List<Role> findAllRoles() throws java.io.IOException
java.io.IOException
Role findRoleById(java.lang.Integer roleId) throws java.io.IOException
roleId
- Identifier of rolejava.io.IOException
java.util.List<Role> findRoleByIds(java.util.List<java.lang.Integer> roleIds) throws java.io.IOException
roleId
- List of Role's identifierjava.io.IOException
java.util.List<Role> findRolesByProjectAndParticipant(java.lang.Integer porjectId, java.lang.Integer participantId) throws java.io.IOException
projectId
- Identifier of projectparticipantId
- Identifier of participantjava.io.IOException
java.lang.Integer createRole(Role role) throws java.io.IOException
project
- Role Datajava.io.IOException
void deleteRole(java.lang.Integer roleId) throws java.io.IOException
roleId
- Identifier of rolejava.io.IOException
void deleteRoles(java.util.List<java.lang.Integer> roleIds) throws java.io.IOException
roleIds
- Identifier of rolesjava.io.IOException
void updateRole(Role role) throws java.io.IOException
role
- Role Datajava.io.IOException