Introduction

Business

Development

Core

Entity Definitions

asciidoctor diagram SocialWidgetEntityDefinition

The defined here property is lists. It stores a list of the links for the widget (instances of LinkWidgetEntityDefinition).

Spring Data JPA Repositories

SocialWidgetRepository

The SocialWidgetRepository extends the ActivatableRepository and the BaseEntityRepository:

asciidoctor diagram SocialWidgetRepository

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

Facade

MapperFactoryConfigurers

SocialWidgetMapperFactoryConfigurer

The SocialWidgetMapperFactoryConfigurer implements the MapperFactoryConfigurer, converting the SocialWidgetEntityDefinition to SocialWidgetDtoDefinition:

asciidoctor diagram SocialWidgetMapperFactoryConfigurer

The conversion is done via the byDeafult() method.

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

Dto definitions

SocialWidgetDtoDefinition

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

asciidoctor diagram SocialWidgetDtoDefinition

This is the corresponding Dto object for the SocialWidgetEntityDefinition.

JavaScript files

There is also some custom JavaScript added in the META-INF/resources/resources/productreferences/js directory.

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