public interface ObjectConverter
This interface mimics Jackrabbit's one, but this is provided to support more lightweight beans in HST.
Modifier and Type | Method and Description |
---|---|
Class<? extends HippoBean> |
getAnnotatedClassFor(String jcrPrimaryNodeType) |
Object |
getObject(javax.jcr.Node node) |
Object |
getObject(javax.jcr.Node node,
String relPath) |
Object |
getObject(javax.jcr.Session session,
String path) |
Object |
getObject(String uuid,
javax.jcr.Node node) |
Object |
getObject(String uuid,
javax.jcr.Session session) |
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.
|
String getPrimaryObjectType(javax.jcr.Node node) throws ObjectBeanManagerException
node
- to determine the Primary Object Type forObjectBeanManagerException
Object getObject(javax.jcr.Session session, String path) throws ObjectBeanManagerException
ObjectBeanManagerException
Object getObject(javax.jcr.Node node) throws ObjectBeanManagerException
ObjectBeanManagerException
Object getObject(javax.jcr.Node node, String relPath) throws ObjectBeanManagerException
ObjectBeanManagerException
Object getObject(String uuid, javax.jcr.Session session) throws ObjectBeanManagerException
ObjectBeanManagerException
Object getObject(String uuid, javax.jcr.Node node) throws ObjectBeanManagerException
ObjectBeanManagerException
Class<? extends HippoBean> getAnnotatedClassFor(String jcrPrimaryNodeType)
jcrPrimaryNodeType
- Class
for this jcrPrimaryNodeType or null
if no annotated class can be foundCopyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.