Class ScanedFileFactory
java.lang.Object
org.nuxeo.ecm.platform.importer.factories.AbstractDocumentModelFactory
org.nuxeo.ecm.platform.importer.factories.DefaultDocumentModelFactory
org.nuxeo.ecm.platform.scanimporter.processor.ScanedFileFactory
- All Implemented Interfaces:
ImporterDocumentModelFactory
- Direct Known Subclasses:
AdvancedScannedFileFactory
public class ScanedFileFactory
extends DefaultDocumentModelFactory
implements ImporterDocumentModelFactory
Custom implementation of the
ImporterDocumentModelFactory
. Provides : - container doc type configuration from
service - leaf doc type configuration from service- Author:
- Thierry Delprat
-
Nested Class Summary
Nested classes/interfaces inherited from class org.nuxeo.ecm.platform.importer.factories.AbstractDocumentModelFactory
AbstractDocumentModelFactory.CompatFilenameNormalizer, AbstractDocumentModelFactory.DefaultFilenameNormalizer, AbstractDocumentModelFactory.FilenameNormalizer
-
Field Summary
Fields inherited from class org.nuxeo.ecm.platform.importer.factories.DefaultDocumentModelFactory
DOCTYPE_KEY_NAME, FACETS_KEY_NAME, folderishType, leafType
Fields inherited from class org.nuxeo.ecm.platform.importer.factories.AbstractDocumentModelFactory
filenameNormalizer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateFolderishNode
(CoreSession session, DocumentModel parent, SourceNode node) createLeafNode
(CoreSession session, DocumentModel parent, SourceNode node) protected DocumentModel
defaultCreateLeafNode
(CoreSession session, DocumentModel parent, SourceNode node) protected String
Methods inherited from class org.nuxeo.ecm.platform.importer.factories.DefaultDocumentModelFactory
getDocTypeToUse, getFacetsToUse, getMimeType, setFolderishType, setLeafType
Methods inherited from class org.nuxeo.ecm.platform.importer.factories.AbstractDocumentModelFactory
getValidNameFromFileName, isTargetDocumentModelFolderish, processFolderishNodeCreationError, processLeafNodeCreationError, setDocumentProperties
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.ecm.platform.importer.factories.ImporterDocumentModelFactory
isTargetDocumentModelFolderish, processFolderishNodeCreationError, processLeafNodeCreationError
-
Field Details
-
targetContainerType
-
config
-
-
Constructor Details
-
ScanedFileFactory
-
-
Method Details
-
getTargetContainerType
-
createFolderishNode
public DocumentModel createFolderishNode(CoreSession session, DocumentModel parent, SourceNode node) - Specified by:
createFolderishNode
in interfaceImporterDocumentModelFactory
- Overrides:
createFolderishNode
in classDefaultDocumentModelFactory
-
createLeafNode
public DocumentModel createLeafNode(CoreSession session, DocumentModel parent, SourceNode node) throws IOException - Specified by:
createLeafNode
in interfaceImporterDocumentModelFactory
- Overrides:
createLeafNode
in classDefaultDocumentModelFactory
- Throws:
IOException
-
defaultCreateLeafNode
protected DocumentModel defaultCreateLeafNode(CoreSession session, DocumentModel parent, SourceNode node) throws IOException - Overrides:
defaultCreateLeafNode
in classDefaultDocumentModelFactory
- Throws:
IOException
-