public abstract class AbstractResourceAdapter extends Object implements ResourceAdapter
CORE_SESSION_ID_CONTEXT_KEY| Constructor and Description |
|---|
AbstractResourceAdapter() |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getKlass() |
String |
getNamespace() |
Resource |
getResource(Serializable object,
Map<String,Serializable> context)
Transforms an incoming object into a Resource.
|
Serializable |
getResourceRepresentation(Resource resource,
Map<String,Serializable> context)
Resolves the resource to an applicative representation, for instance a
DocumentModel. |
void |
setNamespace(String namespace) |
public String getNamespace()
getNamespace in interface ResourceAdapterpublic void setNamespace(String namespace)
setNamespace in interface ResourceAdapterpublic Class<?> getKlass()
getKlass in interface ResourceAdapterpublic Resource getResource(Serializable object, Map<String,Serializable> context)
ResourceAdaptergetResource in interface ResourceAdapterobject - the object to transformcontext - a context mappublic Serializable getResourceRepresentation(Resource resource, Map<String,Serializable> context)
ResourceAdapterDocumentModel.getResourceRepresentation in interface ResourceAdaptercontext - a context map (holding for instance a CoreSession
instance.Copyright © 2011 Nuxeo SA. All Rights Reserved.