|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ObjectConverter
Convert any kind of beans into JCR nodes & properties
Method Summary | |
---|---|
Object |
getObject(Session session,
Class clazz,
String path)
Retrieve an object from the JCR repo |
Object |
getObject(Session session,
String path)
Retrieve an object from the JCR repo |
String |
getPath(Session session,
Object object)
Get the object JCR path |
void |
insert(Session session,
Node parentNode,
String nodeName,
Object object)
Insert the object |
void |
insert(Session session,
Object object)
Insert the object |
void |
retrieveAllMappedAttributes(Session session,
Object object)
Retrieve all mapped attributes for the given persistent object. |
void |
retrieveMappedAttribute(Session session,
Object object,
String attributeName)
Retrieve the specified attribute for the given persistent object. |
void |
update(Session session,
Node objectNode,
Object object)
Update the object |
void |
update(Session session,
Node parentNode,
String nodeName,
Object object)
Update the object |
void |
update(Session session,
Object object)
Update the object |
void |
update(Session session,
String uuId,
Object object)
Update the object |
Method Detail |
---|
void insert(Session session, Object object) throws ObjectContentManagerException
session
- the JCR sessionobject
- the object to insert
ObjectContentManagerException
- when it is not possible to insert the objectvoid update(Session session, Object object) throws ObjectContentManagerException
session
- the JCR sessionobject
- the object to update
ObjectContentManagerException
- when it is not possible to update the objectObject getObject(Session session, String path) throws ObjectContentManagerException
session
- The JCR sessionclazz
- The class assigned to the object to retrievepath
- the JCR path
ObjectContentManagerException
- when it is not possible to retrieve the objectObject getObject(Session session, Class clazz, String path) throws ObjectContentManagerException
session
- The JCR sessionclazz
- The class assigned to the object to retrievepath
- the JCR path
ObjectContentManagerException
- when it is not possible to retrieve the objectvoid retrieveMappedAttribute(Session session, Object object, String attributeName)
session
- The JCR sessionobject
- The persistent objectattributeName
- The name of the attribute to retrievevoid retrieveAllMappedAttributes(Session session, Object object)
session
- The JCR sessionobject
- The persistent objectvoid insert(Session session, Node parentNode, String nodeName, Object object) throws ObjectContentManagerException
session
- the JCR sessionparentNode
- The parent node used to store the new JCR element (object)nodeName
- The node name used to store the objectobject
- the object to insert
ObjectContentManagerException
- when it is not possible to insert the objectvoid update(Session session, Node objectNode, Object object) throws ObjectContentManagerException
session
- the JCR sessionobjectNode
- The node to store the objectobject
- the object to update
ObjectContentManagerException
- when it is not possible to update the objectvoid update(Session session, Node parentNode, String nodeName, Object object) throws ObjectContentManagerException
session
- the JCR sessionparentNode
- The parent node used to store the new JCR element (object)nodeName
- The node name used to store the objectobject
- the object to update
ObjectContentManagerException
- when it is not possible to update the objectvoid update(Session session, String uuId, Object object)
session
- the JCR sessionuuId
- The UUID of the node to get updated.object
- the object to update
ObjectContentManagerException
- when it is not possible to update the objectString getPath(Session session, Object object) throws ObjectContentManagerException
session
- the JCR sessionobject
- the object for which the path has to be retrieve
ObjectContentManagerException
- when it is not possible to retrieve the object path
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |