Class AbstractResourceAdapter
java.lang.Object
org.nuxeo.ecm.platform.relations.api.impl.AbstractResourceAdapter
- All Implemented Interfaces:
ResourceAdapter
- Direct Known Subclasses:
DocumentModelResourceAdapter
- Author:
- Anahide Tchertchian
-
Field Summary
Fields inherited from interface org.nuxeo.ecm.platform.relations.api.ResourceAdapter
CORE_SESSION_CONTEXT_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionClass<?>
getKlass()
getResource
(Serializable object, Map<String, Object> context) Transforms an incoming object into a Resource.getResourceRepresentation
(Resource resource, Map<String, Object> context) Resolves the resource to an applicative representation, for instance aDocumentModel
.void
setNamespace
(String namespace)
-
Field Details
-
namespace
-
-
Constructor Details
-
AbstractResourceAdapter
public AbstractResourceAdapter()
-
-
Method Details
-
getNamespace
- Specified by:
getNamespace
in interfaceResourceAdapter
-
setNamespace
- Specified by:
setNamespace
in interfaceResourceAdapter
-
getKlass
- Specified by:
getKlass
in interfaceResourceAdapter
- Returns:
- the class being adapted
-
getResource
Description copied from interface:ResourceAdapter
Transforms an incoming object into a Resource.- Specified by:
getResource
in interfaceResourceAdapter
- Parameters:
object
- the object to transformcontext
- a context map- Returns:
- the resource
-
getResourceRepresentation
Description copied from interface:ResourceAdapter
Resolves the resource to an applicative representation, for instance aDocumentModel
.- Specified by:
getResourceRepresentation
in interfaceResourceAdapter
context
- a context map (holding for instance aCoreSession
instance.- Returns:
- the representation
-