Fixed incorrect query strings that were causing tests to fail.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4973 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gary Spencer
2007-01-31 09:30:46 +00:00
parent d8e4604ffc
commit c8e9812fe4

View File

@@ -69,7 +69,7 @@ public class FileFolderServiceImpl implements FileFolderService
"[like(@cm:name, $cm:name, false)" + "[like(@cm:name, $cm:name, false)" +
" and not (subtypeOf('" + ContentModel.TYPE_SYSTEM_FOLDER + "'))" + " and not (subtypeOf('" + ContentModel.TYPE_SYSTEM_FOLDER + "'))" +
" and (subtypeOf('" + ContentModel.TYPE_FOLDER + "') or subtypeOf('" + ContentModel.TYPE_CONTENT + "')" + " and (subtypeOf('" + ContentModel.TYPE_FOLDER + "') or subtypeOf('" + ContentModel.TYPE_CONTENT + "')" +
" and subtypeOf('" + ContentModel.TYPE_LINK + "'))]"; " or subtypeOf('" + ContentModel.TYPE_LINK + "'))]";
/** Shallow search for all files and folders */ /** Shallow search for all files and folders */
private static final String LUCENE_QUERY_SHALLOW_ALL = private static final String LUCENE_QUERY_SHALLOW_ALL =
@@ -99,7 +99,7 @@ public class FileFolderServiceImpl implements FileFolderService
"[like(@cm:name, $cm:name, false)" + "[like(@cm:name, $cm:name, false)" +
" and not (subtypeOf('" + ContentModel.TYPE_SYSTEM_FOLDER + "'))" + " and not (subtypeOf('" + ContentModel.TYPE_SYSTEM_FOLDER + "'))" +
" and (subtypeOf('" + ContentModel.TYPE_FOLDER + "') or subtypeOf('" + ContentModel.TYPE_CONTENT + "')" + " and (subtypeOf('" + ContentModel.TYPE_FOLDER + "') or subtypeOf('" + ContentModel.TYPE_CONTENT + "')" +
" and subtypeOf('" + ContentModel.TYPE_LINK + "'))]"; " or subtypeOf('" + ContentModel.TYPE_LINK + "'))]";
/** empty parameters */ /** empty parameters */
private static final QueryParameterDefinition[] PARAMS_ANY_NAME = new QueryParameterDefinition[1]; private static final QueryParameterDefinition[] PARAMS_ANY_NAME = new QueryParameterDefinition[1];