Interface IngestExternalClient
-
- All Superinterfaces:
java.lang.AutoCloseable,MockOrRestClient,VitamAutoCloseable
public interface IngestExternalClient extends MockOrRestClient
Ingest external interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.ws.rs.core.ResponsedownloadObjectAsync(VitamContext vitamContext, java.lang.String objectId, IngestCollection type)Download object stored by ingest operation
The caller is responsible to close the Response after consuming the inputStream.RequestResponse<java.lang.Void>ingest(VitamContext vitamContext, java.io.InputStream stream, IngestRequestParameters ingestRequestParameters)ingest upload file in local and launch an ingest workflowRequestResponse<java.lang.Void>ingest(VitamContext vitamContext, java.io.InputStream stream, java.lang.String contextId, java.lang.String action)ingest upload file in local and launch an ingest workflowRequestResponse<java.lang.Void>ingestLocal(VitamContext vitamContext, LocalFile localFile, IngestRequestParameters ingestRequestParameters)ingest a file that has been uploaded locally on a vitam folder then launch an ingest workflowRequestResponse<java.lang.Void>ingestLocal(VitamContext vitamContext, LocalFile localFile, java.lang.String contextId, java.lang.String action)ingest a file that has been uploaded locally on a vitam folder then launch an ingest workflow-
Methods inherited from interface fr.gouv.vitam.common.client.MockOrRestClient
checkStatus, checkStatus, close, consumeAnyEntityAndClose, getResourcePath, getServiceUrl
-
-
-
-
Method Detail
-
ingest
RequestResponse<java.lang.Void> ingest(VitamContext vitamContext, java.io.InputStream stream, java.lang.String contextId, java.lang.String action) throws IngestExternalException
ingest upload file in local and launch an ingest workflow- Parameters:
vitamContext- the vitam contextstream-contextId- a type of ingest among "DEFAULT_WORKFLOW" (Sip ingest), "HOLDING_SCHEME" (tree) "FILING_SCHEME" (plan) and "BLANK_TEST" (Sip ingest test)action- an action as a string among "RESUME" (launch workflow entirely) and "NEXT" (launch ingest in step by step mode)- Returns:
- response
- Throws:
IngestExternalException
-
ingest
RequestResponse<java.lang.Void> ingest(VitamContext vitamContext, java.io.InputStream stream, IngestRequestParameters ingestRequestParameters) throws IngestExternalException
ingest upload file in local and launch an ingest workflow- Parameters:
vitamContext- the vitam contextstream- sip input streamingestRequestParameters- ingest request parameters- Returns:
- response
- Throws:
IngestExternalException
-
downloadObjectAsync
javax.ws.rs.core.Response downloadObjectAsync(VitamContext vitamContext, java.lang.String objectId, IngestCollection type) throws VitamClientException
Download object stored by ingest operation
The caller is responsible to close the Response after consuming the inputStream.- Parameters:
vitamContext- the vitam contextobjectId-type-- Returns:
- object as stream
- Throws:
VitamClientException
-
ingestLocal
RequestResponse<java.lang.Void> ingestLocal(VitamContext vitamContext, LocalFile localFile, java.lang.String contextId, java.lang.String action) throws IngestExternalException
ingest a file that has been uploaded locally on a vitam folder then launch an ingest workflow- Parameters:
vitamContext- the vitam contextlocalFile- the localFile informationcontextId- a type of ingest among "DEFAULT_WORKFLOW" (Sip ingest), "HOLDING_SCHEME" (tree) "FILING_SCHEME" (plan) and "BLANK_TEST" (Sip ingest test)action- an action as a string among "RESUME" (launch workflow entirely) and "NEXT" (launch ingest in step by step mode)- Returns:
- response
- Throws:
IngestExternalException
-
ingestLocal
RequestResponse<java.lang.Void> ingestLocal(VitamContext vitamContext, LocalFile localFile, IngestRequestParameters ingestRequestParameters) throws IngestExternalException
ingest a file that has been uploaded locally on a vitam folder then launch an ingest workflow- Parameters:
vitamContext- the vitam contextlocalFile- the localFile informationingestRequestParameters- ingest request parameters- Returns:
- response
- Throws:
IngestExternalException
-
-