Class CreateResourceServiceImpl

    • Method Detail

      • perform

        public void perform​(Transaction tx,
                            String userPrincipal,
                            FedoraId fedoraId,
                            String contentType,
                            String filename,
                            long contentSize,
                            List<String> linkHeaders,
                            Collection<URI> digest,
                            InputStream requestBody,
                            ExternalContent externalContent)
        Description copied from interface: CreateResourceService
        Create a new NonRdfSource resource.
        Specified by:
        perform in interface CreateResourceService
        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

        public void perform​(Transaction tx,
                            String userPrincipal,
                            FedoraId fedoraId,
                            List<String> linkHeaders,
                            org.apache.jena.rdf.model.Model model)
        Description copied from interface: CreateResourceService
        Create a new RdfSource resource.
        Specified by:
        perform in interface CreateResourceService
        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