public class AlfrescoFunctionEvaluationContext extends java.lang.Object implements FunctionEvaluationContext
Constructor and Description |
---|
AlfrescoFunctionEvaluationContext(NamespacePrefixResolver namespacePrefixResolver,
DictionaryService dictionaryService,
java.lang.String defaultNamespace) |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.search.Query |
buildLuceneEquality(AbstractLuceneQueryParser lqp,
java.lang.String propertyName,
java.io.Serializable value,
PredicateMode mode,
LuceneFunction luceneFunction) |
org.apache.lucene.search.Query |
buildLuceneExists(AbstractLuceneQueryParser lqp,
java.lang.String propertyName,
java.lang.Boolean not)
Note: null and not null are not required to support functions from the spec
|
org.apache.lucene.search.Query |
buildLuceneGreaterThan(AbstractLuceneQueryParser lqp,
java.lang.String propertyName,
java.io.Serializable value,
PredicateMode mode,
LuceneFunction luceneFunction) |
org.apache.lucene.search.Query |
buildLuceneGreaterThanOrEquals(AbstractLuceneQueryParser lqp,
java.lang.String propertyName,
java.io.Serializable value,
PredicateMode mode,
LuceneFunction luceneFunction) |
org.apache.lucene.search.Query |
buildLuceneIn(AbstractLuceneQueryParser lqp,
java.lang.String propertyName,
java.util.Collection values,
java.lang.Boolean not,
PredicateMode mode)
Note: In is not required to support functions from the spec
|
org.apache.lucene.search.Query |
buildLuceneInequality(AbstractLuceneQueryParser lqp,
java.lang.String propertyName,
java.io.Serializable value,
PredicateMode mode,
LuceneFunction luceneFunction) |
org.apache.lucene.search.Query |
buildLuceneLessThan(AbstractLuceneQueryParser lqp,
java.lang.String propertyName,
java.io.Serializable value,
PredicateMode mode,
LuceneFunction luceneFunction) |
org.apache.lucene.search.Query |
buildLuceneLessThanOrEquals(AbstractLuceneQueryParser lqp,
java.lang.String propertyName,
java.io.Serializable value,
PredicateMode mode,
LuceneFunction luceneFunction) |
org.apache.lucene.search.Query |
buildLuceneLike(AbstractLuceneQueryParser lqp,
java.lang.String propertyName,
java.io.Serializable value,
java.lang.Boolean not)
Note: Like is not required to support functions from the spec
|
void |
checkFieldApplies(Selector selector,
java.lang.String propertyName) |
java.lang.String |
getAlfrescoPropertyName(java.lang.String propertyName) |
java.lang.String |
getAlfrescoTypeName(java.lang.String typeName) |
java.lang.String |
getLuceneFieldName(java.lang.String propertyName) |
LuceneFunction |
getLuceneFunction(FunctionArgument functionArgument) |
java.lang.String |
getLuceneSortField(AbstractLuceneQueryParser lqp,
java.lang.String propertyName) |
java.util.Map |
getNodeRefs() |
NodeService |
getNodeService() |
java.io.Serializable |
getProperty(NodeRef nodeRef,
java.lang.String propertyName)
Get a property
|
java.lang.Float |
getScore() |
java.util.Map |
getScores() |
boolean |
isMultiValued(java.lang.String propertyName)
Is this a multi-valued property?
|
boolean |
isObjectId(java.lang.String propertyName) |
boolean |
isOrderable(java.lang.String fieldName) |
boolean |
isQueryable(java.lang.String fieldName) |
QName |
stripSuffixes(QName qname) |
public AlfrescoFunctionEvaluationContext(NamespacePrefixResolver namespacePrefixResolver, DictionaryService dictionaryService, java.lang.String defaultNamespace)
namespacePrefixResolver
- dictionaryService
- defaultNamespace
- public org.apache.lucene.search.Query buildLuceneEquality(AbstractLuceneQueryParser lqp, java.lang.String propertyName, java.io.Serializable value, PredicateMode mode, LuceneFunction luceneFunction) throws org.apache.lucene.queryParser.ParseException
buildLuceneEquality
in interface FunctionEvaluationContext
org.apache.lucene.queryParser.ParseException
public org.apache.lucene.search.Query buildLuceneExists(AbstractLuceneQueryParser lqp, java.lang.String propertyName, java.lang.Boolean not) throws org.apache.lucene.queryParser.ParseException
FunctionEvaluationContext
buildLuceneExists
in interface FunctionEvaluationContext
org.apache.lucene.queryParser.ParseException
public org.apache.lucene.search.Query buildLuceneGreaterThan(AbstractLuceneQueryParser lqp, java.lang.String propertyName, java.io.Serializable value, PredicateMode mode, LuceneFunction luceneFunction) throws org.apache.lucene.queryParser.ParseException
buildLuceneGreaterThan
in interface FunctionEvaluationContext
org.apache.lucene.queryParser.ParseException
public org.apache.lucene.search.Query buildLuceneGreaterThanOrEquals(AbstractLuceneQueryParser lqp, java.lang.String propertyName, java.io.Serializable value, PredicateMode mode, LuceneFunction luceneFunction) throws org.apache.lucene.queryParser.ParseException
buildLuceneGreaterThanOrEquals
in interface FunctionEvaluationContext
org.apache.lucene.queryParser.ParseException
public org.apache.lucene.search.Query buildLuceneIn(AbstractLuceneQueryParser lqp, java.lang.String propertyName, java.util.Collection values, java.lang.Boolean not, PredicateMode mode) throws org.apache.lucene.queryParser.ParseException
FunctionEvaluationContext
buildLuceneIn
in interface FunctionEvaluationContext
org.apache.lucene.queryParser.ParseException
public org.apache.lucene.search.Query buildLuceneInequality(AbstractLuceneQueryParser lqp, java.lang.String propertyName, java.io.Serializable value, PredicateMode mode, LuceneFunction luceneFunction) throws org.apache.lucene.queryParser.ParseException
buildLuceneInequality
in interface FunctionEvaluationContext
org.apache.lucene.queryParser.ParseException
public org.apache.lucene.search.Query buildLuceneLessThan(AbstractLuceneQueryParser lqp, java.lang.String propertyName, java.io.Serializable value, PredicateMode mode, LuceneFunction luceneFunction) throws org.apache.lucene.queryParser.ParseException
buildLuceneLessThan
in interface FunctionEvaluationContext
org.apache.lucene.queryParser.ParseException
public org.apache.lucene.search.Query buildLuceneLessThanOrEquals(AbstractLuceneQueryParser lqp, java.lang.String propertyName, java.io.Serializable value, PredicateMode mode, LuceneFunction luceneFunction) throws org.apache.lucene.queryParser.ParseException
buildLuceneLessThanOrEquals
in interface FunctionEvaluationContext
org.apache.lucene.queryParser.ParseException
public org.apache.lucene.search.Query buildLuceneLike(AbstractLuceneQueryParser lqp, java.lang.String propertyName, java.io.Serializable value, java.lang.Boolean not) throws org.apache.lucene.queryParser.ParseException
FunctionEvaluationContext
buildLuceneLike
in interface FunctionEvaluationContext
org.apache.lucene.queryParser.ParseException
public java.lang.String getLuceneSortField(AbstractLuceneQueryParser lqp, java.lang.String propertyName)
getLuceneSortField
in interface FunctionEvaluationContext
public java.util.Map getNodeRefs()
getNodeRefs
in interface FunctionEvaluationContext
public NodeService getNodeService()
getNodeService
in interface FunctionEvaluationContext
public java.io.Serializable getProperty(NodeRef nodeRef, java.lang.String propertyName)
FunctionEvaluationContext
getProperty
in interface FunctionEvaluationContext
public java.lang.Float getScore()
getScore
in interface FunctionEvaluationContext
public java.util.Map getScores()
getScores
in interface FunctionEvaluationContext
public boolean isObjectId(java.lang.String propertyName)
isObjectId
in interface FunctionEvaluationContext
public boolean isOrderable(java.lang.String fieldName)
isOrderable
in interface FunctionEvaluationContext
public boolean isQueryable(java.lang.String fieldName)
isQueryable
in interface FunctionEvaluationContext
public java.lang.String getLuceneFieldName(java.lang.String propertyName)
getLuceneFieldName
in interface FunctionEvaluationContext
public LuceneFunction getLuceneFunction(FunctionArgument functionArgument)
getLuceneFunction
in interface FunctionEvaluationContext
public void checkFieldApplies(Selector selector, java.lang.String propertyName)
checkFieldApplies
in interface FunctionEvaluationContext
public boolean isMultiValued(java.lang.String propertyName)
FunctionEvaluationContext
isMultiValued
in interface FunctionEvaluationContext
public java.lang.String getAlfrescoPropertyName(java.lang.String propertyName)
getAlfrescoPropertyName
in interface FunctionEvaluationContext
public java.lang.String getAlfrescoTypeName(java.lang.String typeName)
getAlfrescoTypeName
in interface FunctionEvaluationContext
Copyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.