@Component public class NodeServiceImpl extends AbstractService implements NodeService
jcrTools
Constructor and Description |
---|
NodeServiceImpl() |
Modifier and Type | Method and Description |
---|---|
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
|
void |
moveObject(javax.jcr.Session session,
String source,
String destination)
Move an existing object from the source path to the destination path
|
findNode, findOrCreateNode, tagHierarchyWithPairtreeMixin
public NodeServiceImpl()
public boolean exists(javax.jcr.Session session, String path)
AbstractService
exists
in interface Service<FedoraResource>
exists
in class AbstractService
session
- 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 NodeService
session
- a JCR sessionsource
- the source pathdestination
- the destination pathpublic void moveObject(javax.jcr.Session session, String source, String destination)
moveObject
in interface NodeService
session
- the sessionsource
- the source pathdestination
- the destination pathpublic FedoraResource findOrCreate(javax.jcr.Session session, String path)
Service
findOrCreate
in interface Service<FedoraResource>
session
- the sessionpath
- the pathCopyright © 2013–2016 DuraSpace, Inc.. All rights reserved.