Introduction
Development
Core
Entity Definitions
The StackExchangeQuestionsWidgetEntityDefinition extends the WidgetEntityDefinition. The WidgetEntityDefinition
relies further on the extended AbstractEntityDefinition, AbstractActivatableEntityDefinition, AbstractCatalogableEntityDefinition, AbstractCmsEntityDefinition and AbstractFilterableEntityDefinition:

Via the respective getter-setter pairs, the following information can be retrieved/stored in the database:
Property | Description |
---|---|
initialPage |
stores the initial page for the widget |
pageSize |
stores the page size for the widget |
tag |
stores the tag, used to find questions |
site |
stores the site for the widget |
apiKey |
stores the API key for the widget |
Spring Data JPA Repositories
The StackExchangeQuestionsWidgetRepository extends the ActivatableRepository and the BaseEntityRepository:

This is the corresponding Spring Data JPA repository for the StackExchangeQuestionsWidgetEntityDefinition
.
Facade
MapperFactoryConfigurers
The StackExchangeQuestionsWidgetMapperFactoryConfigurer implements the MapperFactoryConfigurer, converting the StackExchangeQuestionsWidgetEntityDefinition
to StackExchangeQuestionsWidgetDtoDefinition
:

The conversion is done via the byDeafult()
method.
More about the mapping configurations you may read in the respective Orika guide.
Dto definitions
The StackExchangeQuestionsWidgetDtoDefinition extends the WidgetDtoDefinition, going further to the AbstractEntityDtoDefinition:

This is the corresponding Dto object for the StackExchangeQuestionsWidgetEntityDefinition
.
Storefront
The StackExchangeQuestionsWidgetController extends the AbstractWidgetController:
