The external data provider is a new API in Jahia 7, that helps to create connectors to external sources. It allows to transparently use or import any external content as if it was directly stored in Jahia. This session will explain how to use it and will show a simple connector example.
2. Mount external data
External data visible in
JCR tree
Seen as normal nodes
for any jahia service
2
3. ExternalDataSource
API to connect to simple data sources
Databases, filesystems, external APIs
Create a mapping to JCR API
Optional support for Search, write, lazy
loading, …
3
4. Specify your mapping
For every object :
Associate a node type
Map properties
Define a path
4
6. Specify your mapping
Define a tree structure for your objects
Should be able to find object from path and
conversely !
Optionally, define a unique identifier
6
9. Search
One method search(query), with the user
query
QueryHelper to helps parse the query
Use getSupportedNodeTypes() to return
which types can be returned
9
10. Lazy loading
Don’t need to load all properties values
when getting node
Instead, list properties names only
And implement
getPropertyValues(path,property)
10