public interface IngestExternalClient extends MockOrRestClient
| Modifier and Type | Method and Description |
|---|---|
javax.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. |
RequestResponse<Void> |
ingest(VitamContext vitamContext,
InputStream stream,
String contextId,
String action)
ingest upload file in local and launch an ingest workflow
|
checkStatus, checkStatus, close, consumeAnyEntityAndClose, getResourcePath, getServiceUrlRequestResponse<Void> ingest(VitamContext vitamContext, InputStream stream, String contextId, String action) throws IngestExternalException
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)IngestExternalExceptionjavax.ws.rs.core.Response downloadObjectAsync(VitamContext vitamContext, String objectId, IngestCollection type) throws VitamClientException
vitamContext - the vitam contextobjectId - type - VitamClientExceptionCopyright © 2018 Vitam. All rights reserved.