Class IngestInternalClientMock
java.lang.Object
fr.gouv.vitam.common.client.AbstractMockClient
fr.gouv.vitam.ingest.internal.client.IngestInternalClientMock
- All Implemented Interfaces:
MockOrRestClient
,VitamAutoCloseable
,IngestInternalClient
,AutoCloseable
Mock client implementation for Ingest Internal
-
Nested Class Summary
Nested classes/interfaces inherited from class fr.gouv.vitam.common.client.AbstractMockClient
AbstractMockClient.FakeInboundResponse
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncancelOperationProcessExecution : cancel processing operationjavax.ws.rs.core.Response
downloadObjectAsync
(String objectId, IngestCollection type) Download object stored by ingest operationgetOperationProcessExecutionDetails : get operation processing execution detailsgetOperationProcessStatus: get operation process status**Retrieve all the workflow definitions.getWorkflowDetails
(String WorkflowIdentifier) void
initWorkflow
(WorkFlow contextId) initWorkflow : init workFlow ProcessRetrieve all the workflow operationsvoid
saveObjectToWorkspace
(String id, String objectName, InputStream inputStream) updateOperationActionProcess
(String actionId, String operationId) updateOperationActionProcess : update operation processing statusvoid
upload
(InputStream inputStream, javax.ws.rs.core.MediaType archiveType, WorkFlow workflowIdentifier, String action) Upload compressed SIP as streamvoid
uploadInitialLogbook
(Iterable<LogbookOperationParameters> logbookParametersList) Create only LogbookMethods inherited from class fr.gouv.vitam.common.client.AbstractMockClient
checkStatus, checkStatus, close, consumeAnyEntityAndClose, getResourcePath, getServiceUrl
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface fr.gouv.vitam.common.client.MockOrRestClient
checkStatus, checkStatus, close, consumeAnyEntityAndClose, getResourcePath, getServiceUrl
-
Field Details
-
ID
identifier of execution- See Also:
-
-
Constructor Details
-
IngestInternalClientMock
public IngestInternalClientMock()
-
-
Method Details
-
upload
public void upload(InputStream inputStream, javax.ws.rs.core.MediaType archiveType, WorkFlow workflowIdentifier, String action) Description copied from interface:IngestInternalClient
Upload compressed SIP as stream- Specified by:
upload
in interfaceIngestInternalClient
- Parameters:
inputStream
- SIParchiveType
- is a format (mime type) of SIP (should be zip ,tar, tar.gz or tar.bz2)workflowIdentifier
- workflow informationaction
- Identifier
-
uploadInitialLogbook
Description copied from interface:IngestInternalClient
Create only Logbook- Specified by:
uploadInitialLogbook
in interfaceIngestInternalClient
-
downloadObjectAsync
Description copied from interface:IngestInternalClient
Download object stored by ingest operation- Specified by:
downloadObjectAsync
in interfaceIngestInternalClient
- Returns:
- object as stream
-
getOperationProcessStatus
Description copied from interface:IngestInternalClient
getOperationProcessStatus: get operation process status**- Specified by:
getOperationProcessStatus
in interfaceIngestInternalClient
- Parameters:
id
- : operation identifier*- Returns:
- ItemStatus response containing message and status*
-
getOperationProcessExecutionDetails
Description copied from interface:IngestInternalClient
getOperationProcessExecutionDetails : get operation processing execution details- Specified by:
getOperationProcessExecutionDetails
in interfaceIngestInternalClient
- Parameters:
id
- : operation identifier- Returns:
- Engine response containing message and status
-
cancelOperationProcessExecution
Description copied from interface:IngestInternalClient
cancelOperationProcessExecution : cancel processing operation- Specified by:
cancelOperationProcessExecution
in interfaceIngestInternalClient
- Parameters:
id
- : operation identifier- Returns:
- ItemStatus response containing message and status
-
updateOperationActionProcess
public RequestResponse<ItemStatus> updateOperationActionProcess(String actionId, String operationId) Description copied from interface:IngestInternalClient
updateOperationActionProcess : update operation processing status- Specified by:
updateOperationActionProcess
in interfaceIngestInternalClient
- Parameters:
actionId
- : identify the action to be executed by the workflow(next , pause,resume)operationId
- : operation identifier- Returns:
- Response containing message and status
-
initWorkflow
Description copied from interface:IngestInternalClient
initWorkflow : init workFlow Process- Specified by:
initWorkflow
in interfaceIngestInternalClient
- Parameters:
contextId
- information
-
listOperationsDetails
Description copied from interface:IngestInternalClient
Retrieve all the workflow operations- Specified by:
listOperationsDetails
in interfaceIngestInternalClient
- Parameters:
query
- Query model- Returns:
- All details of the operations
-
getWorkflowDefinitions
Description copied from interface:IngestInternalClient
Retrieve all the workflow definitions.- Specified by:
getWorkflowDefinitions
in interfaceIngestInternalClient
- Returns:
- workflow definitions
-
getWorkflowDetails
- Specified by:
getWorkflowDetails
in interfaceIngestInternalClient
- Returns:
-
saveObjectToWorkspace
public void saveObjectToWorkspace(String id, String objectName, InputStream inputStream) throws VitamClientException - Specified by:
saveObjectToWorkspace
in interfaceIngestInternalClient
- Throws:
VitamClientException
-