Introduction

Business

Development

Core

Entity Definitions

VideoBannerWidgetEntityDefinition

The VideoBannerWidgetEntityDefinition extends the SimpleBannerWidgetEntityDefinition. Following the inheritance tree of the SimpleBannerWidgetEntityDefinition, the extra extended interfaces are the WidgetEntityDefinition, the AbstractEntityDefinition, the AbstractActivatableEntityDefinition, the AbstractCatalogableEntityDefinition, the AbstractCmsEntityDefinition and the AbstractFilterableEntityDefinition:

asciidoctor diagram VideoBannerWidgetEntityDefinition

Via the respective getter-setter pairs, the following information can be retrieved/stored in the database:

Property Description

poster

stores the poster for the video

subtitles

stores the subtitles file for the video

Spring Data JPA Repositories

VideoBannerRepository

The VideoBannerRepository extends the BaseEntityRepository

asciidoctor diagram VideoBannerRepository

This is the corresponding Spring Data JPA repository for the VideoBannerWidgetEntityDefinition.

Facade

MapperFactoryConfigurers

VideoBannerWidgetMapperFactoryConfigurer

The VideoBannerWidgetMapperFactoryConfigurer implements the MapperFactoryConfigurer, converting the VideoBannerWidgetEntityDefinition to VideoBannerWidgetDtoDefinition:

asciidoctor diagram VideoBannerWidgetMapperFactoryConfigurer

The conversion is done via the byDeafult() method.

More about the mapping configurations you may read in the respective Orika guide.

Dto definitions

VideoBannerWidgetDtoDefinition

The VideoBannerWidgetDtoDefinition extends the SimpleBannerWidgetDtoDefinition, going in its turn to the WidgetDtoDefinition and the AbstractEntityDtoDefinition:

asciidoctor diagram VideoBannerWidgetDtoDefinition

This is the corresponding Dto object for the VideoBannerWidgetEntityDefinition.

Integration

The integration with the Nemesis platform is pretty straight-forward - just need to add the widget in your classpath:

<dependency>
    <groupId>io.nemesis.platform.module.widget</groupId>
    <artifactId>nemesis-widget-video</artifactId>
</dependency>