Nuxeo Enterprise Platform 5.1

org.nuxeo.ecm.platform.relations.api
Interface ResourceAdapter

All Known Implementing Classes:
AbstractResourceAdapter, DocumentModelResourceAdapter, DocumentModelResourceAdapter, PropertyResourceAdapter

public interface ResourceAdapter

Adapter to transform any java Object into a qualified name resource and conversely. TODO should use Serializable instead of Object

Author:
Anahide Tchertchian

Method Summary
 Class<?> getKlass()
           
 String getNamespace()
           
 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,
 void setNamespace(String namespace)
           
 

Method Detail

getNamespace

String getNamespace()

setNamespace

void setNamespace(String namespace)

getResource

Resource getResource(Object object)
Transform an incoming object into a Resource

Parameters:
object - TODO Serializable
Returns:
the resource

getResourceRepresentation

Object getResourceRepresentation(Resource resource)
Resolve the resource to an applicative representation, for instance a DocumentModel,

Parameters:
resource -
Returns:
the representation TODO Serializable

getKlass

Class<?> getKlass()
Returns:
the class being adapted

Nuxeo Enterprise Platform 5.1

Copyright ? 2007 Nuxeo SAS. All Rights Reserved.