Introduction

Business

Development

Core

Entity Definitions

asciidoctor diagram SelectorWidgetEntityDefinition

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

Property Description

entity

stores the selector’s JPA entity name

urlLink

stores the url link for the selector

sessionAttribute

stores the session attribute to determine the current value of the selector

Spring Data JPA Repositories

SelectorWidgetRepository

The SelectorWidgetRepository extends the ActivatableRepository and the BaseEntityRepository:

asciidoctor diagram SelectorWidgetRepository

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

Facade

MapperFactoryConfigurers

SelectorWidgetMapperFactoryConfigurer

The SelectorWidgetMapperFactoryConfigurer implements the MapperFactoryConfigurer, converting the SelectorWidgetEntityDefinition to SelectorWidgetDtoDefinition:

asciidoctor diagram SelectorWidgetMapperFactoryConfigurer

The conversion is customized.

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

Dto definitions

SelectorWidgetDtoDefinition

The SelectorWidgetDtoDefinition extends the WidgetDtoDefinition, going further to the AbstractEntityDtoDefinition:

asciidoctor diagram SelectorWidgetDtoDefinition

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-selector</artifactId>
</dependency>