From 14b4890e6ce5678ed4d61dc934da4919314c6bae Mon Sep 17 00:00:00 2001 From: Derek Hulley Date: Wed, 10 May 2006 16:17:00 +0000 Subject: [PATCH] Removed restriction on cross-store operations git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2814 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../repo/service/StoreRedirectorProxyFactory.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/source/java/org/alfresco/repo/service/StoreRedirectorProxyFactory.java b/source/java/org/alfresco/repo/service/StoreRedirectorProxyFactory.java index fe3fa2955f..d6fdfee7d2 100644 --- a/source/java/org/alfresco/repo/service/StoreRedirectorProxyFactory.java +++ b/source/java/org/alfresco/repo/service/StoreRedirectorProxyFactory.java @@ -253,11 +253,14 @@ public class StoreRedirectorProxyFactory implements FactoryBean, Initializing // Only allow one store type if (argStoreRef != null) { - if (storeRef != null && !storeRef.equals(argStoreRef)) - { - throw new ServiceException("Multiple store types are not supported - types " + storeRef + " and " + argStoreRef + " passed"); - } - storeRef = argStoreRef; + // TODO: put some thought into the ramifications of allowing cross-store moves + // TODO: The test here would only have checked storerefs adjacent to each other +// if (storeRef != null && !storeRef.equals(argStoreRef)) +// { +// throw new ServiceException("Multiple store types are not supported - types " + storeRef + " and " + argStoreRef + " passed"); +// } +// storeRef = argStoreRef; + return argStoreRef; } }