@Component @Scope(value="prototype") public class FedoraTransform extends AbstractResource
| Modifier and Type | Field and Description |
|---|---|
protected javax.jcr.Session |
session |
datastreamService, eventBus, jcrTools, nodeService, objectService, pidMinter, repositoryService, sessions, uriInfo, versionService| Constructor and Description |
|---|
FedoraTransform() |
| Modifier and Type | Method and Description |
|---|---|
Object |
evaluateLdpathProgram(List<javax.ws.rs.core.PathSegment> pathList,
String program)
Execute an LDpath program transform
|
Object |
evaluateTransform(List<javax.ws.rs.core.PathSegment> pathList,
javax.ws.rs.core.MediaType contentType,
InputStream requestBodyStream)
Get the LDPath output as a JSON stream appropriate for e.g.
|
void |
setUpRepositoryConfiguration()
Register the LDPath configuration tree in JCR
|
addResponseInformationToStream, toPath@InjectedSession protected javax.jcr.Session session
@PostConstruct public void setUpRepositoryConfiguration() throws javax.jcr.RepositoryException, IOException
javax.jcr.RepositoryExceptionIOExceptionSecurityExceptionpublic Object evaluateLdpathProgram(List<javax.ws.rs.core.PathSegment> pathList, String program) throws javax.jcr.RepositoryException
pathList - javax.jcr.RepositoryExceptionpublic Object evaluateTransform(List<javax.ws.rs.core.PathSegment> pathList, @HeaderParam(value="Content-Type") javax.ws.rs.core.MediaType contentType, InputStream requestBodyStream) throws javax.jcr.RepositoryException
pathList - requestBodyStream - javax.jcr.RepositoryExceptionCopyright © 2013-2014 DuraSpace, Inc.. All Rights Reserved.