public class AbstractService extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.modeshape.jcr.api.JcrTools |
jcrTools |
Constructor and Description |
---|
AbstractService() |
Modifier and Type | Method and Description |
---|---|
boolean |
exists(FedoraSession session,
String path)
test node existence at path
|
protected javax.jcr.Node |
findNode(FedoraSession session,
String path) |
protected javax.jcr.Node |
findOrCreateNode(FedoraSession session,
String path,
String finalNodeType) |
static void |
tagHierarchyWithPairtreeMixin(javax.jcr.Node baseNode,
javax.jcr.Node createdNode)
Tag a hierarchy with
FedoraTypes.FEDORA_PAIRTREE |
protected static final org.modeshape.jcr.api.JcrTools jcrTools
public AbstractService()
protected javax.jcr.Node findOrCreateNode(FedoraSession session, String path, String finalNodeType) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected javax.jcr.Node findNode(FedoraSession session, String path)
public static void tagHierarchyWithPairtreeMixin(javax.jcr.Node baseNode, javax.jcr.Node createdNode) throws javax.jcr.RepositoryException
FedoraTypes.FEDORA_PAIRTREE
baseNode
- Top most ancestor that should not be taggedcreatedNode
- Node whose parents should be tagged up to but not including baseNode
javax.jcr.RepositoryException
- if repository exception occurredpublic boolean exists(FedoraSession session, String path)
session
- the sessionpath
- the pathCopyright © 2013–2017 DuraSpace, Inc.. All rights reserved.