Class AbstractExternalBlobAdapter
- java.lang.Object
-
- org.nuxeo.ecm.core.api.externalblob.AbstractExternalBlobAdapter
-
- All Implemented Interfaces:
Serializable
,ExternalBlobAdapter
- Direct Known Subclasses:
FileSystemExternalBlobAdapter
public abstract class AbstractExternalBlobAdapter extends Object implements ExternalBlobAdapter
Abstract class for external blob adapters.Provides generic methods
Extend this class if you want your contributions to be robust to interface changes.
- Author:
- Anahide Tchertchian
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected String
prefix
protected Map<String,String>
properties
-
Fields inherited from interface org.nuxeo.ecm.core.api.externalblob.ExternalBlobAdapter
PREFIX_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description AbstractExternalBlobAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLocalName(String uri)
String
getPrefix()
Returns the prefix to use as marker for this adapterMap<String,String>
getProperties()
Return specific properties for this adapter.String
getProperty(String name)
Return property with gievn name.void
setPrefix(String prefix)
Sets the prefix to use as marker for this adaptervoid
setProperties(Map<String,String> properties)
Set specific properties for this adapter.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.ecm.core.api.externalblob.ExternalBlobAdapter
getBlob
-
-
-
-
Method Detail
-
getPrefix
public String getPrefix()
Description copied from interface:ExternalBlobAdapter
Returns the prefix to use as marker for this adapter- Specified by:
getPrefix
in interfaceExternalBlobAdapter
-
setPrefix
public void setPrefix(String prefix)
Description copied from interface:ExternalBlobAdapter
Sets the prefix to use as marker for this adapter- Specified by:
setPrefix
in interfaceExternalBlobAdapter
-
getProperties
public Map<String,String> getProperties()
Description copied from interface:ExternalBlobAdapter
Return specific properties for this adapter. Can be used for whatever useful property.- Specified by:
getProperties
in interfaceExternalBlobAdapter
-
getProperty
public String getProperty(String name)
Description copied from interface:ExternalBlobAdapter
Return property with gievn name.Returns null if no property value is found.
- Specified by:
getProperty
in interfaceExternalBlobAdapter
-
setProperties
public void setProperties(Map<String,String> properties)
Description copied from interface:ExternalBlobAdapter
Set specific properties for this adapter. Can be used for whatever useful property.- Specified by:
setProperties
in interfaceExternalBlobAdapter
-
getLocalName
public String getLocalName(String uri) throws PropertyException
- Throws:
PropertyException
-
-