Interface IngestInternalClient
-
- All Superinterfaces:
java.lang.AutoCloseable
,MockOrRestClient
,VitamAutoCloseable
- All Known Implementing Classes:
IngestInternalClientMock
public interface IngestInternalClient extends MockOrRestClient
Ingest Internal client interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RequestResponse<ItemStatus>
cancelOperationProcessExecution(java.lang.String id)
cancelOperationProcessExecution : cancel processing operationjavax.ws.rs.core.Response
downloadObjectAsync(java.lang.String objectId, IngestCollection type)
Download object stored by ingest operationRequestResponse<ItemStatus>
getOperationProcessExecutionDetails(java.lang.String id)
getOperationProcessExecutionDetails : get operation processing execution detailsItemStatus
getOperationProcessStatus(java.lang.String id)
getOperationProcessStatus: get operation process status**RequestResponse<WorkFlow>
getWorkflowDefinitions()
Retrieve all the workflow definitions.java.util.Optional<WorkFlow>
getWorkflowDetails(java.lang.String WorkflowIdentifier)
void
initWorkflow(WorkFlow workFlow)
initWorkflow : init workFlow ProcessRequestResponse<ProcessDetail>
listOperationsDetails(ProcessQuery query)
Retrieve all the workflow operationsvoid
saveObjectToWorkspace(java.lang.String id, java.lang.String objectName, java.io.InputStream inputStream)
RequestResponse<ItemStatus>
updateOperationActionProcess(java.lang.String actionId, java.lang.String operationId)
updateOperationActionProcess : update operation processing statusvoid
upload(java.io.InputStream inputStream, javax.ws.rs.core.MediaType archiveType, WorkFlow workflow, java.lang.String action)
Upload compressed SIP as streamvoid
uploadInitialLogbook(java.lang.Iterable<LogbookOperationParameters> logbookParametersList)
Create only Logbook-
Methods inherited from interface fr.gouv.vitam.common.client.MockOrRestClient
checkStatus, checkStatus, close, consumeAnyEntityAndClose, getResourcePath, getServiceUrl
-
-
-
-
Method Detail
-
upload
void upload(java.io.InputStream inputStream, javax.ws.rs.core.MediaType archiveType, WorkFlow workflow, java.lang.String action) throws VitamException
Upload compressed SIP as stream- Parameters:
archiveType
- is a format (mime type) of SIP (should be zip ,tar, tar.gz or tar.bz2)inputStream
- SIPworkflow
- workflow informationaction
- Identifier- Throws:
VitamException
- if stream is null
-
uploadInitialLogbook
void uploadInitialLogbook(java.lang.Iterable<LogbookOperationParameters> logbookParametersList) throws VitamException
Create only Logbook- Parameters:
logbookParametersList
-- Throws:
VitamException
-
downloadObjectAsync
javax.ws.rs.core.Response downloadObjectAsync(java.lang.String objectId, IngestCollection type) throws InvalidParseOperationException, IngestInternalClientServerException, IngestInternalClientNotFoundException
Download object stored by ingest operation- Parameters:
objectId
-type
-- Returns:
- object as stream
- Throws:
InvalidParseOperationException
IngestInternalClientServerException
IngestInternalClientNotFoundException
-
getOperationProcessStatus
ItemStatus getOperationProcessStatus(java.lang.String id) throws VitamClientException, InternalServerException, BadRequestException
getOperationProcessStatus: get operation process status**- Parameters:
id
- : operation identifier*- Returns:
- ItemStatus response containing message and status*
- Throws:
VitamClientException
InternalServerException
BadRequestException
-
getOperationProcessExecutionDetails
RequestResponse<ItemStatus> getOperationProcessExecutionDetails(java.lang.String id) throws VitamClientException
getOperationProcessExecutionDetails : get operation processing execution details- Parameters:
id
- : operation identifier- Returns:
- Engine response containing message and status
- Throws:
VitamClientException
-
cancelOperationProcessExecution
RequestResponse<ItemStatus> cancelOperationProcessExecution(java.lang.String id) throws VitamClientException
cancelOperationProcessExecution : cancel processing operation- Parameters:
id
- : operation identifier- Returns:
- ItemStatus response containing message and status
- Throws:
VitamClientException
-
updateOperationActionProcess
RequestResponse<ItemStatus> updateOperationActionProcess(java.lang.String actionId, java.lang.String operationId) throws VitamClientException
updateOperationActionProcess : update operation processing status- Parameters:
actionId
- : identify the action to be executed by the workflow(next , pause,resume)operationId
- : operation identifier- Returns:
- Response containing message and status
- Throws:
VitamClientException
-
initWorkflow
void initWorkflow(WorkFlow workFlow) throws VitamException
initWorkflow : init workFlow Process- Parameters:
workFlow
- information- Throws:
VitamClientException
VitamException
-
listOperationsDetails
RequestResponse<ProcessDetail> listOperationsDetails(ProcessQuery query) throws VitamClientException
Retrieve all the workflow operations- Parameters:
query
- Query model- Returns:
- All details of the operations
- Throws:
VitamClientException
-
getWorkflowDefinitions
RequestResponse<WorkFlow> getWorkflowDefinitions() throws VitamClientException
Retrieve all the workflow definitions.- Returns:
- workflow definitions
- Throws:
VitamClientException
-
getWorkflowDetails
java.util.Optional<WorkFlow> getWorkflowDetails(java.lang.String WorkflowIdentifier) throws VitamClientException
- Parameters:
WorkflowIdentifier
-- Returns:
- Throws:
VitamClientException
-
saveObjectToWorkspace
void saveObjectToWorkspace(java.lang.String id, java.lang.String objectName, java.io.InputStream inputStream) throws VitamClientException
- Throws:
VitamClientException
-
-