Repository navigation
File store basis #16001
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
hmlnarik
merged 18 commits into
keycloak:main
from
hmlnarik:13632-File-map-storage-Group-no-downtime-store-main
Feb 7, 2023
Merged
File store basis #16001
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
8ad12a1
Enhance DefaultModelCriteria
hmlnarik 1a10c92
Fix collection
hmlnarik feb6376
Fix delete in CHMKeycloakTransaction
hmlnarik 1ac619d
Add HasRealmId interface
hmlnarik b6326c4
Fix EntityFieldDelegate
hmlnarik 1f26526
Support for realm-less entities in providers
hmlnarik e36feee
Support for realm-less entities in providers (events)
hmlnarik e194acf
File store basis
hmlnarik 2ad2785
Add support for writing
hmlnarik 8012a2d
Restructuring
hmlnarik 7c4689a
Support running KeycloakServer with file store
hmlnarik b7e398a
Add support for file store in model testsuite
hmlnarik 91f7d73
fixup! File store basis
hmlnarik e5503b0
fixup! Add support for writing
hmlnarik 1d486a2
Fix copyright headers
hmlnarik 49c83ed
Fix Vlasta's review comments from Feb 3
hmlnarik a28b739
Fix typing for reading
hmlnarik b47cbe8
Fix object removal
hmlnarik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
44 changes: 44 additions & 0 deletions
44
model/map-file/src/main/java/org/keycloak/models/map/storage/file/FileCriteriaBuilder.java
F16F
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| /* | ||
| * Copyright 2023 Red Hat, Inc. and/or its affiliates | ||
| * and other contributors as indicated by the @author tags. | ||
| * | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
| package org.keycloak.models.map.storage.file; | ||
|
|
||
| import org.keycloak.models.map.storage.criteria.DescriptiveModelCriteria; | ||
| import org.keycloak.models.map.storage.criteria.ModelCriteriaNode; | ||
|
|
||
| /** | ||
| * | ||
| * @author hmlnarik | ||
| */ | ||
| public class FileCriteriaBuilder<M> extends DescriptiveModelCriteria<M, FileCriteriaBuilder<M>> { | ||
|
|
||
| private static final FileCriteriaBuilder<?> INSTANCE = new FileCriteriaBuilder<>(null); | ||
|
|
||
| private FileCriteriaBuilder(ModelCriteriaNode<M> node) { | ||
| super(node); | ||
| } | ||
|
|
||
| @SuppressWarnings("unchecked") | ||
| public static <M> FileCriteriaBuilder<M> criteria() { | ||
| return (FileCriteriaBuilder<M>) INSTANCE; | ||
| } | ||
|
|
||
| @Override | ||
| protected FileCriteriaBuilder<M> instantiateForNode(ModelCriteriaNode<M> targetNode) { | ||
| return new FileCriteriaBuilder<>(targetNode); | ||
| } | ||
|
|
||
| } |
95 changes: 0 additions & 95 deletions
95
.../map-file/src/main/java/org/keycloak/models/map/storage/file/FileKeycloakTransaction.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.