public abstract class AbstractResourceAdapter extends Object implements ResourceAdapter
| Modifier and Type | Field and Description |
|---|---|
protected String |
namespace |
CORE_SESSION_CONTEXT_KEY| Constructor and Description |
|---|
AbstractResourceAdapter() |
| 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) |
public AbstractResourceAdapter()
public String getNamespace()
getNamespace in interface ResourceAdapterpublic void setNamespace(String namespace)
setNamespace in interface ResourceAdapterpublic Class<?> getKlass()
getKlass in interface ResourceAdapterpublic Resource getResource(Serializable object, Map<String,Object> context)
ResourceAdaptergetResource in interface ResourceAdapterobject - the object to transformcontext - a context mappublic Serializable getResourceRepresentation(Resource resource, Map<String,Object> context)
ResourceAdapterDocumentModel.getResourceRepresentation in interface ResourceAdaptercontext - a context map (holding for instance a CoreSession instance.Copyright © 2019 Nuxeo. All rights reserved.