Interface SupervisorMappingService
- All Known Implementing Classes:
SupervisorMappingServiceImpl
public interface SupervisorMappingService
- Since:
- 6.0
- Author:
- Yanyan Liu, Elias Ricken de Medeiros, Matthieu Chaffotte, Celine Souchet
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncreateProcessSupervisor(SProcessSupervisor supervisor) Create supervisor in DB according to the given supervisorvoidDelete all supervisors for the connected tenantvoiddeleteProcessSupervisor(long supervisorId) Delete the id specified supervisorvoiddeleteProcessSupervisor(SProcessSupervisor supervisor) Delete the specific supervisorlonggetNumberOfProcessSupervisors(QueryOptions searchOptions) Get total number of supervisors suit to the specific criteriagetProcessSupervisor(long supervisorId) get supervisor without display name by its idisProcessSupervisor(long processDefinitionId, long userId) Verify if the id specified user is the supervisor of id specified process definitionsearchProcessSupervisors(QueryOptions queryOptions) Search all supervisors suit to the specific criteria
-
Field Details
-
SUPERVISOR
- See Also:
-
-
Method Details
-
createProcessSupervisor
SProcessSupervisor createProcessSupervisor(SProcessSupervisor supervisor) throws SSupervisorCreationException Create supervisor in DB according to the given supervisor- Parameters:
supervisor- a SSupervisor object- Returns:
- the new created supervisor
- Throws:
SSupervisorCreationException
-
getProcessSupervisor
get supervisor without display name by its id- Parameters:
supervisorId- identifier of supervisor- Returns:
- the supervisor with id equals the parameter
- Throws:
SSupervisorNotFoundException
-
deleteProcessSupervisor
void deleteProcessSupervisor(long supervisorId) throws SSupervisorNotFoundException, SSupervisorDeletionException Delete the id specified supervisor- Parameters:
supervisorId- identifier of supervisor- Throws:
SSupervisorNotFoundExceptionSSupervisorDeletionException
-
deleteProcessSupervisor
Delete the specific supervisor- Parameters:
supervisor- the supervisor will be deleted- Throws:
SSupervisorDeletionException
-
deleteAllProcessSupervisors
Delete all supervisors for the connected tenant- Throws:
SSupervisorDeletionException- Since:
- 6.1
-
isProcessSupervisor
Verify if the id specified user is the supervisor of id specified process definition- Parameters:
processDefinitionId- identifier of process definitionuserId- identifier of user- Returns:
- true if user is supervisor of the process, false otherwise
- Throws:
SBonitaReadException
-
searchProcessSupervisors
List<SProcessSupervisor> searchProcessSupervisors(QueryOptions queryOptions) throws SBonitaReadException Search all supervisors suit to the specific criteria- Parameters:
queryOptions- The QueryOptions object containing some query conditions- Returns:
- a list of SSupervisor objects
- Throws:
SBonitaReadException
-
getNumberOfProcessSupervisors
Get total number of supervisors suit to the specific criteria- Parameters:
searchOptions- The QueryOptions object containing some query conditions- Returns:
- a list of SSupervisor objects
- Throws:
SBonitaReadException
-