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, 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
protected StatusCode globalStatus
public void upload(InputStream inputStream, javax.ws.rs.core.MediaType archiveType, String contextId) throws VitamException
IngestInternalClient
upload
in interface IngestInternalClient
inputStream
- 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
IngestInternalClient
uploadInitialLogbook
in interface IngestInternalClient
VitamException
public void uploadFinalLogbook(Iterable<LogbookOperationParameters> logbookParametersList) throws VitamClientException
IngestInternalClient
uploadFinalLogbook
in interface IngestInternalClient
VitamClientException
public javax.ws.rs.core.Response downloadObjectAsync(String objectId, IngestCollection type)
IngestInternalClient
downloadObjectAsync
in interface IngestInternalClient
public void storeATR(GUID guid, InputStream input) throws VitamClientException
IngestInternalClient
storeATR
in interface IngestInternalClient
VitamClientException
public ItemStatus getOperationProcessStatus(String id) throws VitamClientException
OperationManagementClient
getOperationProcessStatus
in interface OperationManagementClient
id
- : operation identifier*VitamClientException
public ItemStatus getOperationProcessExecutionDetails(String id) throws VitamClientException
OperationManagementClient
getOperationProcessExecutionDetails
in interface OperationManagementClient
id
- : operation identifierVitamClientException
public ItemStatus cancelOperationProcessExecution(String id) throws VitamClientException
OperationManagementClient
cancelOperationProcessExecution
in interface OperationManagementClient
id
- : operation identifierVitamClientException
public RequestResponse<ItemStatus> updateOperationActionProcess(String actionId, String operationId) throws VitamClientException
OperationManagementClient
updateOperationActionProcess
in interface OperationManagementClient
actionId
- : identify the action to be executed by the workflow(next , pause,resume)operationId
- : operation identifierVitamClientException
public RequestResponse<com.fasterxml.jackson.databind.JsonNode> executeOperationProcess(String operationId, String workflow, String contextId, String actionId) throws 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)VitamClientException
public void initWorkFlow(String contextId) throws VitamClientException, VitamException
OperationManagementClient
initWorkFlow
in interface OperationManagementClient
contextId
- :define the execution context of workflowVitamClientException
VitamException
public 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 VitamClientInternalException
OperationManagementClient
listOperationsDetails
in interface OperationManagementClient
query
- Query modelVitamClientInternalException
public RequestResponse<WorkFlow> getWorkflowDefinitions() throws VitamClientException
OperationManagementClient
getWorkflowDefinitions
in interface OperationManagementClient
VitamClientException
Copyright © 2018 Vitam. All rights reserved.