Interface CreateResourceService

    • Method Detail

      • perform

        void perform​(Transaction tx,
                     String userPrincipal,
                     FedoraId fedoraId,
                     String contentType,
                     String filename,
                     long contentSize,
                     List<String> linkHeaders,
                     Collection<URI> digest,
                     InputStream requestBody,
                     ExternalContent externalContent)
        Create a new NonRdfSource resource.
        Parameters:
        tx - The transaction for the request.
        userPrincipal - the principal of the user performing the service
        fedoraId - The internal identifier of the resource.
        contentType - The content-type header or null if none.
        filename - The original filename of the binary
        contentSize - The size of the content stream
        linkHeaders - The original LINK headers or null if none.
        digest - The binary digest or null if none.
        requestBody - The request body or null if none.
        externalContent - The external content handler or null if none.
      • perform

        void perform​(Transaction tx,
                     String userPrincipal,
                     FedoraId fedoraId,
                     List<String> linkHeaders,
                     org.apache.jena.rdf.model.Model model)
        Create a new RdfSource resource.
        Parameters:
        tx - The transaction for the request.
        userPrincipal - the principal of the user performing the service
        fedoraId - The internal identifier of the resource
        linkHeaders - The original LINK headers or null if none.
        model - The request body RDF as a Model