Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.core.api.impl
Class DocumentHelper

java.lang.Object
  extended by org.nuxeo.ecm.core.api.impl.DocumentHelper

public final class DocumentHelper
extends Object

Static helper methods for document models.

Author:
Bogdan Stefanescu

Method Summary
static void loadData(DocumentModel doc, Map<String,Object> dataMap)
           
static void loadData(DocumentModel doc, String schemaName, Map<String,Object> dataMap)
          Fills a DocumentModel with data from a given data map.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

loadData

public static void loadData(DocumentModel doc,
                            String schemaName,
                            Map<String,Object> dataMap)
                     throws TypeException
Fills a DocumentModel with data from a given data map.

Throws:
TypeException

loadData

public static void loadData(DocumentModel doc,
                            Map<String,Object> dataMap)
                     throws TypeException
Throws:
TypeException

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.