public class AbstractService extends Object
Modifier and Type | Field and Description |
---|---|
protected static Set<String> |
registeredPrefixes |
Constructor and Description |
---|
AbstractService() |
Modifier and Type | Method and Description |
---|---|
static String |
decodePath(String path,
FedoraSession session)
Decode colons when they are NOT preceded by a registered prefix.
|
static String |
encodePath(String path,
FedoraSession session)
Encode colons when they are NOT preceded by a registered prefix.
|
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) |
protected static Set<String> |
registeredPrefixes(javax.jcr.Session session)
Get the prefixes in the JCR NamespaceRegistry
|
protected static Set<String> registeredPrefixes
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 String encodePath(String path, FedoraSession session)
path
- the pathsession
- a JCR sessionpublic static String decodePath(String path, FedoraSession session)
path
- the pathsession
- a JCR sessionpublic boolean exists(FedoraSession session, String path)
session
- the sessionpath
- the pathprotected static Set<String> registeredPrefixes(javax.jcr.Session session)
session
- current JCR SessionCopyright © 2013–2019 DuraSpace, Inc.. All rights reserved.