From 01a51bf78ce855b295ddd2a2c2bbdd7f3e7bbc62 Mon Sep 17 00:00:00 2001 From: Adam Rauch Date: Tue, 1 Oct 2024 14:56:50 -0700 Subject: [PATCH] Use WritablePropertyMap --- .../src/org/labkey/genotyping/GenotypingManager.java | 3 ++- .../src/org/labkey/genotyping/galaxy/GalaxyManager.java | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/genotyping/src/org/labkey/genotyping/GenotypingManager.java b/genotyping/src/org/labkey/genotyping/GenotypingManager.java index 3fd02d31..ff71aff4 100644 --- a/genotyping/src/org/labkey/genotyping/GenotypingManager.java +++ b/genotyping/src/org/labkey/genotyping/GenotypingManager.java @@ -21,6 +21,7 @@ import org.labkey.api.data.AtomicDatabaseInteger; import org.labkey.api.data.Container; import org.labkey.api.data.PropertyManager; +import org.labkey.api.data.PropertyManager.WritablePropertyMap; import org.labkey.api.data.SQLFragment; import org.labkey.api.data.SimpleFilter; import org.labkey.api.data.SqlExecutor; @@ -115,7 +116,7 @@ public String getDescription() public void saveSettings(Container c, GenotypingFolderSettings settings) { - PropertyManager.PropertyMap map = PropertyManager.getWritableProperties(c, FOLDER_CATEGORY, true); + WritablePropertyMap map = PropertyManager.getWritableProperties(c, FOLDER_CATEGORY, true); map.put(Setting.ReferenceSequencesQuery.getKey(), settings.getSequencesQuery()); map.put(Setting.RunsQuery.getKey(), settings.getRunsQuery()); map.put(Setting.SamplesQuery.getKey(), settings.getSamplesQuery()); diff --git a/genotyping/src/org/labkey/genotyping/galaxy/GalaxyManager.java b/genotyping/src/org/labkey/genotyping/galaxy/GalaxyManager.java index af8899cd..6936d006 100644 --- a/genotyping/src/org/labkey/genotyping/galaxy/GalaxyManager.java +++ b/genotyping/src/org/labkey/genotyping/galaxy/GalaxyManager.java @@ -16,10 +16,11 @@ package org.labkey.genotyping.galaxy; -import org.apache.logging.log4j.Logger; import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; import org.labkey.api.data.Container; import org.labkey.api.data.PropertyManager; +import org.labkey.api.data.PropertyManager.WritablePropertyMap; import org.labkey.api.security.User; import java.util.Map; @@ -50,7 +51,7 @@ public static GalaxyManager get() public void saveSettings(Container c, GalaxyFolderSettings settings) { - PropertyManager.PropertyMap map = PropertyManager.getWritableProperties(c, FOLDER_CATEGORY, true); + WritablePropertyMap map = PropertyManager.getWritableProperties(c, FOLDER_CATEGORY, true); map.put(GALAXY_URL, settings.getGalaxyURL()); map.save(); } @@ -73,7 +74,7 @@ public String getGalaxyURL() public void saveUserSettings(Container c, User user, GalaxyUserSettings userSettings) { - PropertyManager.PropertyMap map = PropertyManager.getWritableProperties(user, c, USER_CATEGORY, true); + WritablePropertyMap map = PropertyManager.getWritableProperties(user, c, USER_CATEGORY, true); map.put(GALAXY_KEY, userSettings.getGalaxyKey()); map.save(); }