public class IngestInternalClientMock extends AbstractMockClient implements IngestInternalClient
AbstractMockClient.FakeInboundResponse| Modifier and Type | Field and Description |
|---|---|
protected StatusCode |
globalStatus |
static String |
ID
identifier of execution
|
static String |
MOCK_INGEST_INTERNAL_RESPONSE_STREAM
mock ingest response
|
INTERNAL_SERVER_ERROR| Constructor and Description |
|---|
IngestInternalClientMock() |
| Modifier and Type | Method and Description |
|---|---|
ItemStatus |
cancelOperationProcessExecution(String id)
cancelOperationProcessExecution : cancel processing operation
|
javax.ws.rs.core.Response |
downloadObjectAsync(String objectId,
IngestCollection type)
Download object stored by ingest operation
|
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.
|
Optional<WorkFlow> |
getWorkflowDetails(String WorkflowIdentifier) |
void |
initWorkflow(WorkFlow contextId)
initWorkflow : init workFlow Process
|
RequestResponse<ProcessDetail> |
listOperationsDetails(ProcessQuery query)
Retrieve all the workflow operations
|
void |
storeATR(GUID guid,
InputStream input)
Store ATR in storage
|
RequestResponse<ItemStatus> |
updateOperationActionProcess(String actionId,
String operationId)
updateOperationActionProcess : update operation processing status
|
void |
upload(InputStream inputStream,
javax.ws.rs.core.MediaType archiveType,
WorkFlow workflowIdentifier,
String action)
Upload compressed SIP as stream
|
void |
uploadFinalLogbook(Iterable<LogbookOperationParameters> logbookParametersList)
Finalize the ingest operation by sending back the final Logbook Operation entries from Ingest external
|
void |
uploadInitialLogbook(Iterable<LogbookOperationParameters> logbookParametersList)
Create only Logbook
|
checkStatus, checkStatus, close, consumeAnyEntityAndClose, getResourcePath, getServiceUrlclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckStatus, checkStatus, close, consumeAnyEntityAndClose, getResourcePath, getServiceUrlpublic static final String MOCK_INGEST_INTERNAL_RESPONSE_STREAM
public static final String ID
protected StatusCode globalStatus
public void upload(InputStream inputStream, javax.ws.rs.core.MediaType archiveType, WorkFlow workflowIdentifier, String action) throws VitamException
IngestInternalClientupload in interface IngestInternalClientinputStream - SIParchiveType - is a format (mime type) of SIP (should be zip ,tar, tar.gz or tar.bz2)workflowIdentifier - workflow informationaction - IdentifierVitamException - if stream is nullpublic void uploadInitialLogbook(Iterable<LogbookOperationParameters> logbookParametersList)
IngestInternalClientuploadInitialLogbook in interface IngestInternalClientpublic void uploadFinalLogbook(Iterable<LogbookOperationParameters> logbookParametersList) throws VitamClientException
IngestInternalClientuploadFinalLogbook in interface IngestInternalClientVitamClientExceptionpublic javax.ws.rs.core.Response downloadObjectAsync(String objectId, IngestCollection type)
IngestInternalClientdownloadObjectAsync in interface IngestInternalClientpublic void storeATR(GUID guid, InputStream input) throws VitamClientException
IngestInternalClientstoreATR in interface IngestInternalClientVitamClientExceptionpublic ItemStatus getOperationProcessStatus(String id) throws VitamClientException
IngestInternalClientgetOperationProcessStatus in interface IngestInternalClientid - : operation identifier*VitamClientExceptionpublic ItemStatus getOperationProcessExecutionDetails(String id) throws VitamClientException
IngestInternalClientgetOperationProcessExecutionDetails in interface IngestInternalClientid - : operation identifierVitamClientExceptionpublic ItemStatus cancelOperationProcessExecution(String id) throws VitamClientException
IngestInternalClientcancelOperationProcessExecution in interface IngestInternalClientid - : operation identifierVitamClientExceptionpublic RequestResponse<ItemStatus> updateOperationActionProcess(String actionId, String operationId) throws VitamClientException
IngestInternalClientupdateOperationActionProcess in interface IngestInternalClientactionId - : identify the action to be executed by the workflow(next , pause,resume)operationId - : operation identifierVitamClientExceptionpublic RequestResponse<com.fasterxml.jackson.databind.JsonNode> executeOperationProcess(String operationId, String workflow, String contextId, String actionId) throws VitamClientException
IngestInternalClientexecuteOperationProcess in interface IngestInternalClientoperationId - 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)VitamClientExceptionpublic void initWorkflow(WorkFlow contextId) throws VitamClientException, VitamException
IngestInternalClientinitWorkflow in interface IngestInternalClientcontextId - informationVitamClientExceptionVitamExceptionpublic RequestResponse<ProcessDetail> listOperationsDetails(ProcessQuery query) throws VitamClientInternalException
IngestInternalClientlistOperationsDetails in interface IngestInternalClientquery - Query modelVitamClientInternalExceptionpublic RequestResponse<WorkFlow> getWorkflowDefinitions() throws VitamClientException
IngestInternalClientgetWorkflowDefinitions in interface IngestInternalClientVitamClientExceptionpublic Optional<WorkFlow> getWorkflowDetails(String WorkflowIdentifier) throws VitamClientException
getWorkflowDetails in interface IngestInternalClientVitamClientExceptionCopyright © 2020 Vitam. All rights reserved.