Interface ResourceAdapter
- All Known Implementing Classes:
AbstractResourceAdapter,DocumentModelResourceAdapter
public interface ResourceAdapter
Adapter to transform any java
Serializable into a qualified name resource and conversely.- Author:
- Anahide Tchertchian
-
Field Summary
Fields -
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.voidsetNamespace(String namespace)
-
Field Details
-
CORE_SESSION_CONTEXT_KEY
- See Also:
-
-
Method Details
-
getNamespace
String getNamespace() -
setNamespace
-
getResource
Transforms an incoming object into a Resource.- Parameters:
object- the object to transformcontext- a context map- Returns:
- the resource
- Since:
- 5.2-M1
-
getResourceRepresentation
Resolves the resource to an applicative representation, for instance aDocumentModel.- Parameters:
context- a context map (holding for instance aCoreSessioninstance.- Returns:
- the representation
-
getKlass
Class<?> getKlass()- Returns:
- the class being adapted
-