public abstract class FedoraBaseResource extends AbstractResource
Modifier and Type | Field and Description |
---|---|
protected IdentifierConverter<org.apache.jena.rdf.model.Resource,FedoraResource> |
idTranslator |
protected javax.ws.rs.core.SecurityContext |
securityContext |
protected HttpSession |
session |
binaryService, containerService, defaultPidMinter, headers, nodeService, pidMinter, uriInfo, versionService
Constructor and Description |
---|
FedoraBaseResource() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.jena.graph.Node |
asNode(FedoraResource resource)
This is a helper method for using the idTranslator to convert this resource into an associated Jena Node.
|
FedoraResource |
getResourceFromPath(String externalPath)
Get the FedoraResource for the resource at the external path
|
protected String |
getUserPrincipal() |
protected void |
setUpJMSInfo(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.HttpHeaders headers)
Set the baseURL for JMS events.
|
protected IdentifierConverter<org.apache.jena.rdf.model.Resource,FedoraResource> |
translator() |
toPath
@Inject protected HttpSession session
@Context protected javax.ws.rs.core.SecurityContext securityContext
protected IdentifierConverter<org.apache.jena.rdf.model.Resource,FedoraResource> idTranslator
public FedoraBaseResource()
protected IdentifierConverter<org.apache.jena.rdf.model.Resource,FedoraResource> translator()
protected org.apache.jena.graph.Node asNode(FedoraResource resource)
resource
- to be converted into a Jena Nodepublic FedoraResource getResourceFromPath(String externalPath)
externalPath
- the external pathprotected void setUpJMSInfo(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.HttpHeaders headers)
uriInfo
- the uri infoheaders
- HTTP headersprotected String getUserPrincipal()
Copyright © 2013–2019 DuraSpace, Inc.. All rights reserved.