Class DefaultDocumentModelFactory

java.lang.Object
org.nuxeo.ecm.platform.importer.factories.AbstractDocumentModelFactory
org.nuxeo.ecm.platform.importer.factories.DefaultDocumentModelFactory
All Implemented Interfaces:
ImporterDocumentModelFactory
Direct Known Subclasses:
ScanedFileFactory

public class DefaultDocumentModelFactory extends AbstractDocumentModelFactory
Default implementation for DocumentModel factory The default empty constructor create Folder for folderish file and File for other. But you can specify them using the other constructor. Also, if you are using .properties files to setup metada, you can use the ecm:primaryType xpath to specify the type of document to create. This will override the default ones, and works for files and folders. If no .properties file is provided of it the current node has a .properties file but no ecm:primaryType, the default types are created. This works for leafType but also for folderish type.
Author:
Thierry Delprat, Daniel Tellez, Thibaud Arguillere