[TOB-247,246,243,219,215,211] feat: v0.5.0

Commit contains all backend tasks for the fifth sprint.

The focus of sprint 5 was to:
- add/enhance interfaces for statement infodata
- add concept for statement response pdf generation
- add concept for user notification
- add concept for statement mailbox

Details:

[TOB-243,279,280] doc: mail and pdf concept

- added concept for mail notification
- added concept for statement request email inbox
- added concept for statement response email
- added concept for reponse letter generation to pdf

[TOB-278] feat: allSections interface

- added interface to get all sections according to latest definition
- added interface to get all sections according to definition liked with
  a statement
- added testcases to test the new sections interface

TOB[273,274] feat: add attachment tagging

- added attachment tag REST endppoints. New tags can be added, Tags can
  be assigned to attachments. Existing assignments can be updated.

- enhanced the attachment interface to list assigned tag ids, the
  attachment upload timestamp and the correct attachment size.

- Added Time utility for getting current time in UTC localtime to
  persist the attachment upload time.
  Refactored Comments timestamp with the new Time utility usage

- Updated Attachment database representation according to the new
  persistence items timestamp and size.

- added Testcases for the new interfaces and backend logic.

- updated openapi.yaml REST interface specification. Now includes the
  new attachment and tagging interfaces

[TOB-283] feat: Add update statement interface

- added interface to update the statement in StatementProcessController
- added access Role requirements to all interfaces
- added testcases to verify the new update statement interface and
  additional service logic in StatementService and StatementProcessService
- updated openapi.yaml interface documentation

[TOB-267,268] feat: update contact interfaces

- update interface specification openapi.yml

[TOB-267,268] feat: update contact interfaces

- fix sonarqube codesmell

[TOB-267,268] feat: update contact interfaces

- Replace current demoimplementation of the contact search interface
  according to the new interface definition
- Add interface to request contact details of specific contactid
- Update statement interfaces to read and create new statements to
  support additional contactid
- update statement database implementation according to the new database
  scheme (removed contact table and replaced with varchar in statement)
- Update statement testcases according to the changes caused by the
  contactid
- Update ContactService and ContactsController testcases according to
  the code changes in these services
- Cleaned up some other classes from unused imports

[TOB-233] feat: Search statement and parents

- added interface to search statements by query parameters
- added interface to get parent statements of statement
- added interface to set parent statements of statement
- added testcases for new interfaces and services

[TOB-257] fix: standard date format for interfaces

- specified standard date time format to iso instant
- created TypeConversion utility to convert between ZonedDateTime,
  LocalDate with UTC and isoInstant String format.
- update workflow process history startTime and endTime string format to
  isoInstant
- update comments timestamp to string format isoInstant

[TOB-256] fix: show finished processes history

- switched process instance check camunda api to history api to find
  current and finished process instances
- fixed CampundaProcessInstace model to match the camunda history
  instance api
- updated test cases according to new model parameters
- removed simple sonarcube code smells due to unused imports

Signed-off-by: Tobias Stummer <stummer@develop-group.de>
78 files changed
tree: 9837565c9d4b835a8fc3bae1f399af8dcba9e1d1
  1. deploy/
  2. src/
  3. LICENSE.md
  4. NOTICE.md
  5. pom.xml
  6. README.md
  7. sonar-project.properties
README.md

Eclipse openK User Modules - Statement Public Affairs Backend

This application represents a user module for the Eclipse openK User Modules project.

Development server

TODO: Add description

Build

Run mvn clean install -DskipTests to build the project. All build artifacts will be stored in the targets/ directory.

Running unit tests

Run mvn clean install to execute the unit tests. All results will be stored in the targets/surefire-reports directory.

Scripts

TODO: Add scripts