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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidperform(String txId, 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.voidperform(String txId, String userPrincipal, FedoraId fedoraId, List<String> linkHeaders, org.apache.jena.rdf.model.Model model)Create a new RdfSource resource.
-
-
-
Method Detail
-
perform
void perform(String txId, 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:
txId- The transaction ID 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
void perform(String txId, String userPrincipal, FedoraId fedoraId, List<String> linkHeaders, org.apache.jena.rdf.model.Model model)
Create a new RdfSource resource.- Parameters:
txId- The transaction ID 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 Model
-
-