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.
|
void |
initVitamProcess(String contextId,
String container,
String workflow)
initVitamProcess
|
void |
initWorkFlow(String 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,
String contextId)
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
|
javax.ws.rs.core.Response |
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, String contextId) throws VitamException
IngestInternalClientupload in interface IngestInternalClientinputStream - SIParchiveType - is a format (mime type) of SIP (should be zip ,tar, tar.gz or tar.bz2)contextId - context IdentifierVitamException - if stream is nullpublic javax.ws.rs.core.Response uploadInitialLogbook(Iterable<LogbookOperationParameters> logbookParametersList) throws VitamException
IngestInternalClientuploadInitialLogbook in interface IngestInternalClientVitamExceptionpublic 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
OperationManagementClientgetOperationProcessStatus in interface OperationManagementClientid - : operation identifier*VitamClientExceptionpublic ItemStatus getOperationProcessExecutionDetails(String id) throws VitamClientException
OperationManagementClientgetOperationProcessExecutionDetails in interface OperationManagementClientid - : operation identifierVitamClientExceptionpublic ItemStatus cancelOperationProcessExecution(String id) throws VitamClientException
OperationManagementClientcancelOperationProcessExecution in interface OperationManagementClientid - : operation identifierVitamClientExceptionpublic RequestResponse<ItemStatus> updateOperationActionProcess(String actionId, String operationId) throws VitamClientException
OperationManagementClientupdateOperationActionProcess in interface OperationManagementClientactionId - : 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
OperationManagementClientexecuteOperationProcess in interface OperationManagementClientoperationId - 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(String contextId) throws VitamClientException, VitamException
OperationManagementClientinitWorkFlow in interface OperationManagementClientcontextId - :define the execution context of workflowVitamClientExceptionVitamExceptionpublic void initVitamProcess(String contextId, String container, String workflow) throws InternalServerException, VitamClientException, BadRequestException
OperationManagementClientinitVitamProcess in interface OperationManagementClientInternalServerExceptionVitamClientExceptionBadRequestExceptionpublic RequestResponse<ProcessDetail> listOperationsDetails(ProcessQuery query) throws VitamClientInternalException
OperationManagementClientlistOperationsDetails in interface OperationManagementClientquery - Query modelVitamClientInternalExceptionpublic RequestResponse<WorkFlow> getWorkflowDefinitions() throws VitamClientException
OperationManagementClientgetWorkflowDefinitions in interface OperationManagementClientVitamClientExceptionCopyright © 2018 Vitam. All rights reserved.