提交 eb3b216e 编写于 作者: S Serge Rider

Datasource permissions management enhancements

上级 0bba24d6
......@@ -113,6 +113,11 @@ class StreamDataSourceContainer implements DBPDataSourceContainer {
return true;
}
@Override
public boolean isExternallyProvided() {
return false;
}
@Override
public boolean isTemplate() {
return false;
......
......@@ -33,6 +33,9 @@ public interface DBPDataSourceConfigurationStorage {
boolean isDefault();
// Datasources provided by some dynamic service (e.gl. cloud)
boolean isDynamic();
String getStatus();
List<? extends DBPDataSourceContainer> loadDataSources(DBPDataSourceRegistry registry, Map<String, Object> options)
......
......@@ -85,6 +85,8 @@ public interface DBPDataSourceContainer extends DBSObject, DBDPreferences, DBPNa
boolean isProvided();
boolean isExternallyProvided();
boolean isTemplate();
boolean isTemporary();
......
......@@ -586,6 +586,11 @@ public class DataSourceDescriptor
return !origin.isDefault();
}
@Override
public boolean isExternallyProvided() {
return origin.isDynamic();
}
@Override
public boolean isTemplate() {
return template;
......
......@@ -78,6 +78,11 @@ class DataSourceOrigin implements DBPDataSourceConfigurationStorage
return isDefault;
}
@Override
public boolean isDynamic() {
return false;
}
public IFile getSourceFile() {
return sourceFile;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册