|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.core.api.DocumentModelFactory
public class DocumentModelFactory
DocumentModel factory for document models initialization.
Method Summary | |
---|---|
static DocumentModelImpl |
createDocumentModel(Document doc)
|
static DocumentModelImpl |
createDocumentModel(Document doc,
java.lang.String[] schemas)
|
static DocumentModelImpl |
createDocumentModel(DocumentType docType)
Creates a new document model using only required information to be used on client side. |
static DocumentModelImpl |
createDocumentModel(java.lang.String sessionId,
DocumentType docType)
Creates a new document model using only required information to be used on client side. |
static DocumentModelImpl |
createDocumentModel(java.lang.String parentPath,
java.lang.String id,
DocumentType docType,
java.lang.String[] schemas)
Creates a new document model using only required information to be used on client side. |
static java.util.Map<java.lang.String,java.lang.Object> |
exportComplexProperty(java.lang.String sid,
DocumentRef docRef,
Property property)
|
static DataModel |
exportSchema_OLD(java.lang.String sid,
DocumentRef docRef,
Document doc,
Schema schema)
|
static DataModel |
exportSchema(java.lang.String sid,
DocumentRef docRef,
Document doc,
Schema schema)
|
static DocumentModel |
newDocument(DocumentModel parent,
DocumentType type)
|
static DocumentModel |
newDocument(DocumentModel parent,
java.lang.String type)
|
static DocumentModel |
newDocument(DocumentModel parent,
java.lang.String name,
DocumentType type)
|
static DocumentModel |
newDocument(DocumentModel parent,
java.lang.String name,
java.lang.String type)
|
static java.util.Map<java.lang.String,java.io.Serializable> |
updatePrefetch(DocumentModel docModel)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static DocumentModel newDocument(DocumentModel parent, java.lang.String type)
public static DocumentModel newDocument(DocumentModel parent, java.lang.String name, java.lang.String type)
public static DocumentModel newDocument(DocumentModel parent, DocumentType type)
public static DocumentModel newDocument(DocumentModel parent, java.lang.String name, DocumentType type)
public static DocumentModelImpl createDocumentModel(Document doc) throws DocumentException
DocumentException
public static java.util.Map<java.lang.String,java.io.Serializable> updatePrefetch(DocumentModel docModel)
public static DocumentModelImpl createDocumentModel(Document doc, java.lang.String[] schemas) throws DocumentException
DocumentException
public static DocumentModelImpl createDocumentModel(DocumentType docType) throws DocumentException
docType
- The document type
DocumentException
public static DocumentModelImpl createDocumentModel(java.lang.String sessionId, DocumentType docType) throws DocumentException
sessionId
- the CoreSession iddocType
- The document type
DocumentException
public static DocumentModelImpl createDocumentModel(java.lang.String parentPath, java.lang.String id, DocumentType docType, java.lang.String[] schemas) throws DocumentException
parentPath
- the document parent pathid
- the document iddocType
- the document typeschemas
- schemas to take into account when initializing
DocumentException
public static DataModel exportSchema_OLD(java.lang.String sid, DocumentRef docRef, Document doc, Schema schema) throws DocumentException
DocumentException
public static DataModel exportSchema(java.lang.String sid, DocumentRef docRef, Document doc, Schema schema) throws DocumentException
DocumentException
public static java.util.Map<java.lang.String,java.lang.Object> exportComplexProperty(java.lang.String sid, DocumentRef docRef, Property property) throws DocumentException
DocumentException
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |