org.nuxeo.ecm.platform.relations.api.impl
Class AbstractResourceAdapter
java.lang.Object
org.nuxeo.ecm.platform.relations.api.impl.AbstractResourceAdapter
- All Implemented Interfaces:
- ResourceAdapter
- Direct Known Subclasses:
- DocumentModelResourceAdapter, PropertyResourceAdapter
public abstract class AbstractResourceAdapter
- extends Object
- implements ResourceAdapter
- Author:
- Anahide Tchertchian
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
namespace
protected String namespace
AbstractResourceAdapter
public AbstractResourceAdapter()
getNamespace
public String getNamespace()
- Specified by:
getNamespace in interface ResourceAdapter
setNamespace
public void setNamespace(String namespace)
- Specified by:
setNamespace in interface ResourceAdapter
getResourceRepresentation
public Object getResourceRepresentation(Resource resource)
- Description copied from interface:
ResourceAdapter
- Resolve the resource to an applicative representation,
for instance a DocumentModel,
- Specified by:
getResourceRepresentation in interface ResourceAdapter
- Returns:
- the representation TODO Serializable
getResource
public Resource getResource(Object object)
- Description copied from interface:
ResourceAdapter
- Transform an incoming object into a Resource
- Specified by:
getResource in interface ResourceAdapter
- Parameters:
object - TODO Serializable
- Returns:
- the resource
getKlass
public Class<?> getKlass()
- Specified by:
getKlass in interface ResourceAdapter
- Returns:
- the class being adapted
Copyright ? 2007 Nuxeo SAS. All Rights Reserved.