public class IngestExternalImpl extends Object implements IngestExternal
| Modifier and Type | Field and Description |
|---|---|
static String |
INGEST_INT_UPLOAD |
| Constructor and Description |
|---|
IngestExternalImpl(IngestExternalConfiguration config)
Constructor IngestExternalImpl with parameter IngestExternalConfi guration
|
IngestExternalImpl(IngestExternalConfiguration config,
FormatIdentifierFactory formatIdentifierFactory,
IngestInternalClientFactory ingestInternalClientFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
createATRFatalWorkspace(String workflowIdentifier,
String typeProcess,
GUID operationId,
javax.ws.rs.container.AsyncResponse asyncResponse)
This method is called when a workspace exception occurs
|
void |
handleResponseWithATR(GUID operationId,
javax.ws.rs.container.AsyncResponse asyncResponse,
String entity) |
PreUploadResume |
preUploadAndResume(InputStream input,
String workflowIdentifier,
GUID guid,
javax.ws.rs.container.AsyncResponse asyncResponse) |
StatusCode |
upload(PreUploadResume preUploadResume,
String xAction,
GUID guid)
upload the file -- store in local, scan for viruses and then check for supported format (ZIP, TAR, ...)
|
public static final String INGEST_INT_UPLOAD
public IngestExternalImpl(IngestExternalConfiguration config)
config - public IngestExternalImpl(IngestExternalConfiguration config, FormatIdentifierFactory formatIdentifierFactory, IngestInternalClientFactory ingestInternalClientFactory)
public PreUploadResume preUploadAndResume(InputStream input, String workflowIdentifier, GUID guid, javax.ws.rs.container.AsyncResponse asyncResponse) throws IngestExternalException, VitamClientException, WorkspaceClientServerException
preUploadAndResume in interface IngestExternalWorkspaceClientServerException - error when workspace server is downIngestExternalExceptionVitamClientExceptionpublic StatusCode upload(PreUploadResume preUploadResume, String xAction, GUID guid) throws IngestExternalException
IngestExternalupload in interface IngestExternalpreUploadResume - informations returnedIngestExternalException - thrown if an error occurred in workflowpublic void createATRFatalWorkspace(String workflowIdentifier, String typeProcess, GUID operationId, javax.ws.rs.container.AsyncResponse asyncResponse) throws VitamException
workflowIdentifier - typeProcess - operationId - asyncResponse - VitamExceptionCopyright © 2019 Vitam. All rights reserved.