Connect Apache Sling to Your Content

Опубликовано: 19 Сентябрь 2019
на канале: adaptTo() Conference - powered by diva-e
1,251
11

Recorded at #adaptTo() 2019
https://adapt.to/2019/en/schedule/con...

Connect Apache Sling to Your Content
Karl Pauls, Adobe
Carsten Ziegeler, Adobe

Apache Slings extensible content tree is a very powerful way to unify different content sources behind the resource provider abstraction. The resource API is easy to work with and integrating custom content into the tree is a breeze using the SPI.

However, a lot of code assumes, for historical reasons, that resources in Sling are actually backed by a Java Content Repository (JCR). This can be problematic as for example, a given resource can not necessarily be adapted to a Node nor be found via a Session.

In this talk we will first briefly explain the resource provider approach and its benefits as well as some of its downsides and pitfalls. Then, second, we will introduce a similar approach on the JCR level allowing developers to mount content into sub trees of the repository itself. Finally, we will compare the two approaches by showing how they can be used to integrate remote content sources into the resource tree and demonstrate that they can work together seamlessly.


Смотрите видео Connect Apache Sling to Your Content онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь adaptTo() Conference - powered by diva-e 19 Сентябрь 2019, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 1,251 раз и оно понравилось 11 людям.