public interface ResourceAdapter
Serializable into a qualified name resource and conversely.| Modifier and Type | Field and Description |
|---|---|
static String |
CORE_SESSION_CONTEXT_KEY |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getKlass() |
String |
getNamespace() |
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. |
void |
setNamespace(String namespace) |
static final String CORE_SESSION_CONTEXT_KEY
String getNamespace()
void setNamespace(String namespace)
Resource getResource(Serializable object, Map<String,Object> context)
object - the object to transformcontext - a context mapSerializable getResourceRepresentation(Resource resource, Map<String,Object> context)
DocumentModel.resource - context - a context map (holding for instance a CoreSession instance.Copyright © 2019 Nuxeo. All rights reserved.