public class ProcessingManagementClientMock extends AbstractMockClient implements ProcessingManagementClient
AbstractMockClient.FakeInboundResponse
INTERNAL_SERVER_ERROR
Modifier and Type | Method and Description |
---|---|
ItemStatus |
cancelOperationProcessExecution(String id)
cancelOperationProcessExecution : cancel processing operation
|
javax.ws.rs.core.Response |
executeCheckTraceabilityWorkFlow(String checkOperationId,
com.fasterxml.jackson.databind.JsonNode query,
String workflow,
String contextId,
String actionId) |
RequestResponse<com.fasterxml.jackson.databind.JsonNode> |
executeOperationProcess(String operationId,
String workflow,
String contextId,
String actionId)
executeOperationProcess : execute an operation processing
|
ItemStatus |
getOperationProcessExecutionDetails(String id)
getOperationProcessExecutionDetails : get operation processing execution details
|
ItemStatus |
getOperationProcessStatus(String id)
getOperationProcessStatus:
get operation process status**
|
RequestResponse<WorkFlow> |
getWorkflowDefinitions()
Retrieve all the workflow definitions.
|
void |
initVitamProcess(String contextId,
ProcessingEntry entry)
initVitamProcess woth processing entry
|
void |
initVitamProcess(String contextId,
String container,
String workflow)
initVitamProcess
|
void |
initWorkFlow(String contextId)
initWorkFlow : init workFlow Process
|
boolean |
isOperationCompleted(String operationId)
Check if process workflow is completed of not TODO Move this method to OperationManagementClient
|
RequestResponse<ProcessDetail> |
listOperationsDetails(ProcessQuery query)
Retrieve all the workflow operations
|
void |
registerWorker(String familyId,
String workerId,
WorkerBean workerDescription)
Register a new worker knowing its family and with a WorkerBean.
|
void |
unregisterWorker(String familyId,
String workerId)
Unregister a worker knowing its family and its workerId.
|
RequestResponse<ItemStatus> |
updateOperationActionProcess(String actionId,
String operationId)
updateOperationActionProcess : update operation processing status
|
checkStatus, checkStatus, close, consumeAnyEntityAndClose, getResourcePath, getServiceUrl
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkStatus, checkStatus, close, consumeAnyEntityAndClose, getResourcePath, getServiceUrl
public boolean isOperationCompleted(String operationId)
ProcessingManagementClient
isOperationCompleted
in interface ProcessingManagementClient
public ItemStatus getOperationProcessStatus(String id) throws VitamClientException, InternalServerException, BadRequestException
OperationManagementClient
getOperationProcessStatus
in interface OperationManagementClient
id
- : operation identifier*VitamClientException
InternalServerException
BadRequestException
public ItemStatus getOperationProcessExecutionDetails(String id) throws VitamClientException, InternalServerException, BadRequestException
OperationManagementClient
getOperationProcessExecutionDetails
in interface OperationManagementClient
id
- : operation identifierVitamClientException
InternalServerException
BadRequestException
public ItemStatus cancelOperationProcessExecution(String id) throws InternalServerException, BadRequestException, VitamClientException
OperationManagementClient
cancelOperationProcessExecution
in interface OperationManagementClient
id
- : operation identifierInternalServerException
BadRequestException
VitamClientException
public RequestResponse<ItemStatus> updateOperationActionProcess(String actionId, String operationId) throws InternalServerException, BadRequestException, VitamClientException
OperationManagementClient
updateOperationActionProcess
in interface OperationManagementClient
actionId
- : identify the action to be executed by the workflow(next , pause,resume)operationId
- : operation identifierInternalServerException
BadRequestException
VitamClientException
public RequestResponse<com.fasterxml.jackson.databind.JsonNode> executeOperationProcess(String operationId, String workflow, String contextId, String actionId) throws InternalServerException, BadRequestException, VitamClientException
OperationManagementClient
executeOperationProcess
in interface OperationManagementClient
operationId
- id of the operationworkflow
- id of the workflowcontextId
- define the execution context of workflowactionId
- identify the action to be executed by the workflow(next , pause,resume)InternalServerException
BadRequestException
VitamClientException
public void initWorkFlow(String contextId) throws VitamException
OperationManagementClient
initWorkFlow
in interface OperationManagementClient
contextId
- :define the execution context of workflowVitamClientException
VitamException
public void registerWorker(String familyId, String workerId, WorkerBean workerDescription) throws ProcessingBadRequestException, WorkerAlreadyExistsException
ProcessingManagementClient
registerWorker
in interface ProcessingManagementClient
familyId
- the id of the family to which the worker has to be registeredworkerId
- the id of the worker to be registeredworkerDescription
- the description of the worker as a workerBeanProcessingBadRequestException
- if a bad request has been sentWorkerAlreadyExistsException
- if the worker family does not existpublic void unregisterWorker(String familyId, String workerId) throws ProcessingBadRequestException
ProcessingManagementClient
unregisterWorker
in interface ProcessingManagementClient
familyId
- the id of the family to which the worker has to be registeredworkerId
- the id of the worker to be registeredProcessingBadRequestException
- if the worker or the family does not existpublic void initVitamProcess(String contextId, String container, String workflow) throws InternalServerException, VitamClientException, BadRequestException
OperationManagementClient
initVitamProcess
in interface OperationManagementClient
InternalServerException
VitamClientException
BadRequestException
public RequestResponse<ProcessDetail> listOperationsDetails(ProcessQuery query) throws VitamClientException
OperationManagementClient
listOperationsDetails
in interface OperationManagementClient
query
- Query modelVitamClientException
public javax.ws.rs.core.Response executeCheckTraceabilityWorkFlow(String checkOperationId, com.fasterxml.jackson.databind.JsonNode query, String workflow, String contextId, String actionId) throws InternalServerException, BadRequestException, WorkflowNotFoundException
executeCheckTraceabilityWorkFlow
in interface ProcessingManagementClient
InternalServerException
BadRequestException
WorkflowNotFoundException
public RequestResponse<WorkFlow> getWorkflowDefinitions() throws VitamClientException
ProcessingManagementClient
getWorkflowDefinitions
in interface OperationManagementClient
getWorkflowDefinitions
in interface ProcessingManagementClient
VitamClientException
public void initVitamProcess(String contextId, ProcessingEntry entry) throws InternalServerException, BadRequestException
ProcessingManagementClient
initVitamProcess
in interface ProcessingManagementClient
InternalServerException
BadRequestException
Copyright © 2018 Vitam. All rights reserved.