Interface IngestExternalClient
- All Superinterfaces:
AutoCloseable
,MockOrRestClient
,VitamAutoCloseable
Ingest external interface
-
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
downloadObjectAsync
(VitamContext vitamContext, String objectId, IngestCollection type) Download object stored by ingest operation
The caller is responsible to close the Response after consuming the inputStream.ingest
(VitamContext vitamContext, InputStream stream, IngestRequestParameters ingestRequestParameters) ingest upload file in local and launch an ingest workflowingest
(VitamContext vitamContext, InputStream stream, String contextId, String action) ingest upload file in local and launch an ingest workflowingestLocal
(VitamContext vitamContext, LocalFile localFile, IngestRequestParameters ingestRequestParameters) ingest a file that has been uploaded locally on a vitam folder then launch an ingest workflowingestLocal
(VitamContext vitamContext, LocalFile localFile, String contextId, String action) ingest a file that has been uploaded locally on a vitam folder then launch an ingest workflowMethods inherited from interface fr.gouv.vitam.common.client.MockOrRestClient
checkStatus, checkStatus, close, consumeAnyEntityAndClose, getResourcePath, getServiceUrl
-
Method Details
-
ingest
RequestResponse<Void> ingest(VitamContext vitamContext, InputStream stream, String contextId, 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<Void> ingest(VitamContext vitamContext, 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, 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<Void> ingestLocal(VitamContext vitamContext, LocalFile localFile, String contextId, 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<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
-