dbeaver/pro#3393 Add "UDBT" feature (#3000)

Co-authored-by: Serge Rider <serge@jkiss.org>
Co-authored-by: kseniaguzeeva <112612526+kseniaguzeeva@users.noreply.github.com>
This commit is contained in:
ShadelessFox
2024-10-16 10:33:25 +02:00
committed by GitHub
co-authored by Serge Rider kseniaguzeeva
parent be88091950
commit ac937698bd
2 changed files with 9 additions and 0 deletions
@@ -84,14 +84,18 @@ public abstract class BaseWebAppConfiguration implements WebAppConfiguration {
return resourceManagerEnabled;
}
@Override
public boolean isFeatureEnabled(String id) {
return ArrayUtils.contains(getEnabledFeatures(), id);
}
@Override
public boolean isFeaturesEnabled(String[] features) {
return ArrayUtils.containsAll(getEnabledFeatures(), features);
}
@NotNull
@Override
public String[] getEnabledFeatures() {
if (enabledFeatures == null) {
// No config - enable all features (+backward compatibility)
@@ -44,6 +44,11 @@ public interface WebAppConfiguration {
boolean isFeatureEnabled(String id);
@NotNull
default String[] getEnabledFeatures() {
return new String[0];
}
default boolean isSupportsCustomConnections() {
return true;
}