Refactor CMIS property accessors to remove duplicate code. Basic wire up for fts query language and some simple tests (MOB-574). Parser WIP (MOB-571)

- added support for properties and column aliases in CMIS embedded FTS
- simple pass-through column support for FTS

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13974 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Andrew Hind
2009-04-16 10:41:33 +00:00
parent 389f996f29
commit 65d2aa1d7a
35 changed files with 644 additions and 1705 deletions

View File

@@ -307,4 +307,20 @@ public class CmisFunctionEvaluationContext implements FunctionEvaluationContext
return propertyDef.isQueryable();
}
}
public String getLuceneFieldName(String propertyName)
{
CMISPropertyDefinition propertyDef = cmisDictionaryService.findProperty(propertyName, null);
if(propertyDef != null)
{
return propertyDef.getPropertyLuceneBuilder().getLuceneFieldName();
}
else
{
// TODO: restrict to supported "special" fields
return propertyName;
}
}
}