SEARCH-166:Filter queries should not be supported with CMIS QL

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130507 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gethin James
2016-09-09 10:21:28 +00:00
parent 4a89bc7405
commit 4b1963c489
2 changed files with 18 additions and 1 deletions

View File

@@ -283,6 +283,12 @@ public class SearchMapper
{
if (filterQueries != null && !filterQueries.isEmpty())
{
if (LANGUAGE_CMIS_ALFRESCO.equals(sp.getLanguage()))
{
throw new InvalidArgumentException(InvalidArgumentException.DEFAULT_MESSAGE_ID,
new Object[] { ": filterQueries {} not allowed with cmis language" });
}
for (FilterQuery fq:filterQueries)
{
ParameterCheck.mandatoryString("filterQueries query", fq.getQuery());