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>propertiesprotected StringtargetType-
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.SerializablegetProperty(String name)Returns a named property.StringgetTargetType()-
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:BlobHolderReturns a named property.- Specified by:
getPropertyin interfaceBlobHolder- Overrides:
getPropertyin classSimpleBlobHolder
-
getProperties
public Map<String,Serializable> getProperties()
Description copied from interface:BlobHolderReturns all properties as a Map.- Specified by:
getPropertiesin interfaceBlobHolder- Overrides:
getPropertiesin classSimpleBlobHolder
-
getTargetType
public String getTargetType()
-
-