Package org.fcrepo.kernel.impl.services
Class CreateResourceServiceImpl
- java.lang.Object
-
- org.fcrepo.kernel.impl.services.AbstractService
-
- org.fcrepo.kernel.impl.services.CreateResourceServiceImpl
-
- All Implemented Interfaces:
CreateResourceService
@Component public class CreateResourceServiceImpl extends AbstractService implements CreateResourceService
Create a RdfSource resource.- Author:
- whikloj TODO: bbpennel has thoughts about moving this to HTTP layer.
-
-
Field Summary
-
Fields inherited from class org.fcrepo.kernel.impl.services.AbstractService
containmentIndex, fedoraPropsConfig, membershipService, referenceService, searchIndex, userTypesCache
-
-
Constructor Summary
Constructors Constructor Description CreateResourceServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.void
perform(Transaction tx, String userPrincipal, FedoraId fedoraId, List<String> linkHeaders, org.apache.jena.rdf.model.Model model)
Create a new RdfSource resource.-
Methods inherited from class org.fcrepo.kernel.impl.services.AbstractService
checkAclLinkHeader, determineInteractionModel, ensureValidACLAuthorization, ensureValidDirectContainer, lockArchivalGroupResource, lockParent, recordEvent, updateReferences
-
-
-
-
Constructor Detail
-
CreateResourceServiceImpl
public 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 interfaceCreateResourceService
- 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
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 interfaceCreateResourceService
- 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 Model
-
-