public abstract class AbstractResource extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.fcrepo.kernel.services.DatastreamService |
datastreamService
The fcrepo datastream service
|
protected com.google.common.eventbus.EventBus |
eventBus |
protected static org.modeshape.jcr.api.JcrTools |
jcrTools
A convenience object provided by ModeShape for acting against the JCR
repository.
|
protected org.fcrepo.kernel.services.NodeService |
nodeService
The fcrepo node service
|
protected org.fcrepo.kernel.services.ObjectService |
objectService
The fcrepo object service
|
protected org.fcrepo.kernel.identifiers.PidMinter |
pidMinter
A resource that can mint new Fedora PIDs.
|
protected SessionFactory |
sessions |
protected javax.ws.rs.core.UriInfo |
uriInfo
Useful for constructing URLs
|
| Constructor and Description |
|---|
AbstractResource() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addResponseInformationToDataset(org.fcrepo.kernel.FedoraResource resource,
com.hp.hpl.jena.query.Dataset dataset,
javax.ws.rs.core.UriInfo uriInfo,
org.fcrepo.kernel.rdf.GraphSubjects subjects) |
protected org.fcrepo.kernel.FedoraResource |
createObjectOrDatastreamFromRequestContent(javax.jcr.Session session,
String path,
String mixin,
org.fcrepo.kernel.rdf.GraphSubjects subjects,
InputStream requestBodyStream,
javax.ws.rs.core.MediaType requestContentType,
URI checksum) |
void |
initialize()
Initialize our resource
|
static String |
toPath(List<javax.ws.rs.core.PathSegment> paths)
Convert a JAX-RS list of PathSegments to a JCR path
|
@Context protected javax.ws.rs.core.UriInfo uriInfo
@Autowired protected SessionFactory sessions
@Autowired protected org.fcrepo.kernel.services.NodeService nodeService
@Autowired protected org.fcrepo.kernel.services.ObjectService objectService
@Autowired protected org.fcrepo.kernel.services.DatastreamService datastreamService
@Autowired(required=false) protected com.google.common.eventbus.EventBus eventBus
@Autowired protected org.fcrepo.kernel.identifiers.PidMinter pidMinter
protected static final org.modeshape.jcr.api.JcrTools jcrTools
@PostConstruct public void initialize() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic static final String toPath(List<javax.ws.rs.core.PathSegment> paths)
paths - protected org.fcrepo.kernel.FedoraResource createObjectOrDatastreamFromRequestContent(javax.jcr.Session session,
String path,
String mixin,
org.fcrepo.kernel.rdf.GraphSubjects subjects,
InputStream requestBodyStream,
javax.ws.rs.core.MediaType requestContentType,
URI checksum)
throws javax.jcr.RepositoryException,
org.fcrepo.kernel.exception.InvalidChecksumException,
IOException
javax.jcr.RepositoryExceptionorg.fcrepo.kernel.exception.InvalidChecksumExceptionIOExceptionprotected void addResponseInformationToDataset(org.fcrepo.kernel.FedoraResource resource,
com.hp.hpl.jena.query.Dataset dataset,
javax.ws.rs.core.UriInfo uriInfo,
org.fcrepo.kernel.rdf.GraphSubjects subjects)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionCopyright © 2013 DuraSpace, Inc.. All rights reserved.