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 theImporterDocumentModelFactory
. 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 Modifier and Type Field Description protected ImporterConfig
config
protected static String
targetContainerType
-
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
Constructors Constructor Description ScanedFileFactory(ImporterConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentModel
createFolderishNode(CoreSession session, DocumentModel parent, SourceNode node)
DocumentModel
createLeafNode(CoreSession session, DocumentModel parent, SourceNode node)
protected DocumentModel
defaultCreateLeafNode(CoreSession session, DocumentModel parent, SourceNode node)
protected String
getTargetContainerType()
-
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 Detail
-
targetContainerType
protected static String targetContainerType
-
config
protected ImporterConfig config
-
-
Constructor Detail
-
ScanedFileFactory
public ScanedFileFactory(ImporterConfig config)
-
-
Method Detail
-
getTargetContainerType
protected String 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
-
-