Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
administration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OZG-Cloud
app
administration
Commits
6a062dd4
Verified
Commit
6a062dd4
authored
1 month ago
by
Sebastian Bergandy
Browse files
Options
Downloads
Patches
Plain Diff
OZG-7473 validate aggregation mapping before save
Sub task: OZG-7933
parent
75605575
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!10
OZG-7473 add validation messages and change collection
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/ozgcloud/admin/AdministrationRepositoryRestConfigurer.java
+5
-2
5 additions, 2 deletions
...zgcloud/admin/AdministrationRepositoryRestConfigurer.java
with
5 additions
and
2 deletions
src/main/java/de/ozgcloud/admin/AdministrationRepositoryRestConfigurer.java
+
5
−
2
View file @
6a062dd4
...
...
@@ -34,9 +34,12 @@ import de.ozgcloud.admin.common.DelegatingValidatorAdapter;
@Configuration
public
class
AdministrationRepositoryRestConfigurer
implements
RepositoryRestConfigurer
{
private
static
final
DelegatingValidatorAdapter
DELEGATING_VALIDATOR_ADAPTER
=
new
DelegatingValidatorAdapter
(
Validation
.
buildDefaultValidatorFactory
().
getValidator
());
@Override
public
void
configureValidatingRepositoryEventListener
(
ValidatingRepositoryEventListener
listener
)
{
var
validator
=
Validation
.
buildDefaultValidatorFactory
().
getValidator
(
);
listener
.
addValidator
(
"before
Create"
,
new
DelegatingValidatorAdapter
(
validator
)
);
listener
.
addValidator
(
"beforeCreate"
,
DELEGATING_VALIDATOR_ADAPTER
);
listener
.
addValidator
(
"before
Save"
,
DELEGATING_VALIDATOR_ADAPTER
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment