public abstract class AbstractResource extends Object
| Modifier and Type | Field and Description |
|---|---|
protected 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 NodeService |
nodeService
The fcrepo node service
|
protected ObjectService |
objectService
The fcrepo object service
|
protected 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(FedoraResource resource,
com.hp.hpl.jena.query.Dataset dataset,
javax.ws.rs.core.UriInfo uriInfo,
GraphSubjects subjects) |
protected FedoraResource |
createObjectOrDatastreamFromRequestContent(Class<?> pathsRelativeTo,
javax.jcr.Session session,
String path,
String mixin,
javax.ws.rs.core.UriInfo uriInfo,
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 NodeService nodeService
@Autowired protected ObjectService objectService
@Autowired protected DatastreamService datastreamService
@Autowired(required=false) protected com.google.common.eventbus.EventBus eventBus
@Autowired protected 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 FedoraResource createObjectOrDatastreamFromRequestContent(Class<?> pathsRelativeTo, javax.jcr.Session session, String path, String mixin, javax.ws.rs.core.UriInfo uriInfo, InputStream requestBodyStream, javax.ws.rs.core.MediaType requestContentType, URI checksum) throws javax.jcr.RepositoryException, InvalidChecksumException, IOException
javax.jcr.RepositoryExceptionInvalidChecksumExceptionIOExceptionprotected void addResponseInformationToDataset(FedoraResource resource, com.hp.hpl.jena.query.Dataset dataset, javax.ws.rs.core.UriInfo uriInfo, GraphSubjects subjects) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionCopyright © 2013 DuraSpace, Inc.. All Rights Reserved.