Class ScanedFileSourceNode
- java.lang.Object
-
- org.nuxeo.ecm.platform.importer.source.FileSourceNode
-
- org.nuxeo.ecm.platform.scanimporter.processor.ScanedFileSourceNode
-
- All Implemented Interfaces:
SourceNode
public class ScanedFileSourceNode extends FileSourceNode
Custom implementation ofSourceNode. Uses XML descriptors to get meta-data and binary files location.- Author:
- Thierry Delprat
-
-
Field Summary
Fields Modifier and Type Field Description protected ScanFileBlobHolderbhprotected Map<String,Serializable>propertiesprotected static booleanuseXMLMapping-
Fields inherited from class org.nuxeo.ecm.platform.importer.source.FileSourceNode
file
-
-
Constructor Summary
Constructors Constructor Description ScanedFileSourceNode(File file)ScanedFileSourceNode(File file, Map<String,Serializable> properties)ScanedFileSourceNode(File file, ScanFileBlobHolder bh)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlobHoldergetBlobHolder()List<SourceNode>getChildren()StringgetDescriptorFileName()StringgetName()-
Methods inherited from class org.nuxeo.ecm.platform.importer.source.FileSourceNode
getFile, getFileNameNoExt, getSourcePath, isFolderish
-
-
-
-
Field Detail
-
properties
protected Map<String,Serializable> properties
-
bh
protected ScanFileBlobHolder bh
-
useXMLMapping
protected static boolean useXMLMapping
-
-
Constructor Detail
-
ScanedFileSourceNode
public ScanedFileSourceNode(File file)
-
ScanedFileSourceNode
public ScanedFileSourceNode(File file, ScanFileBlobHolder bh)
-
ScanedFileSourceNode
public ScanedFileSourceNode(File file, Map<String,Serializable> properties)
-
-
Method Detail
-
getBlobHolder
public BlobHolder getBlobHolder() throws IOException
- Specified by:
getBlobHolderin interfaceSourceNode- Overrides:
getBlobHolderin classFileSourceNode- Throws:
IOException
-
getChildren
public List<SourceNode> getChildren() throws IOException
- Specified by:
getChildrenin interfaceSourceNode- Overrides:
getChildrenin classFileSourceNode- Throws:
IOException
-
getName
public String getName()
- Specified by:
getNamein interfaceSourceNode- Overrides:
getNamein classFileSourceNode
-
getDescriptorFileName
public String getDescriptorFileName()
-
-