public class DocumentModelResourceAdapter extends AbstractResourceAdapter implements Serializable
namespace
CORE_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, setNamespace
public DocumentModelResourceAdapter()
public Serializable getResourceRepresentation(Resource resource, Map<String,Object> context)
ResourceAdapter
DocumentModel
.getResourceRepresentation
in interface ResourceAdapter
getResourceRepresentation
in class AbstractResourceAdapter
context
- a context map (holding for instance a CoreSession
instance.public Resource getResource(Serializable object, Map<String,Object> context)
ResourceAdapter
getResource
in interface ResourceAdapter
getResource
in class AbstractResourceAdapter
object
- the object to transformcontext
- a context mappublic Class<?> getKlass()
getKlass
in interface ResourceAdapter
getKlass
in class AbstractResourceAdapter
Copyright © 2017 Nuxeo. All rights reserved.