Introduction

Business

Development

Core

Entity Definitions

asciidoctor diagram FooterWidgetEntityDefinition

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

Property Description

wrapAfter

stores the number of items after which the footer wraps on a new line

navigationNodes

stores a list of navigation nodes to be displayed in the footer

Spring Data JPA Repositories

FooterWidgetRepository

The FooterWidgetRepository extends the ActivatableRepository amd the BaseEntityRepository:

asciidoctor diagram FooterWidgetRepository

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

Facade

MapperFactoryConfigurers

FooterWidgetMapperFactoryConfigurer

The FooterWidgetMapperFactoryConfigurer implements the MapperFactoryConfigurer, converting the FooterWidgetEntityDefinition to FooterWidgetDtoDefinition:

asciidoctor diagram FooterWidgetMapperFactoryConfigurer

The conversion is done via the byDefault() method.

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

Dto definitions

FooterWidgetDtoDefinition

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

asciidoctor diagram FooterWidgetDtoDefinition

This is the corresponding Dto object for the FooterWidgetEntityDefinition.

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