feat(parameters): system parameter admin dialog (PortalCore template)#1
Merged
Conversation
…terdialog) Uebernimmt das Parameterdialog-Konzept aus PortalCore: mandantenspezifische Key/Value-Konfiguration mit Typisierung, Validierung (regex/required/range) und vollstaendigem Audit-Log fuer jede Wertaenderung. Sensitive Werte werden im Audit maskiert. - Flyway V0030: system_parameter + system_parameter_audit_log - Domain-Enum SystemParameterType (STRING/NUMBER/BOOLEAN/EMAIL/URL/JSON/...) - Persistence (Entity + Repos) mit Tenant-Isolation - Application-Service mit Validator und Audit-Erzeugung - REST-Controller /api/v1/admin/parameters (nur CVM_ADMIN)
- SystemParameterCommands (Create/Update/ChangeValue) - SystemParameterView and SystemParameterAuditLogView (sensitive masking) - SystemParameterValidator (type, regex, required, options) - SystemParameterService (CRUD + value change + reset + audit log)
- SystemParameterController under /api/v1/admin/parameters with CVM_ADMIN - SystemParameterRequests records mapped to application commands - SystemParameterExceptionHandler for 404/400 mapping
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
TenantContext, KeycloakCVM_ADMIN, Lombok-Builder, Maven-Module).V0030__system_parameter.sql(Tabellensystem_parameter+system_parameter_audit_log, eindeutiger Schluessel pro Mandant, Audit-Log mit FK CASCADE)./api/v1/admin/parametersmit@PreAuthorize("hasRole('CVM_ADMIN')"), Requests, Exception-Handler).AdminParametersComponent(Tabs Parameter + Audit-Log, Material-Form), Route/admin/parameters, Menueintrag „System-Parameter" unter Einstellungen,ApiClient.patch.***maskiert (Liste, Audit-Log, Schreibvorgaenge).Test plan
mvn clean installlaeuft fehlerfrei (Compile + ArchUnit + Tests)V0030wird sauber angewendetCVM_ADMIN: Liste laden, Parameter anlegen, Wert aendern (Audit-Eintrag erscheint), Reset, Loeschen***in Liste und Audit-Log/admin/parametersist nicht erreichbar (403/keine Menue-Sichtbarkeit)