Interface ObjectConverter
-
public interface ObjectConverter
Convert any kind of beans into JCR nodes & properties.This interface mimics Jackrabbit's one, but this is provided to support more lightweight beans in HST.
- Version:
- $Id$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description Class<? extends HippoBean>
getAnnotatedClassFor(String jcrPrimaryNodeType)
Deprecated.Use thegetClassFor
method.default Class<? extends HippoBean>
getClassFor(String jcrPrimaryNodeType)
Object
getObject(String uuid, javax.jcr.Node node)
Object
getObject(String uuid, javax.jcr.Session session)
Object
getObject(javax.jcr.Node node)
Object
getObject(javax.jcr.Node node, String relPath)
Object
getObject(javax.jcr.Session session, String path)
String
getPrimaryNodeTypeNameFor(Class<? extends HippoBean> hippoBean)
String
getPrimaryObjectType(javax.jcr.Node node)
Returns the Primary Node Type for a Node (or a child Node if the Node is a Handle) to be used for Object conversion, possibly using a fallback Node Type if no exact match can be determined.
-
-
-
Method Detail
-
getPrimaryObjectType
String getPrimaryObjectType(javax.jcr.Node node) throws ObjectBeanManagerException
Returns the Primary Node Type for a Node (or a child Node if the Node is a Handle) to be used for Object conversion, possibly using a fallback Node Type if no exact match can be determined.- Parameters:
node
- to determine the Primary Object Type for- Returns:
- Primary Object Type to be used for Object conversion
- Throws:
ObjectBeanManagerException
-
getObject
Object getObject(javax.jcr.Session session, String path) throws ObjectBeanManagerException
- Throws:
ObjectBeanManagerException
-
getObject
Object getObject(javax.jcr.Node node) throws ObjectBeanManagerException
- Throws:
ObjectBeanManagerException
-
getObject
Object getObject(javax.jcr.Node node, String relPath) throws ObjectBeanManagerException
- Throws:
ObjectBeanManagerException
-
getObject
Object getObject(String uuid, javax.jcr.Session session) throws ObjectBeanManagerException
- Throws:
ObjectBeanManagerException
-
getObject
Object getObject(String uuid, javax.jcr.Node node) throws ObjectBeanManagerException
- Throws:
ObjectBeanManagerException
-
getAnnotatedClassFor
Class<? extends HippoBean> getAnnotatedClassFor(String jcrPrimaryNodeType)
Deprecated.Use thegetClassFor
method.- Parameters:
jcrPrimaryNodeType
- Primary node type- Returns:
- the annotated
Class
for this jcrPrimaryNodeType ornull
if no annotated class can be found
-
getClassFor
default Class<? extends HippoBean> getClassFor(String jcrPrimaryNodeType)
- Parameters:
jcrPrimaryNodeType
- Primary node type- Returns:
Class
for this jcrPrimaryNodeType ornull
if no annotated class can be found
-
-