public class DocumentModelResourceAdapter extends AbstractResourceAdapter implements Serializable
namespaceCORE_SESSION_CONTEXT_KEY| Constructor and Description |
|---|
DocumentModelResourceAdapter() |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getKlass() |
Resource |
getResource(Serializable object,
Map<String,Object> context)
Transforms an incoming object into a Resource.
|
Serializable |
getResourceRepresentation(Resource resource,
Map<String,Object> context)
Resolves the resource to an applicative representation, for instance a
DocumentModel. |
getNamespace, setNamespacepublic DocumentModelResourceAdapter()
public Serializable getResourceRepresentation(Resource resource, Map<String,Object> 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,Object> context)
ResourceAdaptergetResource in interface ResourceAdaptergetResource in class AbstractResourceAdapterobject - the object to transformcontext - a context mappublic Class<?> getKlass()
getKlass in interface ResourceAdaptergetKlass in class AbstractResourceAdapterCopyright © 2016 Nuxeo SA. All rights reserved.