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