public class IngestInternalClientMock extends AbstractMockClient implements IngestInternalClient
AbstractMockClient.FakeInboundResponse| Modifier and Type | Field and Description |
|---|---|
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 |
|---|---|
RequestResponse<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<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
public void upload(InputStream inputStream, javax.ws.rs.core.MediaType archiveType, WorkFlow workflowIdentifier, String action)
IngestInternalClientupload in interface IngestInternalClientinputStream - SIParchiveType - is a format (mime type) of SIP (should be zip ,tar, tar.gz or tar.bz2)workflowIdentifier - workflow informationaction - Identifierpublic void uploadInitialLogbook(Iterable<LogbookOperationParameters> logbookParametersList)
IngestInternalClientuploadInitialLogbook in interface IngestInternalClientpublic void uploadFinalLogbook(Iterable<LogbookOperationParameters> logbookParametersList)
IngestInternalClientuploadFinalLogbook in interface IngestInternalClientpublic javax.ws.rs.core.Response downloadObjectAsync(String objectId, IngestCollection type)
IngestInternalClientdownloadObjectAsync in interface IngestInternalClientpublic void storeATR(GUID guid, InputStream input)
IngestInternalClientstoreATR in interface IngestInternalClientpublic ItemStatus getOperationProcessStatus(String id)
IngestInternalClientgetOperationProcessStatus in interface IngestInternalClientid - : operation identifier*public RequestResponse<ItemStatus> getOperationProcessExecutionDetails(String id)
IngestInternalClientgetOperationProcessExecutionDetails in interface IngestInternalClientid - : operation identifierpublic RequestResponse<ItemStatus> cancelOperationProcessExecution(String id)
IngestInternalClientcancelOperationProcessExecution in interface IngestInternalClientid - : operation identifierpublic RequestResponse<ItemStatus> updateOperationActionProcess(String actionId, String operationId)
IngestInternalClientupdateOperationActionProcess in interface IngestInternalClientactionId - : identify the action to be executed by the workflow(next , pause,resume)operationId - : operation identifierpublic void initWorkflow(WorkFlow contextId)
IngestInternalClientinitWorkflow in interface IngestInternalClientcontextId - informationpublic RequestResponse<ProcessDetail> listOperationsDetails(ProcessQuery query)
IngestInternalClientlistOperationsDetails in interface IngestInternalClientquery - Query modelpublic RequestResponse<WorkFlow> getWorkflowDefinitions()
IngestInternalClientgetWorkflowDefinitions in interface IngestInternalClientpublic Optional<WorkFlow> getWorkflowDetails(String WorkflowIdentifier)
getWorkflowDetails in interface IngestInternalClientCopyright © 2019 Vitam. All rights reserved.