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 java.lang.Object

Static helper methods for document models.

Author:
Bogdan Stefanescu

Method Summary
static void loadData(DocumentModel doc, java.util.Map<java.lang.String,java.lang.Object> dataMap)
           
static void loadData(DocumentModel doc, java.lang.String schemaName, java.util.Map<java.lang.String,java.lang.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,
                            java.lang.String schemaName,
                            java.util.Map<java.lang.String,java.lang.Object> dataMap)
                     throws TypeException
Fills a DocumentModel with data from a given data map.

Throws:
TypeException

loadData

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

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.