public class DocumentModelResourceAdapter extends AbstractResourceAdapter implements Serializable
CORE_SESSION_ID_CONTEXT_KEY| Constructor and Description |
|---|
DocumentModelResourceAdapter() |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getKlass() |
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. |
getNamespace, setNamespacepublic Serializable getResourceRepresentation(Resource resource, Map<String,Serializable> context)
ResourceAdapterDocumentModel.getResourceRepresentation in interface ResourceAdaptergetResourceRepresentation in class AbstractResourceAdaptercontext - a context map (holding for instance a CoreSession
instance.public Resource getResource(Serializable object, Map<String,Serializable> context)
ResourceAdaptergetResource in interface ResourceAdaptergetResource in class AbstractResourceAdapterobject - the object to transformcontext - a context mappublic Class<?> getKlass()
getKlass in interface ResourceAdaptergetKlass in class AbstractResourceAdapterCopyright © 2013 Nuxeo SA. All Rights Reserved.