Class FileWithIndividualMetadasSourceNode
- java.lang.Object
-
- org.nuxeo.ecm.platform.importer.source.FileSourceNode
-
- org.nuxeo.ecm.platform.importer.source.FileWithIndividualMetadasSourceNode
-
- All Implemented Interfaces:
SourceNode
public class FileWithIndividualMetadasSourceNode extends FileSourceNode
SourceNode
implementation that manages Meta-data from properties files per documentThe properties are mapped by the collector using as key the path of the file/folder to import.
-
-
Field Summary
Fields Modifier and Type Field Description protected static IndividualMetadataCollector
collector
static String
PROPERTY_FILE_SUFFIX
static String
PROPERTY_FILE_SUFIX
Deprecated.since 8.3 misspelled-
Fields inherited from class org.nuxeo.ecm.platform.importer.source.FileSourceNode
file
-
-
Constructor Summary
Constructors Constructor Description FileWithIndividualMetadasSourceNode(File file)
FileWithIndividualMetadasSourceNode(String path)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BlobHolder
getBlobHolder()
List<SourceNode>
getChildren()
static String
getFileNameNoExt(File file)
Map<String,Serializable>
getMetadataForFolderishNode()
protected boolean
isPropertyFile(File file)
Deprecated.since 8.3 unused.protected FileWithIndividualMetadasSourceNode
newInstance(File file)
-
Methods inherited from class org.nuxeo.ecm.platform.importer.source.FileSourceNode
getFile, getName, getSourcePath, isFolderish
-
-
-
-
Field Detail
-
PROPERTY_FILE_SUFFIX
public static final String PROPERTY_FILE_SUFFIX
- See Also:
- Constant Field Values
-
PROPERTY_FILE_SUFIX
@Deprecated public static final String PROPERTY_FILE_SUFIX
Deprecated.since 8.3 misspelled- See Also:
- Constant Field Values
-
collector
protected static IndividualMetadataCollector collector
-
-
Method Detail
-
newInstance
protected FileWithIndividualMetadasSourceNode newInstance(File file)
-
getBlobHolder
public BlobHolder getBlobHolder() throws IOException
- Specified by:
getBlobHolder
in interfaceSourceNode
- Overrides:
getBlobHolder
in classFileSourceNode
- Throws:
IOException
-
getMetadataForFolderishNode
public Map<String,Serializable> getMetadataForFolderishNode()
-
getChildren
public List<SourceNode> getChildren()
- Specified by:
getChildren
in interfaceSourceNode
- Overrides:
getChildren
in classFileSourceNode
-
isPropertyFile
@Deprecated protected boolean isPropertyFile(File file)
Deprecated.since 8.3 unused.
-
-