Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

UI metadata files. Base Concepts

abratashev edited this page Feb 4, 2020 · 3 revisions

image

Liquibase migrations

Tesler profides custom liquibase migrations defined in package \tesler\tesler-liquibase\src\main\java\liquibase\ext\tesler\ui\load This migrations allows to load ui components (such as screen, view, or widget) into database in form of .json files.

  • Widget migration called tesler:widgetload
  • View migration called tesler:viewload
  • Screen migration called tesler:screenload

XSD to specify new migration tags located in tesler\tesler-liquibase\src\main\resources\liquibase\ext\tesler\tesler.xsd

Usage example can be found in archetype module: \tesler\tesler-archetypes\tesler-base-archetype\src\main\resources\archetype-resources\__rootArtifactId__-db\src\main\resources\db\migration\liquibase\latest\widgets\widgets.xml

All migrations provides following properties:

  • path - resource path where .json files can be found
  • filter - Regexp mask to search for files. The following regexp is recommended: ".*.type_of_data.json$"
  • recursive - a boolean flag that indicates to look in subdirectories

the structure of .json files is described on the following wiki pages:

REST controllers

When application starts, user can receive metadata from a Spring REST controller called io.tesler.core.controller.LoginController.