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, Node node)
Object
getObject(String uuid, Session session)
Object
getObject(Node node)
Object
getObject(Node node, String relPath)
Object
getObject(Session session, String path)
String
getPrimaryNodeTypeNameFor(Class<? extends HippoBean> hippoBean)
String
getPrimaryObjectType(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(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(Session session, String path) throws ObjectBeanManagerException
- Throws:
ObjectBeanManagerException
-
getObject
Object getObject(Node node) throws ObjectBeanManagerException
- Throws:
ObjectBeanManagerException
-
getObject
Object getObject(Node node, String relPath) throws ObjectBeanManagerException
- Throws:
ObjectBeanManagerException
-
getObject
Object getObject(String uuid, Session session) throws ObjectBeanManagerException
- Throws:
ObjectBeanManagerException
-
getObject
Object getObject(String uuid, 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
-
-