org.hippoecm.hst.content.beans.manager
Interface ObjectBeanManager

All Known Subinterfaces:
ObjectBeanPersistenceManager, WorkflowPersistenceManager
All Known Implementing Classes:
MockObjectBeanPersistenceManager, ObjectBeanManagerImpl, WorkflowPersistenceManagerImpl

public interface ObjectBeanManager

The object content manager encapsulates a JCR session. This is the main component used to manage objects into the JCR repository.

This interface mimics Jackrabbit's one, but this is provided to support more lightweight beans in HST.

Version:
$Id: ObjectBeanManager.java 23823 2010-09-01 10:09:35Z aschrijvers $

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.
 

Method Detail

getObject

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

Parameters:
path - the absolute object path.
Returns:
the object found or null
Throws:
ObjectBeanManagerException - when it is not possible to retrieve the object

getObjectByUuid

Object getObjectByUuid(String uuid)
                       throws ObjectBeanManagerException
Get an object from the JCR repository

Parameters:
the - object uuid
Returns:
the object found or null
Throws:
ObjectBeanManagerException - when it is not possible to retrieve the object

getSession

javax.jcr.Session getSession()
This method returns the JCR session. The JCR session could be used to make some JCR specific calls.

Returns:
the associated JCR session


Copyright © 2008-2012 Hippo. All Rights Reserved.