@Component public class NodeServiceImpl extends AbstractService implements NodeService
jcrTools| Constructor and Description |
|---|
NodeServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
copyObject(FedoraSession session,
String source,
String destination)
Copy an existing object from the source path to the destination path
|
boolean |
exists(FedoraSession session,
String path)
test node existence at path
|
FedoraResource |
find(FedoraSession session,
String path)
Retrieve an existing Fedora resource at the given path
|
FedoraResource |
findOrCreate(FedoraSession session,
String path)
Retrieve a T instance by session and path
|
void |
moveObject(FedoraSession session,
String source,
String destination)
Move an existing object from the source path to the destination path
|
findNode, findOrCreateNode, tagHierarchyWithPairtreeMixinpublic NodeServiceImpl()
public boolean exists(FedoraSession session, String path)
AbstractServiceexists in interface Service<FedoraResource>exists in class AbstractServicesession - the sessionpath - the pathpublic FedoraResource find(FedoraSession session, String path)
find in interface Service<FedoraResource>session - a JCR sessionpath - a JCR pathpublic void copyObject(FedoraSession session, String source, String destination)
copyObject in interface NodeServicesession - a JCR sessionsource - the source pathdestination - the destination pathpublic void moveObject(FedoraSession session, String source, String destination)
moveObject in interface NodeServicesession - the sessionsource - the source pathdestination - the destination pathpublic FedoraResource findOrCreate(FedoraSession session, String path)
ServicefindOrCreate in interface Service<FedoraResource>session - the sessionpath - the pathCopyright © 2013–2018 DuraSpace, Inc.. All rights reserved.