Skip to content
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

CB-5274. Added new link for download metadata file #2900

Merged
merged 10 commits into from
Sep 11, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@
@Nullable
String getAcsLink(String id, @NotNull Map<String, Object> providerConfig) throws DBException;

@Nullable

Check warning on line 49 in server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/auth/SMAuthProviderFederated.java

View check run for this annotation

Jenkins-CI-integration / CheckStyle Java Report

server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/auth/SMAuthProviderFederated.java#L49

Missing a Javadoc comment.
String getDownloadMetadataFileLink(String id, @NotNull Map<String, Object> providerConfig) throws DBException;
DenisSinelnikov marked this conversation as resolved.
Show resolved Hide resolved

@Nullable
default String getRedirectLink(String id, @NotNull Map<String, Object> providerConfig) throws DBException {
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,14 @@ public String getAcsLink() throws DBException {
return instance instanceof SMAuthProviderFederated ? ((SMAuthProviderFederated) instance).getAcsLink(getId(), config.getParameters()) : null;
}

@Property
public String getDownloadMetadataFileLink() throws DBException {
SMAuthProvider<?> instance = providerDescriptor.getInstance();
return instance instanceof SMAuthProviderFederated
? ((SMAuthProviderFederated) instance).getDownloadMetadataFileLink(getId(), config.getParameters())
: null;
}

@Override
public String toString() {
return getDisplayName();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ type AdminAuthProviderConfiguration {
redirectLink: String
metadataLink: String
acsLink: String
downloadMetadataFileLink: String @since(version: "24.2.1")
DenisSinelnikov marked this conversation as resolved.
Show resolved Hide resolved
}

type WebFeatureSet {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ type AuthProviderConfiguration {
signOutLink: String
metadataLink: String
acsLink: String
downloadMetadataFileLink: String @since(version: "24.2.1")
DenisSinelnikov marked this conversation as resolved.
Show resolved Hide resolved
}

type AuthProviderCredentialsProfile {
Expand Down
Loading