Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.api.externalblob
Class AbstractExternalBlobAdapter

java.lang.Object
  extended by 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 inherited from interface org.nuxeo.ecm.core.api.externalblob.ExternalBlobAdapter
PREFIX_SEPARATOR
 
Constructor Summary
AbstractExternalBlobAdapter()
           
 
Method Summary
 String getLocalName(String uri)
           
 String getPrefix()
          Returns the prefix to use as marker for this adapter
 Map<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 adapter
 void setProperties(Map<String,String> properties)
          Set specific properties for this adapter.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nuxeo.ecm.core.api.externalblob.ExternalBlobAdapter
getBlob
 

Constructor Detail

AbstractExternalBlobAdapter

public AbstractExternalBlobAdapter()
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 interface ExternalBlobAdapter

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 interface ExternalBlobAdapter

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 interface ExternalBlobAdapter

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 interface ExternalBlobAdapter

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 interface ExternalBlobAdapter

getLocalName

public String getLocalName(String uri)
                    throws PropertyException
Throws:
PropertyException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.