Skip to content

Commit

Permalink
dbeaver/pro#3393 Add "UDBT" feature
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadelessFox committed Oct 14, 2024
1 parent 439c806 commit aa1471b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,18 @@ public boolean isResourceManagerEnabled() {
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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ public interface WebAppConfiguration {

boolean isFeatureEnabled(String id);

@NotNull
default String[] getEnabledFeatures() {
return new String[0];
}

default boolean isSupportsCustomConnections() {
return true;
}
Expand Down

0 comments on commit aa1471b

Please sign in to comment.