Class ScanFileBlobHolder
- java.lang.Object
-
- org.nuxeo.ecm.core.api.blobholder.AbstractBlobHolder
-
- org.nuxeo.ecm.core.api.blobholder.SimpleBlobHolder
-
- org.nuxeo.ecm.platform.scanimporter.service.ScanFileBlobHolder
-
- All Implemented Interfaces:
BlobHolder
public class ScanFileBlobHolder extends SimpleBlobHolder
Extended implementation ofBlobHolder
- stores properties extracted from XML - stores documentType extracted from XML- Author:
- Thierry Delprat
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,Serializable>
properties
protected String
targetType
-
Fields inherited from class org.nuxeo.ecm.core.api.blobholder.SimpleBlobHolder
blobs, creationDate
-
-
Constructor Summary
Constructors Constructor Description ScanFileBlobHolder(List<Blob> blobs, Map<String,Serializable> properties, String targetType)
ScanFileBlobHolder(Blob blob, String targetType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Serializable>
getProperties()
Returns all properties as a Map.Serializable
getProperty(String name)
Returns a named property.String
getTargetType()
-
Methods inherited from class org.nuxeo.ecm.core.api.blobholder.SimpleBlobHolder
getBasePath, getBlob, getBlobs, getModificationDate, init, setBlob
-
Methods inherited from class org.nuxeo.ecm.core.api.blobholder.AbstractBlobHolder
getFilePath, getHash, getMD5Digest
-
-
-
-
Field Detail
-
properties
protected final Map<String,Serializable> properties
-
targetType
protected String targetType
-
-
Method Detail
-
getProperty
public Serializable getProperty(String name)
Description copied from interface:BlobHolder
Returns a named property.- Specified by:
getProperty
in interfaceBlobHolder
- Overrides:
getProperty
in classSimpleBlobHolder
-
getProperties
public Map<String,Serializable> getProperties()
Description copied from interface:BlobHolder
Returns all properties as a Map.- Specified by:
getProperties
in interfaceBlobHolder
- Overrides:
getProperties
in classSimpleBlobHolder
-
getTargetType
public String getTargetType()
-
-