See org.apache.portals.graffito.store.ContentStore#getCmsObject(String
path). It returns org.apache.portals.graffito.model.core.CmsObject. I
think it means: I want an object stored in repository. I know that
object is repository managed. I know path but not type. Maybe this
situation is equivalent to: /someDirectory/someFileWithoutExtension. I
can use 'file' on unix and it tells me kind of content. In Java I can
use if (returnedObject instanceof Document).
Christophe Lombart wrote:
why not but it should be optional. I would like to use this mapping
framework with JCR repo which are running for a long time without this
kind of "system" properties (but maybe it is a dream :-) ).
Why it is difficult for you to have the object class ? I expect that
you cast the object returned by the getObject method - no ?
eg.
Document myDoc = (MyDoc) pm.getObject(Document.class, path);
it is almost the same as
Document myDoc = (MyDoc) pm.getObject( path);
Let me think about that before taking a decision and all ideas are welcome
Christophe