mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-20 22:42:16 +01:00
Add postUpdateHook for ConfigurationAdapterBase
Squash commits of branch feature/configuration-adapter-base-post-update: - Add postUpdateHook for ConfigurationAdapterBase
This commit is contained in:
@@ -88,6 +88,11 @@ public abstract class ConfigurationAdapterBase<DAO, DTO extends HalRepresentatio
|
||||
* protected String getName() {
|
||||
* return "testConfig";
|
||||
* }
|
||||
*
|
||||
* @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() {
|
||||
|
||||
Reference in New Issue
Block a user