CB-3640 gitignore settings (#1830)

* CB-3640 gitignore settings

* CB-3640 ignore backup files

---------

Co-authored-by: mr-anton-t <42037741+mr-anton-t@users.noreply.github.com>
Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com>
This commit is contained in:
Alexander Skoblikov
2023-07-27 16:46:44 +03:00
committed by GitHub
co-authored by mr-anton-t Daria Marutkina
parent 3cdcb07646
commit 664864d478
@@ -74,7 +74,7 @@ public class LocalResourceController implements RMController {
public static final String DEFAULT_CHANGE_ID = "0";
private final DBPWorkspace workspace;
private final SMCredentialsProvider credentialsProvider;
protected final SMCredentialsProvider credentialsProvider;
private final Path rootPath;
private final Path userProjectsPath;
@@ -355,12 +355,12 @@ public class LocalResourceController implements RMController {
@Override
public String getProjectsDataSources(@NotNull String projectId, @Nullable String[] dataSourceIds) throws DBException {
DBPProject projectMetadata = getWebProject(projectId, false);
DBPDataSourceRegistry registry = projectMetadata.getDataSourceRegistry();
registry.checkForErrors();
return doFileReadOperation(
projectId,
projectMetadata.getMetadataFolder(false),
() -> {
DBPDataSourceRegistry registry = projectMetadata.getDataSourceRegistry();
registry.checkForErrors();
DataSourceConfigurationManagerBuffer buffer = new DataSourceConfigurationManagerBuffer();
Predicate<DBPDataSourceContainer> filter = null;
if (!ArrayUtils.isEmpty(dataSourceIds)) {
@@ -922,21 +922,21 @@ public class LocalResourceController implements RMController {
}
}
private <T> T doProjectOperation(String projectId, RMFileOperation<T> operation) throws DBException {
protected <T> T doProjectOperation(String projectId, RMFileOperation<T> operation) throws DBException {
for (RMFileOperationHandler fileHandler : fileHandlers) {
fileHandler.projectOpened(projectId);
}
return operation.doOperation();
}
private <T> T doFileReadOperation(String projectId, Path file, RMFileOperation<T> operation) throws DBException {
protected <T> T doFileReadOperation(String projectId, Path file, RMFileOperation<T> operation) throws DBException {
for (RMFileOperationHandler fileHandler : fileHandlers) {
fileHandler.beforeFileRead(projectId, file);
}
return operation.doOperation();
}
private <T> T doFileWriteOperation(String projectId, Path file, RMFileOperation<T> operation) throws DBException {
protected <T> T doFileWriteOperation(String projectId, Path file, RMFileOperation<T> operation) throws DBException {
for (RMFileOperationHandler fileHandler : fileHandlers) {
fileHandler.beforeFileChange(projectId, file);
}