|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.cmis.search.CmisFunctionEvaluationContext
public class CmisFunctionEvaluationContext
| Field Summary | |
|---|---|
static CMISScope[] |
ALFRESCO_SCOPES
|
static CMISScope[] |
STRICT_SCOPES
|
| Constructor Summary | |
|---|---|
CmisFunctionEvaluationContext()
|
|
| Method Summary | |
|---|---|
org.apache.lucene.search.Query |
buildLuceneEquality(LuceneQueryParser lqp,
java.lang.String propertyName,
java.io.Serializable value,
PredicateMode mode,
LuceneFunction luceneFunction)
|
org.apache.lucene.search.Query |
buildLuceneExists(LuceneQueryParser 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(LuceneQueryParser lqp,
java.lang.String propertyName,
java.io.Serializable value,
PredicateMode mode,
LuceneFunction luceneFunction)
|
org.apache.lucene.search.Query |
buildLuceneGreaterThanOrEquals(LuceneQueryParser lqp,
java.lang.String propertyName,
java.io.Serializable value,
PredicateMode mode,
LuceneFunction luceneFunction)
|
org.apache.lucene.search.Query |
buildLuceneIn(LuceneQueryParser 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(LuceneQueryParser lqp,
java.lang.String propertyName,
java.io.Serializable value,
PredicateMode mode,
LuceneFunction luceneFunction)
|
org.apache.lucene.search.Query |
buildLuceneLessThan(LuceneQueryParser lqp,
java.lang.String propertyName,
java.io.Serializable value,
PredicateMode mode,
LuceneFunction luceneFunction)
|
org.apache.lucene.search.Query |
buildLuceneLessThanOrEquals(LuceneQueryParser lqp,
java.lang.String propertyName,
java.io.Serializable value,
PredicateMode mode,
LuceneFunction luceneFunction)
|
org.apache.lucene.search.Query |
buildLuceneLike(LuceneQueryParser 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 |
getLuceneFieldName(java.lang.String propertyName)
|
LuceneFunction |
getLuceneFunction(FunctionArgument functionArgument)
|
java.lang.String |
getLuceneSortField(LuceneQueryParser 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)
|
void |
setCmisDictionaryService(CMISDictionaryService cmisDictionaryService)
|
void |
setNodeRefs(java.util.Map nodeRefs)
|
void |
setNodeService(NodeService nodeService)
|
void |
setScore(java.lang.Float score)
|
void |
setScores(java.util.Map scores)
|
void |
setValidScopes(CMISScope[] validScopes)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static CMISScope[] STRICT_SCOPES
public static CMISScope[] ALFRESCO_SCOPES
| Constructor Detail |
|---|
public CmisFunctionEvaluationContext()
| Method Detail |
|---|
public void setNodeRefs(java.util.Map nodeRefs)
nodeRefs - the nodeRefs to setpublic void setScores(java.util.Map scores)
scores - the scores to setpublic void setNodeService(NodeService nodeService)
nodeService - the nodeService to setpublic void setCmisDictionaryService(CMISDictionaryService cmisDictionaryService)
cmisDictionaryService - the cmisDictionaryService to setpublic void setValidScopes(CMISScope[] validScopes)
validScopes - the valid scopes to setpublic java.util.Map getNodeRefs()
getNodeRefs in interface FunctionEvaluationContextpublic NodeService getNodeService()
getNodeService in interface FunctionEvaluationContext
public java.io.Serializable getProperty(NodeRef nodeRef,
java.lang.String propertyName)
FunctionEvaluationContext
getProperty in interface FunctionEvaluationContextpublic java.util.Map getScores()
getScores in interface FunctionEvaluationContextpublic java.lang.Float getScore()
getScore in interface FunctionEvaluationContextpublic void setScore(java.lang.Float score)
score - the score to set
public org.apache.lucene.search.Query buildLuceneEquality(LuceneQueryParser lqp,
java.lang.String propertyName,
java.io.Serializable value,
PredicateMode mode,
LuceneFunction luceneFunction)
throws org.apache.lucene.queryParser.ParseException
buildLuceneEquality in interface FunctionEvaluationContextorg.apache.lucene.queryParser.ParseException
public org.apache.lucene.search.Query buildLuceneExists(LuceneQueryParser lqp,
java.lang.String propertyName,
java.lang.Boolean not)
throws org.apache.lucene.queryParser.ParseException
FunctionEvaluationContext
buildLuceneExists in interface FunctionEvaluationContextorg.apache.lucene.queryParser.ParseException
public org.apache.lucene.search.Query buildLuceneGreaterThan(LuceneQueryParser lqp,
java.lang.String propertyName,
java.io.Serializable value,
PredicateMode mode,
LuceneFunction luceneFunction)
throws org.apache.lucene.queryParser.ParseException
buildLuceneGreaterThan in interface FunctionEvaluationContextorg.apache.lucene.queryParser.ParseException
public org.apache.lucene.search.Query buildLuceneGreaterThanOrEquals(LuceneQueryParser lqp,
java.lang.String propertyName,
java.io.Serializable value,
PredicateMode mode,
LuceneFunction luceneFunction)
throws org.apache.lucene.queryParser.ParseException
buildLuceneGreaterThanOrEquals in interface FunctionEvaluationContextorg.apache.lucene.queryParser.ParseException
public org.apache.lucene.search.Query buildLuceneIn(LuceneQueryParser 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 FunctionEvaluationContextorg.apache.lucene.queryParser.ParseException
public org.apache.lucene.search.Query buildLuceneInequality(LuceneQueryParser lqp,
java.lang.String propertyName,
java.io.Serializable value,
PredicateMode mode,
LuceneFunction luceneFunction)
throws org.apache.lucene.queryParser.ParseException
buildLuceneInequality in interface FunctionEvaluationContextorg.apache.lucene.queryParser.ParseException
public org.apache.lucene.search.Query buildLuceneLessThan(LuceneQueryParser lqp,
java.lang.String propertyName,
java.io.Serializable value,
PredicateMode mode,
LuceneFunction luceneFunction)
throws org.apache.lucene.queryParser.ParseException
buildLuceneLessThan in interface FunctionEvaluationContextorg.apache.lucene.queryParser.ParseException
public org.apache.lucene.search.Query buildLuceneLessThanOrEquals(LuceneQueryParser lqp,
java.lang.String propertyName,
java.io.Serializable value,
PredicateMode mode,
LuceneFunction luceneFunction)
throws org.apache.lucene.queryParser.ParseException
buildLuceneLessThanOrEquals in interface FunctionEvaluationContextorg.apache.lucene.queryParser.ParseException
public org.apache.lucene.search.Query buildLuceneLike(LuceneQueryParser lqp,
java.lang.String propertyName,
java.io.Serializable value,
java.lang.Boolean not)
throws org.apache.lucene.queryParser.ParseException
FunctionEvaluationContext
buildLuceneLike in interface FunctionEvaluationContextorg.apache.lucene.queryParser.ParseException
public java.lang.String getLuceneSortField(LuceneQueryParser lqp,
java.lang.String propertyName)
getLuceneSortField in interface FunctionEvaluationContextpublic boolean isObjectId(java.lang.String propertyName)
isObjectId in interface FunctionEvaluationContextpublic boolean isOrderable(java.lang.String fieldName)
isOrderable in interface FunctionEvaluationContextpublic boolean isQueryable(java.lang.String fieldName)
isQueryable in interface FunctionEvaluationContextpublic java.lang.String getLuceneFieldName(java.lang.String propertyName)
getLuceneFieldName in interface FunctionEvaluationContextpublic LuceneFunction getLuceneFunction(FunctionArgument functionArgument)
getLuceneFunction in interface FunctionEvaluationContext
public void checkFieldApplies(Selector selector,
java.lang.String propertyName)
checkFieldApplies in interface FunctionEvaluationContextpublic boolean isMultiValued(java.lang.String propertyName)
FunctionEvaluationContext
isMultiValued in interface FunctionEvaluationContext
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||