-
Notifications
You must be signed in to change notification settings - Fork 371
Inject PolarisAdminService into PolarisServiceImpl #2533
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
Merged
Changes from all commits
Commits
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,7 +24,8 @@ | |
| import com.google.common.base.Strings; | ||
| import jakarta.annotation.Nonnull; | ||
| import jakarta.annotation.Nullable; | ||
| import jakarta.validation.constraints.NotNull; | ||
| import jakarta.enterprise.context.RequestScoped; | ||
| import jakarta.inject.Inject; | ||
| import jakarta.ws.rs.core.SecurityContext; | ||
| import java.util.ArrayList; | ||
| import java.util.Arrays; | ||
|
|
@@ -135,6 +136,7 @@ | |
| * provide different implementations of PolarisEntityManager to abstract away the implementation of | ||
| * the persistence layer. | ||
| */ | ||
| @RequestScoped | ||
| public class PolarisAdminService { | ||
| private static final Logger LOGGER = LoggerFactory.getLogger(PolarisAdminService.class); | ||
|
|
||
|
|
@@ -151,15 +153,16 @@ public class PolarisAdminService { | |
| // Initialized in the authorize methods. | ||
| private PolarisResolutionManifest resolutionManifest = null; | ||
|
|
||
| @Inject | ||
| public PolarisAdminService( | ||
| @NotNull PolarisDiagnostics diagnostics, | ||
| @NotNull CallContext callContext, | ||
| @NotNull ResolutionManifestFactory resolutionManifestFactory, | ||
| @NotNull PolarisMetaStoreManager metaStoreManager, | ||
| @NotNull UserSecretsManager userSecretsManager, | ||
| @NotNull SecurityContext securityContext, | ||
| @NotNull PolarisAuthorizer authorizer, | ||
| @NotNull ReservedProperties reservedProperties) { | ||
| @Nonnull PolarisDiagnostics diagnostics, | ||
| @Nonnull CallContext callContext, | ||
| @Nonnull ResolutionManifestFactory resolutionManifestFactory, | ||
| @Nonnull PolarisMetaStoreManager metaStoreManager, | ||
| @Nonnull UserSecretsManager userSecretsManager, | ||
| @Nonnull SecurityContext securityContext, | ||
| @Nonnull PolarisAuthorizer authorizer, | ||
| @Nonnull ReservedProperties reservedProperties) { | ||
| this.callContext = callContext; | ||
| this.realmConfig = callContext.getRealmConfig(); | ||
| this.resolutionManifestFactory = resolutionManifestFactory; | ||
|
|
@@ -700,7 +703,7 @@ private Map<String, SecretReference> extractSecretReferences( | |
| * @see #extractSecretReferences | ||
| */ | ||
| private boolean requiresSecretReferenceExtraction( | ||
| @NotNull ConnectionConfigInfo connectionConfigInfo) { | ||
| @Nonnull ConnectionConfigInfo connectionConfigInfo) { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. needed to be changed as quarkus thought this might be a rest endpoint or the like, quite sure |
||
| return connectionConfigInfo.getAuthenticationParameters().getAuthenticationType() | ||
| != AuthenticationParameters.AuthenticationTypeEnum.IMPLICIT; | ||
| } | ||
|
|
||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong import