Introduction

Business

Development

Core

Entity Definitions

asciidoctor diagram PopupWidgetEntityDefinition

Spring Data JPA Repositories

PopupWidgetRepository

The PopupWidgetRepository extends the ActivatableRepository and the BaseEntityRepository:

asciidoctor diagram PopupWidgetRepository

Facade

MapperFactoryConfigurers

PopupWidgetMapperFactoryConfigurer

The PopupWidgetMapperFactoryConfigurer implements the MapperFactoryConfigurer, converting the PopupWidgetEntityDefinition to PopupWidgetDtoDefinition:

asciidoctor diagram PopupWidgetMapperFactoryConfigurer

The conversion is done via the byDefault() method.

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

Dto definitions

PopupWidgetDtoDefinition

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

asciidoctor diagram PopupWidgetDtoDefinition

This is the corresponding Dto object for the PopupWidgetEntityDefinition.

Storefront

PopupWidgetController

The PopupWidgetController extends the AbstractWidgetController:

asciidoctor diagram PopupWidgetController

The defined HTTP Endpoints can be accessed either at

  • /view/, or at

  • /{widgetId}

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