Interface CreateResourceService


public interface CreateResourceService
Interface for a service to create a new resource via a POST request.
Since:
2019-11-05
Author:
whikloj
  • Method Details

    • 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

      default void perform(Transaction tx, String userPrincipal, FedoraId fedoraId, List<String> linkHeaders, org.apache.jena.rdf.model.Model model)
    • perform

      void perform(Transaction tx, String userPrincipal, FedoraId fedoraId, List<String> linkHeaders, org.apache.jena.rdf.model.Model model, boolean isOverwrite)
      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
      isOverwrite - if the new resource is overwriting a tombstone