Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ public String setResourceProperty(
@NotNull String projectId,
@NotNull String resourcePath,
@NotNull String propertyName,
@Nullable Object propertyValue
@Nullable String propertyValue
) throws DBException {
try (var ignoredLock = lockController.lock(LockTarget.of(projectId), LockOptions.of("resourcePropertyUpdate"))) {
validateResourcePath(resourcePath);
Expand All @@ -999,7 +999,7 @@ public String setResourceProperty(
public String setResourceProperties(
@NotNull String projectId,
@NotNull String resourcePath,
@NotNull Map<String, Object> properties
@NotNull Map<String, String> properties
) throws DBException {
try (var ignoredLock = lockController.lock(LockTarget.of(projectId), LockOptions.of("resourcePropertyUpdate"))) {
validateResourcePath(resourcePath);
Expand Down Expand Up @@ -1239,7 +1239,7 @@ private RMResource makeResourceFromPath(
if (readProperties) {
final BaseProjectImpl project = getWebProject(projectId, true);
final String resourcePath = getProjectRelativePath(projectId, path);
final Map<String, Object> properties = project.getResourceProperties(resourcePath);
final Map<String, String> properties = project.getResourceProperties(resourcePath);

if (properties != null && !properties.isEmpty()) {
resource.setProperties(new LinkedHashMap<>(properties));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2024 DBeaver Corp and others
* Copyright (C) 2010-2026 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -75,7 +75,7 @@ String setResourceProperty(
@NotNull @WebObjectId String projectId,
@NotNull String resourcePath,
@NotNull String propertyName,
@Nullable Object propertyValue) throws DBException;
@Nullable String propertyValue) throws DBException;

@WebProjectAction(
requireProjectPermissions = RMConstants.PERMISSION_PROJECT_RESOURCE_VIEW
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public String setResourceProperty(@NotNull WebSession webSession,
@NotNull String projectId,
@NotNull String resourcePath,
@NotNull String propertyName,
@Nullable Object propertyValue
@Nullable String propertyValue
) throws DBException {
checkIsRmEnabled(webSession);
try {
Expand Down
Loading