Nuxeo Enterprise Platform 5.1

org.nuxeo.ecm.platform.relations.adapters
Class DocumentModelResourceAdapter

java.lang.Object
  extended by org.nuxeo.ecm.platform.relations.api.impl.AbstractResourceAdapter
      extended by org.nuxeo.ecm.platform.relations.adapters.DocumentModelResourceAdapter
All Implemented Interfaces:
Serializable, ResourceAdapter
Direct Known Subclasses:
DocumentModelResourceAdapter

public class DocumentModelResourceAdapter
extends AbstractResourceAdapter
implements Serializable

Resource adapter using the document model id.

Author:
Anahide Tchertchian
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.nuxeo.ecm.platform.relations.api.impl.AbstractResourceAdapter
namespace
 
Constructor Summary
DocumentModelResourceAdapter()
           
 
Method Summary
 Class<?> getKlass()
           
 Resource getResource(Object object)
          Transform an incoming object into a Resource
 Object getResourceRepresentation(Resource resource)
          Resolve the resource to an applicative representation, for instance a DocumentModel,
 
Methods inherited from class org.nuxeo.ecm.platform.relations.api.impl.AbstractResourceAdapter
getNamespace, setNamespace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentModelResourceAdapter

public DocumentModelResourceAdapter()
Method Detail

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
Overrides:
getResourceRepresentation in class AbstractResourceAdapter
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
Overrides:
getResource in class AbstractResourceAdapter
Parameters:
object - TODO Serializable
Returns:
the resource

getKlass

public Class<?> getKlass()
Specified by:
getKlass in interface ResourceAdapter
Overrides:
getKlass in class AbstractResourceAdapter
Returns:
the class being adapted

Nuxeo Enterprise Platform 5.1

Copyright ? 2007 Nuxeo SAS. All Rights Reserved.