org.hippoecm.hst.content.beans.manager
Class ObjectBeanManagerImpl

java.lang.Object
  extended by org.hippoecm.hst.content.beans.manager.ObjectBeanManagerImpl
All Implemented Interfaces:
ObjectBeanManager
Direct Known Subclasses:
WorkflowPersistenceManagerImpl

public class ObjectBeanManagerImpl
extends Object
implements ObjectBeanManager


Field Summary
protected  ObjectConverter objectConverter
           
protected  javax.jcr.Session session
           
 
Constructor Summary
ObjectBeanManagerImpl(javax.jcr.Session session, ObjectConverter objectConverter)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

session

protected javax.jcr.Session session

objectConverter

protected ObjectConverter objectConverter
Constructor Detail

ObjectBeanManagerImpl

public ObjectBeanManagerImpl(javax.jcr.Session session,
                             ObjectConverter objectConverter)
Method Detail

getObject

public Object getObject(String path)
                 throws ObjectBeanManagerException
Description copied from interface: ObjectBeanManager
Get an object from the JCR repository. path is the absolute object path and must start with a "/"

Specified by:
getObject in interface ObjectBeanManager
Parameters:
path - the absolute object path.
Returns:
the object found or null
Throws:
ObjectBeanManagerException - when it is not possible to retrieve the object

getObjectByUuid

public Object getObjectByUuid(String uuid)
                       throws ObjectBeanManagerException
Description copied from interface: ObjectBeanManager
Get an object from the JCR repository

Specified by:
getObjectByUuid in interface ObjectBeanManager
Returns:
the object found or null
Throws:
ObjectBeanManagerException - when it is not possible to retrieve the object

getSession

public javax.jcr.Session getSession()
Description copied from interface: ObjectBeanManager
This method returns the JCR session. The JCR session could be used to make some JCR specific calls.

Specified by:
getSession in interface ObjectBeanManager
Returns:
the associated JCR session


Copyright © 2008-2012 Hippo. All Rights Reserved.