public class ObjectBeanManagerImpl extends Object implements ObjectBeanManager
Modifier and Type | Field and Description |
---|---|
protected ObjectConverter |
objectConverter |
protected javax.jcr.Session |
session |
Constructor and Description |
---|
ObjectBeanManagerImpl(javax.jcr.Session session,
ObjectConverter objectConverter) |
Modifier and Type | Method and Description |
---|---|
Object |
getObject(String path)
Get an object from the JCR repository.
|
Object |
getObjectByUuid(String uuid)
Get an object from the JCR repository
|
javax.jcr.Session |
getSession()
This method returns the JCR session.
|
protected javax.jcr.Session session
protected ObjectConverter objectConverter
public ObjectBeanManagerImpl(javax.jcr.Session session, ObjectConverter objectConverter)
public Object getObject(String path) throws ObjectBeanManagerException
ObjectBeanManager
path
is the absolute object path and must start with a "/"getObject
in interface ObjectBeanManager
path
- the absolute object path.ObjectBeanManagerException
- when it is not possible to retrieve the objectpublic Object getObjectByUuid(String uuid) throws ObjectBeanManagerException
ObjectBeanManager
getObjectByUuid
in interface ObjectBeanManager
uuid
- the object uuidObjectBeanManagerException
- when it is not possible to retrieve the objectpublic javax.jcr.Session getSession()
ObjectBeanManager
getSession
in interface ObjectBeanManager
Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.