public class AlfrescoFunctionEvaluationContext extends Object implements FunctionEvaluationContext
Constructor and Description |
---|
AlfrescoFunctionEvaluationContext(NamespacePrefixResolver namespacePrefixResolver,
DictionaryService dictionaryService,
String defaultNamespace) |
public AlfrescoFunctionEvaluationContext(NamespacePrefixResolver namespacePrefixResolver, DictionaryService dictionaryService, String defaultNamespace)
namespacePrefixResolver
- NamespacePrefixResolverdictionaryService
- DictionaryServicedefaultNamespace
- Stringpublic <Q,S,E extends Throwable> Q buildLuceneEquality(LuceneQueryParserAdaptor<Q,S,E> lqpa, String propertyName, Serializable value, PredicateMode mode, LuceneFunction luceneFunction) throws E extends Throwable
buildLuceneEquality
in interface FunctionEvaluationContext
propertyName
- Stringvalue
- Serializablemode
- PredicateModeluceneFunction
- LuceneFunctionE
E extends Throwable
public <Q,S,E extends Throwable> Q buildLuceneExists(LuceneQueryParserAdaptor<Q,S,E> lqpa, String propertyName, Boolean not) throws E extends Throwable
FunctionEvaluationContext
buildLuceneExists
in interface FunctionEvaluationContext
propertyName
- Stringnot
- BooleanE
E extends Throwable
public <Q,S,E extends Throwable> Q buildLuceneGreaterThan(LuceneQueryParserAdaptor<Q,S,E> lqpa, String propertyName, Serializable value, PredicateMode mode, LuceneFunction luceneFunction) throws E extends Throwable
buildLuceneGreaterThan
in interface FunctionEvaluationContext
propertyName
- Stringvalue
- Serializablemode
- PredicateModeluceneFunction
- LuceneFunctionE
E extends Throwable
public <Q,S,E extends Throwable> Q buildLuceneGreaterThanOrEquals(LuceneQueryParserAdaptor<Q,S,E> lqpa, String propertyName, Serializable value, PredicateMode mode, LuceneFunction luceneFunction) throws E extends Throwable
buildLuceneGreaterThanOrEquals
in interface FunctionEvaluationContext
propertyName
- Stringvalue
- Serializablemode
- PredicateModeluceneFunction
- LuceneFunctionE
E extends Throwable
public <Q,S,E extends Throwable> Q buildLuceneIn(LuceneQueryParserAdaptor<Q,S,E> lqpa, String propertyName, Collection<Serializable> values, Boolean not, PredicateMode mode) throws E extends Throwable
FunctionEvaluationContext
buildLuceneIn
in interface FunctionEvaluationContext
propertyName
- Stringnot
- Booleanmode
- PredicateModeE
E extends Throwable
public <Q,S,E extends Throwable> Q buildLuceneInequality(LuceneQueryParserAdaptor<Q,S,E> lqpa, String propertyName, Serializable value, PredicateMode mode, LuceneFunction luceneFunction) throws E extends Throwable
buildLuceneInequality
in interface FunctionEvaluationContext
propertyName
- Stringvalue
- Serializablemode
- PredicateModeluceneFunction
- LuceneFunctionE
E extends Throwable
public <Q,S,E extends Throwable> Q buildLuceneLessThan(LuceneQueryParserAdaptor<Q,S,E> lqpa, String propertyName, Serializable value, PredicateMode mode, LuceneFunction luceneFunction) throws E extends Throwable
buildLuceneLessThan
in interface FunctionEvaluationContext
propertyName
- Stringvalue
- Serializablemode
- PredicateModeluceneFunction
- LuceneFunctionE
E extends Throwable
public <Q,S,E extends Throwable> Q buildLuceneLessThanOrEquals(LuceneQueryParserAdaptor<Q,S,E> lqpa, String propertyName, Serializable value, PredicateMode mode, LuceneFunction luceneFunction) throws E extends Throwable
buildLuceneLessThanOrEquals
in interface FunctionEvaluationContext
propertyName
- Stringvalue
- Serializablemode
- PredicateModeluceneFunction
- LuceneFunctionE
E extends Throwable
public <Q,S,E extends Throwable> Q buildLuceneLike(LuceneQueryParserAdaptor<Q,S,E> lqpa, String propertyName, Serializable value, Boolean not) throws E extends Throwable
FunctionEvaluationContext
buildLuceneLike
in interface FunctionEvaluationContext
propertyName
- Stringvalue
- Serializablenot
- BooleanE
E extends Throwable
public <Q,S,E extends Throwable> String getLuceneSortField(LuceneQueryParserAdaptor<Q,S,E> lqpa, String propertyName) throws E extends Throwable
getLuceneSortField
in interface FunctionEvaluationContext
propertyName
- StringE
E extends Throwable
public Map<String,NodeRef> getNodeRefs()
getNodeRefs
in interface FunctionEvaluationContext
public NodeService getNodeService()
getNodeService
in interface FunctionEvaluationContext
public Serializable getProperty(NodeRef nodeRef, String propertyName)
FunctionEvaluationContext
getProperty
in interface FunctionEvaluationContext
nodeRef
- NodeRefpropertyName
- Stringpublic Float getScore()
getScore
in interface FunctionEvaluationContext
public Map<String,Float> getScores()
getScores
in interface FunctionEvaluationContext
public boolean isObjectId(String propertyName)
isObjectId
in interface FunctionEvaluationContext
propertyName
- Stringpublic boolean isOrderable(String fieldName)
isOrderable
in interface FunctionEvaluationContext
fieldName
- Stringpublic boolean isQueryable(String fieldName)
isQueryable
in interface FunctionEvaluationContext
fieldName
- Stringpublic String getLuceneFieldName(String propertyName)
getLuceneFieldName
in interface FunctionEvaluationContext
propertyName
- Stringpublic LuceneFunction getLuceneFunction(FunctionArgument functionArgument)
getLuceneFunction
in interface FunctionEvaluationContext
functionArgument
- FunctionArgumentpublic void checkFieldApplies(Selector selector, String propertyName)
checkFieldApplies
in interface FunctionEvaluationContext
selector
- SelectorpropertyName
- Stringpublic boolean isMultiValued(String propertyName)
FunctionEvaluationContext
isMultiValued
in interface FunctionEvaluationContext
propertyName
- Stringpublic String getAlfrescoPropertyName(String propertyName)
getAlfrescoPropertyName
in interface FunctionEvaluationContext
public String getAlfrescoTypeName(String typeName)
getAlfrescoTypeName
in interface FunctionEvaluationContext
typeName
- StringCopyright © 2005–2016 Alfresco Software. All rights reserved.