public class SupervisorMappingServiceImpl extends java.lang.Object implements SupervisorMappingService
SUPERVISOR| Constructor and Description |
|---|
SupervisorMappingServiceImpl(ReadPersistenceService persistenceService,
Recorder recorder,
EventService eventService,
QueriableLoggerService queriableLoggerService) |
| Modifier and Type | Method and Description |
|---|---|
SProcessSupervisor |
createProcessSupervisor(SProcessSupervisor supervisor)
Create supervisor in DB according to the given supervisor
|
void |
deleteAllProcessSupervisors()
Delete all supervisors for the connected tenant
|
void |
deleteProcessSupervisor(long supervisorId)
Delete the id specified supervisor
|
void |
deleteProcessSupervisor(SProcessSupervisor supervisor)
Delete the specific supervisor
|
long |
getNumberOfProcessSupervisors(QueryOptions searchOptions)
Get total number of supervisors suit to the specific criteria
|
SProcessSupervisor |
getProcessSupervisor(long supervisorId)
get supervisor without display name by its id
|
java.lang.Boolean |
isProcessSupervisor(long processDefinitionId,
long userId)
Verify if the id specified user is the supervisor of id specified process definition
|
java.util.List<SProcessSupervisor> |
searchProcessSupervisors(QueryOptions queryOptions)
Search all supervisors suit to the specific criteria
|
public SupervisorMappingServiceImpl(ReadPersistenceService persistenceService, Recorder recorder, EventService eventService, QueriableLoggerService queriableLoggerService)
public SProcessSupervisor createProcessSupervisor(SProcessSupervisor supervisor) throws SSupervisorCreationException
SupervisorMappingServicecreateProcessSupervisor in interface SupervisorMappingServicesupervisor - a SSupervisor objectSSupervisorCreationExceptionpublic SProcessSupervisor getProcessSupervisor(long supervisorId) throws SSupervisorNotFoundException
SupervisorMappingServicegetProcessSupervisor in interface SupervisorMappingServicesupervisorId - identifier of supervisorSSupervisorNotFoundExceptionpublic void deleteProcessSupervisor(long supervisorId)
throws SSupervisorNotFoundException,
SSupervisorDeletionException
SupervisorMappingServicedeleteProcessSupervisor in interface SupervisorMappingServicesupervisorId - identifier of supervisorSSupervisorNotFoundExceptionSSupervisorDeletionExceptionpublic void deleteProcessSupervisor(SProcessSupervisor supervisor) throws SSupervisorDeletionException
SupervisorMappingServicedeleteProcessSupervisor in interface SupervisorMappingServicesupervisor - the supervisor will be deletedSSupervisorDeletionExceptionpublic void deleteAllProcessSupervisors()
throws SSupervisorDeletionException
SupervisorMappingServicedeleteAllProcessSupervisors in interface SupervisorMappingServiceSSupervisorDeletionExceptionpublic java.lang.Boolean isProcessSupervisor(long processDefinitionId,
long userId)
throws SBonitaReadException
SupervisorMappingServiceisProcessSupervisor in interface SupervisorMappingServiceprocessDefinitionId - identifier of process definitionuserId - identifier of userSBonitaReadExceptionpublic java.util.List<SProcessSupervisor> searchProcessSupervisors(QueryOptions queryOptions) throws SBonitaReadException
SupervisorMappingServicesearchProcessSupervisors in interface SupervisorMappingServicequeryOptions - The QueryOptions object containing some query conditionsSBonitaReadExceptionpublic long getNumberOfProcessSupervisors(QueryOptions searchOptions) throws SBonitaReadException
SupervisorMappingServicegetNumberOfProcessSupervisors in interface SupervisorMappingServicesearchOptions - The QueryOptions object containing some query conditionsSBonitaReadException