Class DocumentModelResourceAdapter
java.lang.Object
org.nuxeo.ecm.platform.relations.api.impl.AbstractResourceAdapter
org.nuxeo.ecm.platform.relations.adapters.DocumentModelResourceAdapter
- All Implemented Interfaces:
Serializable,ResourceAdapter
Resource adapter using the document model id.
- Author:
- Anahide Tchertchian
- See Also:
-
Field Summary
Fields inherited from class org.nuxeo.ecm.platform.relations.api.impl.AbstractResourceAdapter
namespaceFields inherited from interface org.nuxeo.ecm.platform.relations.api.ResourceAdapter
CORE_SESSION_CONTEXT_KEY -
Constructor Summary
Constructors -
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.Methods inherited from class org.nuxeo.ecm.platform.relations.api.impl.AbstractResourceAdapter
getNamespace, setNamespace
-
Constructor Details
-
DocumentModelResourceAdapter
public DocumentModelResourceAdapter()
-
-
Method Details
-
getResourceRepresentation
Description copied from interface:ResourceAdapterResolves the resource to an applicative representation, for instance aDocumentModel.- Specified by:
getResourceRepresentationin interfaceResourceAdapter- Overrides:
getResourceRepresentationin classAbstractResourceAdapter- Parameters:
context- a context map (holding for instance aCoreSessioninstance.- Returns:
- the representation
-
getResource
Description copied from interface:ResourceAdapterTransforms an incoming object into a Resource.- Specified by:
getResourcein interfaceResourceAdapter- Overrides:
getResourcein classAbstractResourceAdapter- Parameters:
object- the object to transformcontext- a context map- Returns:
- the resource
-
getKlass
- Specified by:
getKlassin interfaceResourceAdapter- Overrides:
getKlassin classAbstractResourceAdapter- Returns:
- the class being adapted
-