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 Stringprefixprotected 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 StringgetLocalName(String uri)StringgetPrefix()Returns the prefix to use as marker for this adapterMap<String,String>getProperties()Return specific properties for this adapter.StringgetProperty(String name)Return property with gievn name.voidsetPrefix(String prefix)Sets the prefix to use as marker for this adaptervoidsetProperties(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:ExternalBlobAdapterReturns the prefix to use as marker for this adapter- Specified by:
getPrefixin interfaceExternalBlobAdapter
-
setPrefix
public void setPrefix(String prefix)
Description copied from interface:ExternalBlobAdapterSets the prefix to use as marker for this adapter- Specified by:
setPrefixin interfaceExternalBlobAdapter
-
getProperties
public Map<String,String> getProperties()
Description copied from interface:ExternalBlobAdapterReturn specific properties for this adapter. Can be used for whatever useful property.- Specified by:
getPropertiesin interfaceExternalBlobAdapter
-
getProperty
public String getProperty(String name)
Description copied from interface:ExternalBlobAdapterReturn property with gievn name.Returns null if no property value is found.
- Specified by:
getPropertyin interfaceExternalBlobAdapter
-
setProperties
public void setProperties(Map<String,String> properties)
Description copied from interface:ExternalBlobAdapterSet specific properties for this adapter. Can be used for whatever useful property.- Specified by:
setPropertiesin interfaceExternalBlobAdapter
-
getLocalName
public String getLocalName(String uri) throws PropertyException
- Throws:
PropertyException
-
-