@Component public class NodeServiceImpl extends AbstractService implements NodeService
jcrTools| Constructor and Description |
|---|
NodeServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
FedoraResource |
cast(javax.jcr.Node node)
Retrieve a T instance from a node
|
void |
copyObject(javax.jcr.Session session,
String source,
String destination)
Copy an existing object from the source path to the destination path
|
boolean |
exists(javax.jcr.Session session,
String path)
test node existence at path
|
FedoraResource |
find(javax.jcr.Session session,
String path)
Retrieve an existing Fedora resource at the given path
|
FedoraResource |
findOrCreate(javax.jcr.Session session,
String path)
Retrieve a T instance by session and path
|
RdfStream |
getNodeTypes(javax.jcr.Session session) |
void |
moveObject(javax.jcr.Session session,
String source,
String destination)
Move an existing object from the source path to the destination path
|
void |
registerNodeTypes(javax.jcr.Session session,
InputStream cndStream) |
findNode, findOrCreateNode, tagHierarchyWithPairtreeMixinpublic NodeServiceImpl()
public boolean exists(javax.jcr.Session session, String path)
AbstractServiceexists in interface Service<FedoraResource>exists in class AbstractServicesession - the sessionpath - the pathpublic FedoraResource find(javax.jcr.Session session, String path)
find in interface Service<FedoraResource>session - a JCR sessionpath - a JCR pathpublic void copyObject(javax.jcr.Session session, String source, String destination)
copyObject in interface NodeServicesession - a JCR sessionsource - the source pathdestination - the destination pathpublic void moveObject(javax.jcr.Session session, String source, String destination)
moveObject in interface NodeServicesession - the sessionsource - the source pathdestination - the destination pathpublic RdfStream getNodeTypes(javax.jcr.Session session)
getNodeTypes in interface NodeServicesession - the sessionpublic void registerNodeTypes(javax.jcr.Session session, InputStream cndStream) throws IOException
registerNodeTypes in interface NodeServicesession - the sessioncndStream - the cnd streamIOException - if io exception occurredpublic FedoraResource findOrCreate(javax.jcr.Session session, String path)
ServicefindOrCreate in interface Service<FedoraResource>session - the sessionpath - the pathpublic FedoraResource cast(javax.jcr.Node node)
Servicecast in interface Service<FedoraResource>node - the nodeCopyright © 2013–2015 DuraSpace, Inc.. All rights reserved.