From d7658d4f937659f97749443780f9adcc52f934f6 Mon Sep 17 00:00:00 2001 From: Ainur <59531286+yagudin10@users.noreply.github.com> Date: Mon, 27 May 2024 19:49:21 +0200 Subject: [PATCH] CB-5161 generate workspace id property on dc side (#2653) --- .../src/io/cloudbeaver/model/app/BaseWebApplication.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/model/app/BaseWebApplication.java b/server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/model/app/BaseWebApplication.java index 3ebb0593ab..14f962579c 100644 --- a/server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/model/app/BaseWebApplication.java +++ b/server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/model/app/BaseWebApplication.java @@ -252,7 +252,7 @@ public synchronized String getApplicationInstanceId() throws DBException { instanceId = String.join( "_", ApplicationRegistry.getInstance().getApplication().getId(), - BaseWorkspaceImpl.readWorkspaceIdProperty(), // workspace id is read from property file + getWorkspaceIdProperty(), // workspace id is read from property file CommonUtils.toHexString(macAddress), CommonUtils.toString(getServerPort()) ); @@ -263,6 +263,11 @@ public synchronized String getApplicationInstanceId() throws DBException { return instanceId; } + @NotNull + public String getWorkspaceIdProperty() throws DBException { + return BaseWorkspaceImpl.readWorkspaceIdProperty(); + } + public String getApplicationId() { try { return getApplicationInstanceId();