Clean up and fixes for webstudio/merge issues with getDocumentPaths() and associated remote store methods.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@12620 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2009-01-08 11:48:48 +00:00
parent 8e224cb5fe
commit b66bae9b79
3 changed files with 5 additions and 25 deletions

View File

@@ -247,47 +247,27 @@
</bean>
<!-- AVM Remote Store -->
<!-- bean id="AVMStoreBean" class="org.alfresco.repo.web.scripts.bean.AVMRemoteStore">
<property name="mimetypeService" ref="MimetypeService" />
<property name="avmService" ref="AVMService" />
<property name="searchService" ref="SearchService" />
</bean>
-->
<!-- Remote Store service - AVM -->
<bean id="webscript.org.alfresco.repository.store.remoteavm.get" class="org.alfresco.repo.web.scripts.bean.AVMRemoteStore" parent="webscript">
<property name="mimetypeService" ref="MimetypeService" />
<property name="avmService" ref="AVMService" />
<property name="searchService" ref="SearchService" />
<!--
<property name="rootPath"><value>alfresco</value></property>
<property name="store"><value>sitestore</value></property>
-->
</bean>
<bean id="webscript.org.alfresco.repository.store.remoteavm.post" class="org.alfresco.repo.web.scripts.bean.AVMRemoteStore" parent="webscript">
<property name="mimetypeService" ref="MimetypeService" />
<property name="avmService" ref="AVMService" />
<property name="searchService" ref="SearchService" />
<!--
<property name="rootPath"><value>alfresco</value></property>
<property name="store"><value>sitestore</value></property>
-->
</bean>
<bean id="webscript.org.alfresco.repository.store.remoteavm.delete" class="org.alfresco.repo.web.scripts.bean.AVMRemoteStore" parent="webscript">
<property name="mimetypeService" ref="MimetypeService" />
<property name="avmService" ref="AVMService" />
<property name="searchService" ref="SearchService" />
<!--
<property name="rootPath"><value>alfresco</value></property>
<property name="store"><value>sitestore</value></property>
-->
</bean>
<!-- Web-tier SSO authentication touch point -->
<bean id="webscript.org.alfresco.repository.touch.get" class="org.alfresco.repo.web.scripts.bean.Touch" parent="webscript" />
<!-- -->
<!-- Activity Feed Web Scripts -->
<!-- -->

View File

@@ -77,9 +77,9 @@ public class AVMRemoteStore extends BaseRemoteStore
*/
public void setRootPath(String rootPath)
{
if (rootPath != null && rootPath.length() == 0)
if (rootPath == null || rootPath.length() == 0)
{
rootPath = "/";
throw new IllegalArgumentException("Root path must be specified.");
}
this.rootPath = rootPath;

View File

@@ -227,7 +227,7 @@ public abstract class BaseRemoteStore extends AbstractWebScript
String path = pathBuilder.toString();
if (logger.isDebugEnabled())
logger.debug("Remote method: " + methodName + " Store Id: " + store + " Path: " + path);
logger.debug("Remote method: " + methodName.toUpperCase() + " Store Id: " + store + " Path: " + path);
try
{