public interface SupervisorMappingService
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SUPERVISOR |
| 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
|
static final java.lang.String SUPERVISOR
SProcessSupervisor createProcessSupervisor(SProcessSupervisor supervisor) throws SSupervisorCreationException
supervisor - a SSupervisor objectSSupervisorCreationExceptionSProcessSupervisor getProcessSupervisor(long supervisorId) throws SSupervisorNotFoundException
supervisorId - identifier of supervisorSSupervisorNotFoundExceptionvoid deleteProcessSupervisor(long supervisorId)
throws SSupervisorNotFoundException,
SSupervisorDeletionException
supervisorId - identifier of supervisorSSupervisorNotFoundExceptionSSupervisorDeletionExceptionvoid deleteProcessSupervisor(SProcessSupervisor supervisor) throws SSupervisorDeletionException
supervisor - the supervisor will be deletedSSupervisorDeletionExceptionvoid deleteAllProcessSupervisors()
throws SSupervisorDeletionException
SSupervisorDeletionExceptionjava.lang.Boolean isProcessSupervisor(long processDefinitionId,
long userId)
throws SBonitaReadException
processDefinitionId - identifier of process definitionuserId - identifier of userSBonitaReadExceptionjava.util.List<SProcessSupervisor> searchProcessSupervisors(QueryOptions queryOptions) throws SBonitaReadException
queryOptions - The QueryOptions object containing some query conditionsSBonitaReadExceptionlong getNumberOfProcessSupervisors(QueryOptions searchOptions) throws SBonitaReadException
searchOptions - The QueryOptions object containing some query conditionsSBonitaReadException