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() |
| Modifier and Type | Method and Description |
|---|---|
<Q,S,E extends Throwable> |
buildLuceneEquality(LuceneQueryParserAdaptor<Q,S,E> lqpa,
String propertyName,
Serializable value,
PredicateMode mode,
LuceneFunction luceneFunction) |
<Q,S,E extends Throwable> |
buildLuceneExists(LuceneQueryParserAdaptor<Q,S,E> lqpa,
String propertyName,
Boolean not)
Note: null and not null are not required to support functions from the spec
|
<Q,S,E extends Throwable> |
buildLuceneGreaterThan(LuceneQueryParserAdaptor<Q,S,E> lqpa,
String propertyName,
Serializable value,
PredicateMode mode,
LuceneFunction luceneFunction) |
<Q,S,E extends Throwable> |
buildLuceneGreaterThanOrEquals(LuceneQueryParserAdaptor<Q,S,E> lqpa,
String propertyName,
Serializable value,
PredicateMode mode,
LuceneFunction luceneFunction) |
<Q,S,E extends Throwable> |
buildLuceneIn(LuceneQueryParserAdaptor<Q,S,E> lqpa,
String propertyName,
Collection<Serializable> values,
Boolean not,
PredicateMode mode)
Note: In is not required to support functions from the spec
|
<Q,S,E extends Throwable> |
buildLuceneInequality(LuceneQueryParserAdaptor<Q,S,E> lqpa,
String propertyName,
Serializable value,
PredicateMode mode,
LuceneFunction luceneFunction) |
<Q,S,E extends Throwable> |
buildLuceneLessThan(LuceneQueryParserAdaptor<Q,S,E> lqpa,
String propertyName,
Serializable value,
PredicateMode mode,
LuceneFunction luceneFunction) |
<Q,S,E extends Throwable> |
buildLuceneLessThanOrEquals(LuceneQueryParserAdaptor<Q,S,E> lqpa,
String propertyName,
Serializable value,
PredicateMode mode,
LuceneFunction luceneFunction) |
<Q,S,E extends Throwable> |
buildLuceneLike(LuceneQueryParserAdaptor<Q,S,E> lqpa,
String propertyName,
Serializable value,
Boolean not)
Note: Like is not required to support functions from the spec
|
void |
checkFieldApplies(Selector selector,
String propertyName) |
String |
getAlfrescoPropertyName(String propertyName) |
String |
getAlfrescoTypeName(String typeName) |
String |
getLuceneFieldName(String propertyName) |
LuceneFunction |
getLuceneFunction(FunctionArgument functionArgument) |
<Q,S,E extends Throwable> |
getLuceneSortField(LuceneQueryParserAdaptor<Q,S,E> lqpa,
String propertyName) |
Map<String,NodeRef> |
getNodeRefs() |
NodeService |
getNodeService() |
Serializable |
getProperty(NodeRef nodeRef,
String propertyName)
Get a property
|
Float |
getScore() |
Map<String,Float> |
getScores() |
boolean |
isMultiValued(String propertyName)
Is this a multi-valued property?
|
boolean |
isObjectId(String propertyName) |
boolean |
isOrderable(String fieldName) |
boolean |
isQueryable(String fieldName) |
void |
setCmisDictionaryService(CMISDictionaryService cmisDictionaryService) |
void |
setNodeInfos(Map<NodeRef,CMISNodeInfo> nodeInfos) |
void |
setNodeRefs(Map<String,NodeRef> nodeRefs) |
void |
setNodeService(NodeService nodeService) |
void |
setScore(Float score) |
void |
setScores(Map<String,Float> scores) |
void |
setValidScopes(org.apache.chemistry.opencmis.commons.enums.BaseTypeId[] validScopes) |
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 FunctionEvaluationContextpublic NodeService getNodeService()
getNodeService in interface FunctionEvaluationContextpublic Serializable getProperty(NodeRef nodeRef, String propertyName)
FunctionEvaluationContextgetProperty in interface FunctionEvaluationContextpublic Map<String,Float> getScores()
getScores in interface FunctionEvaluationContextpublic Float getScore()
getScore in interface FunctionEvaluationContextpublic 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 FunctionEvaluationContextE 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 FunctionEvaluationContextE 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 FunctionEvaluationContextE 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 FunctionEvaluationContextE 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 FunctionEvaluationContextE 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 FunctionEvaluationContextE 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 FunctionEvaluationContextE 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 FunctionEvaluationContextE 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 FunctionEvaluationContextE extends Throwablepublic <Q,S,E extends Throwable> String getLuceneSortField(LuceneQueryParserAdaptor<Q,S,E> lqpa, String propertyName) throws E extends Throwable
getLuceneSortField in interface FunctionEvaluationContextEE extends Throwablepublic boolean isObjectId(String propertyName)
isObjectId in interface FunctionEvaluationContextpublic boolean isOrderable(String fieldName)
isOrderable in interface FunctionEvaluationContextpublic boolean isQueryable(String fieldName)
isQueryable in interface FunctionEvaluationContextpublic String getLuceneFieldName(String propertyName)
getLuceneFieldName in interface FunctionEvaluationContextpublic LuceneFunction getLuceneFunction(FunctionArgument functionArgument)
getLuceneFunction in interface FunctionEvaluationContextpublic void checkFieldApplies(Selector selector, String propertyName)
checkFieldApplies in interface FunctionEvaluationContextpublic boolean isMultiValued(String propertyName)
FunctionEvaluationContextisMultiValued in interface FunctionEvaluationContextpublic String getAlfrescoPropertyName(String propertyName)
getAlfrescoPropertyName in interface FunctionEvaluationContextpublic String getAlfrescoTypeName(String typeName)
getAlfrescoTypeName in interface FunctionEvaluationContextCopyright © 2005–2014 Alfresco Software. All rights reserved.