Package org.fcrepo.kernel.api.services
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 Summary
Modifier and TypeMethodDescriptionvoidperform(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.default voidperform(Transaction tx, String userPrincipal, FedoraId fedoraId, List<String> linkHeaders, org.apache.jena.rdf.model.Model model) voidperform(Transaction tx, String userPrincipal, FedoraId fedoraId, List<String> linkHeaders, org.apache.jena.rdf.model.Model model, boolean isOverwrite) Create a new RdfSource resource.
-
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 servicefedoraId- The internal identifier of the resource.contentType- The content-type header or null if none.filename- The original filename of the binarycontentSize- The size of the content streamlinkHeaders- 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
-
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 servicefedoraId- The internal identifier of the resourcelinkHeaders- The original LINK headers or null if none.model- The request body RDF as a ModelisOverwrite- if the new resource is overwriting a tombstone
-