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 FunctionEvaluationContextpropertyName - Stringvalue - Serializablemode - PredicateModeluceneFunction - LuceneFunctionEE extends Throwablepublic <Q,S,E extends Throwable> Q buildLuceneExists(LuceneQueryParserAdaptor<Q,S,E> lqpa, String propertyName, Boolean not) throws E extends Throwable
FunctionEvaluationContextbuildLuceneExists in interface FunctionEvaluationContextpropertyName - Stringnot - BooleanEE extends Throwablepublic <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 FunctionEvaluationContextpropertyName - Stringvalue - Serializablemode - PredicateModeluceneFunction - LuceneFunctionEE extends Throwablepublic <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 FunctionEvaluationContextpropertyName - Stringvalue - Serializablemode - PredicateModeluceneFunction - LuceneFunctionEE extends Throwablepublic <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
FunctionEvaluationContextbuildLuceneIn in interface FunctionEvaluationContextpropertyName - Stringnot - Booleanmode - PredicateModeEE extends Throwablepublic <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 FunctionEvaluationContextpropertyName - Stringvalue - Serializablemode - PredicateModeluceneFunction - LuceneFunctionEE extends Throwablepublic <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 FunctionEvaluationContextpropertyName - Stringvalue - Serializablemode - PredicateModeluceneFunction - LuceneFunctionEE extends Throwablepublic <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 FunctionEvaluationContextpropertyName - Stringvalue - Serializablemode - PredicateModeluceneFunction - LuceneFunctionEE extends Throwablepublic <Q,S,E extends Throwable> Q buildLuceneLike(LuceneQueryParserAdaptor<Q,S,E> lqpa, String propertyName, Serializable value, Boolean not) throws E extends Throwable
FunctionEvaluationContextbuildLuceneLike in interface FunctionEvaluationContextpropertyName - Stringvalue - Serializablenot - BooleanEE extends Throwablepublic <Q,S,E extends Throwable> String getLuceneSortField(LuceneQueryParserAdaptor<Q,S,E> lqpa, String propertyName) throws E extends Throwable
getLuceneSortField in interface FunctionEvaluationContextpropertyName - StringEE extends Throwablepublic Map<String,NodeRef> getNodeRefs()
getNodeRefs in interface FunctionEvaluationContextpublic NodeService getNodeService()
getNodeService in interface FunctionEvaluationContextpublic Serializable getProperty(NodeRef nodeRef, String propertyName)
FunctionEvaluationContextgetProperty in interface FunctionEvaluationContextnodeRef - NodeRefpropertyName - Stringpublic Float getScore()
getScore in interface FunctionEvaluationContextpublic Map<String,Float> getScores()
getScores in interface FunctionEvaluationContextpublic boolean isObjectId(String propertyName)
isObjectId in interface FunctionEvaluationContextpropertyName - Stringpublic boolean isOrderable(String fieldName)
isOrderable in interface FunctionEvaluationContextfieldName - Stringpublic boolean isQueryable(String fieldName)
isQueryable in interface FunctionEvaluationContextfieldName - Stringpublic String getLuceneFieldName(String propertyName)
getLuceneFieldName in interface FunctionEvaluationContextpropertyName - Stringpublic LuceneFunction getLuceneFunction(FunctionArgument functionArgument)
getLuceneFunction in interface FunctionEvaluationContextfunctionArgument - FunctionArgumentpublic void checkFieldApplies(Selector selector, String propertyName)
checkFieldApplies in interface FunctionEvaluationContextselector - SelectorpropertyName - Stringpublic boolean isMultiValued(String propertyName)
FunctionEvaluationContextisMultiValued in interface FunctionEvaluationContextpropertyName - Stringpublic String getAlfrescoPropertyName(String propertyName)
getAlfrescoPropertyName in interface FunctionEvaluationContextpublic String getAlfrescoTypeName(String typeName)
getAlfrescoTypeName in interface FunctionEvaluationContexttypeName - StringCopyright © 2005–2019 Alfresco Software. All rights reserved.