Add postUpdateHook for ConfigurationAdapterBase

Squash commits of branch feature/configuration-adapter-base-post-update:

- Add postUpdateHook for ConfigurationAdapterBase
This commit is contained in:
Thomas Zerr
2025-06-26 07:12:50 +02:00
parent a2d14e7167
commit c7febb1867

View File

@@ -88,6 +88,11 @@ public abstract class ConfigurationAdapterBase<DAO, DTO extends HalRepresentatio
* protected String getName() {
* return "testConfig";
* }
*
* &commat;Override
* protected void postUpdateHook() {
* //Some logic that needs to be executed after the update
* }
* }
* </code></pre>
*
@@ -163,6 +168,11 @@ public abstract class ConfigurationAdapterBase<DAO, DTO extends HalRepresentatio
writePermission.check();
}
getConfigStore().set(dtoToDaoMapper.mapDtoToDao(payload));
postUpdateHook();
}
protected void postUpdateHook() {
}
private Links.Builder createDtoLinks() {