Hello.
I have been confronted by some difficulties. 
I use Nuxeo Remote Api to load DocumentModel:

CoreSession session = getSession();
DocumentModel model = session.getDocument(documentId);

After loading I have got an DocumentModel instance with not fully initialized 
fields (some fields are lazy) .
To load this fields I need to execute additional request:

session.getDataModelField(new IdRef(documentId),"uid","uid");

and after - put it into my model. 

model.setProperty();

In other words I must to make many unnecessary steps to fetch needed data;
I can use method - session.getDataModel(id, "dublincore") - but DocumentModel 
haven't setters for DataModel


Is it a way to load DocumentModel with initialized fields? Can I to fetch all 
needed schema values (For example - all values for schema dublincore)?

Alexander.

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to