From 088b452b50a67b21318e01fbb9b6a4271a0ef15b Mon Sep 17 00:00:00 2001 From: Jan Vonka Date: Mon, 17 Sep 2007 16:26:19 +0000 Subject: [PATCH] Performance tweak git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6802 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../repo/dictionary/DictionaryDAOImpl.java | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/source/java/org/alfresco/repo/dictionary/DictionaryDAOImpl.java b/source/java/org/alfresco/repo/dictionary/DictionaryDAOImpl.java index b3aa84921a..ea436b5e59 100644 --- a/source/java/org/alfresco/repo/dictionary/DictionaryDAOImpl.java +++ b/source/java/org/alfresco/repo/dictionary/DictionaryDAOImpl.java @@ -309,7 +309,7 @@ public class DictionaryDAOImpl implements DictionaryDAO if (models == null) { models = new ArrayList(); - getUriToModels().put(uri, models); + getUriToModels(tenantDomain).put(uri, models); } if (!models.contains(model)) { @@ -384,7 +384,7 @@ public class DictionaryDAOImpl implements DictionaryDAO return models; } - List models = getUriToModels().get(uri); + List models = getUriToModels("").get(uri); if (models == null) { models = Collections.emptyList(); @@ -850,16 +850,6 @@ public class DictionaryDAOImpl implements DictionaryDAO writeLock.unlock(); } } - - /** - * Get uriToModels from the cache (in the context of the current user's tenant domain) - * - * @param tenantDomain - */ - private Map> getUriToModels() - { - return getUriToModels(tenantService.getCurrentUserDomain()); - } /** * Get uriToModels from the cache (in the context of the given tenant domain)