public class CmisFunctionEvaluationContext extends Object implements FunctionEvaluationContext
Modifier and Type | Field and Description |
---|---|
static org.apache.chemistry.opencmis.commons.enums.BaseTypeId[] |
ALFRESCO_SCOPES |
static org.apache.chemistry.opencmis.commons.enums.BaseTypeId[] |
STRICT_SCOPES |
Constructor and Description |
---|
CmisFunctionEvaluationContext() |
public static org.apache.chemistry.opencmis.commons.enums.BaseTypeId[] STRICT_SCOPES
public static org.apache.chemistry.opencmis.commons.enums.BaseTypeId[] ALFRESCO_SCOPES
public void setNodeRefs(Map<String,NodeRef> nodeRefs)
nodeRefs
- the nodeRefs to setpublic void setNodeInfos(Map<NodeRef,CMISNodeInfo> nodeInfos)
public void setNodeService(NodeService nodeService)
nodeService
- the nodeService to setpublic void setCmisDictionaryService(CMISDictionaryService cmisDictionaryService)
cmisDictionaryService
- the cmisDictionaryService to setpublic void setValidScopes(org.apache.chemistry.opencmis.commons.enums.BaseTypeId[] validScopes)
validScopes
- the valid scopes to setpublic 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 Map<String,Float> getScores()
getScores
in interface FunctionEvaluationContext
public Float getScore()
getScore
in interface FunctionEvaluationContext
public void setScore(Float score)
score
- the score to setpublic <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 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.