ipm:
action-rest-controller:
enabled: false
change-rest-controller:
enabled: false
cancellation-rest-controller:
enabled: false
Policy
Policy Change Services
The IPM Base layer provides extensible REST and Java services to change policies, including:
Change | REST Controller | Service Class | Request DTO |
---|---|---|---|
Execute an Action (a |
|
|
|
Execute a General Change (a |
|
|
|
Cancel a Policy: a |
|
|
|
For details on the REST API, refer to the OpenAPI Specification (for example pointing Swagger-UI to /rest/openapi
if dependency springdoc-openapi-starter-webmvc-api
is bundled into the application).
Customizing Services
Each service is configured via a dedicated interface following the naming convention ${ServiceClass}Configurer
(for example, PolicyActionServiceConfigurer
).
A configurer defines the methods that the corresponding service delegates to for customizing its behavior—such as creating EditingStartParameters
or resolving the ID of the PolicyEditingDefinition
to execute.
For every configurer, the Spring AutoConfiguration class IpmBaseExtServicesAutoConfiguration
automatically registers a bean for its default implementation, named ${ServiceClass}ConfigurerImpl
.
Additional Concepts
The package de.faktorzehn.ipm.base.extservices.shared
provides various shared concepts including:
Class / Interface | Responsibility |
---|---|
|
Resolves the ID of the |
|
Builds a composite |
|
Builds a |
|
Provides reusable |
|
An |
|
Provides reusable |
|
Creates |
|
Maps the |
Additionally, it provides the following helpers
-
EditingDefinitionHelper
-
EnumHelper
-
MappingContextHelper
-
ResponseEntityHelper
Disabling REST Controllers
If the REST API is not required or desirable as-is, the REST controllers can be disabled via configuration properties: