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 ScanFileBlobHolder
bh
protected Map<String,Serializable>
properties
protected static boolean
useXMLMapping
-
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 BlobHolder
getBlobHolder()
List<SourceNode>
getChildren()
String
getDescriptorFileName()
String
getName()
-
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:
getBlobHolder
in interfaceSourceNode
- Overrides:
getBlobHolder
in classFileSourceNode
- Throws:
IOException
-
getChildren
public List<SourceNode> getChildren() throws IOException
- Specified by:
getChildren
in interfaceSourceNode
- Overrides:
getChildren
in classFileSourceNode
- Throws:
IOException
-
getName
public String getName()
- Specified by:
getName
in interfaceSourceNode
- Overrides:
getName
in classFileSourceNode
-
getDescriptorFileName
public String getDescriptorFileName()
-
-