Interface IngestExternalClient

    • 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 context
        stream -
        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
      • 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 context
        objectId -
        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 context
        localFile - the localFile information
        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