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, getServiceUrl
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkStatus, checkStatus, close, consumeAnyEntityAndClose, getResourcePath, getServiceUrl
public 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)
IngestInternalClient
upload
in interface IngestInternalClient
inputStream
- 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)
IngestInternalClient
uploadInitialLogbook
in interface IngestInternalClient
public void uploadFinalLogbook(Iterable<LogbookOperationParameters> logbookParametersList)
IngestInternalClient
uploadFinalLogbook
in interface IngestInternalClient
public javax.ws.rs.core.Response downloadObjectAsync(String objectId, IngestCollection type)
IngestInternalClient
downloadObjectAsync
in interface IngestInternalClient
public void storeATR(GUID guid, InputStream input)
IngestInternalClient
storeATR
in interface IngestInternalClient
public ItemStatus getOperationProcessStatus(String id)
IngestInternalClient
getOperationProcessStatus
in interface IngestInternalClient
id
- : operation identifier*public RequestResponse<ItemStatus> getOperationProcessExecutionDetails(String id)
IngestInternalClient
getOperationProcessExecutionDetails
in interface IngestInternalClient
id
- : operation identifierpublic RequestResponse<ItemStatus> cancelOperationProcessExecution(String id)
IngestInternalClient
cancelOperationProcessExecution
in interface IngestInternalClient
id
- : operation identifierpublic RequestResponse<ItemStatus> updateOperationActionProcess(String actionId, String operationId)
IngestInternalClient
updateOperationActionProcess
in interface IngestInternalClient
actionId
- : identify the action to be executed by the workflow(next , pause,resume)operationId
- : operation identifierpublic void initWorkflow(WorkFlow contextId)
IngestInternalClient
initWorkflow
in interface IngestInternalClient
contextId
- informationpublic RequestResponse<ProcessDetail> listOperationsDetails(ProcessQuery query)
IngestInternalClient
listOperationsDetails
in interface IngestInternalClient
query
- Query modelpublic RequestResponse<WorkFlow> getWorkflowDefinitions()
IngestInternalClient
getWorkflowDefinitions
in interface IngestInternalClient
public Optional<WorkFlow> getWorkflowDetails(String WorkflowIdentifier)
getWorkflowDetails
in interface IngestInternalClient
Copyright © 2019 Vitam. All rights reserved.