Package org.apache.ofbiz.content.content
Class ContentSearch.ContentSearchContext
- java.lang.Object
-
- org.apache.ofbiz.content.content.ContentSearch.ContentSearchContext
-
- Enclosing class:
- ContentSearch
public static class ContentSearch.ContentSearchContext extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description java.util.Set<java.lang.String>
andKeywordFixedSet
boolean
contentIdGroupBy
java.util.List<GenericValue>
contentSearchConstraintList
protected Delegator
delegator
DynamicViewEntity
dynamicViewEntity
java.util.List<EntityCondition>
entityConditionList
java.util.Set<java.lang.String>
fieldsToSelect
boolean
includedKeywordSearch
int
index
java.util.List<java.util.Set<java.lang.String>>
keywordFixedOrSetAndList
java.lang.Integer
maxResults
java.sql.Timestamp
nowTimestamp
java.util.List<java.lang.String>
orderByList
java.util.Set<java.lang.String>
orKeywordFixedSet
java.lang.Integer
resultOffset
ContentSearch.ResultSortOrder
resultSortOrder
protected java.lang.Integer
totalResults
protected java.lang.String
visitId
-
Constructor Summary
Constructors Constructor Description ContentSearchContext(Delegator delegator, java.lang.String visitId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addContentSearchConstraints(java.util.List<? extends ContentSearch.ContentSearchConstraint> contentSearchConstraintList)
EntityListIterator
doQuery(Delegator delegator)
java.util.ArrayList<java.lang.String>
doSearch()
void
finishKeywordConstraints()
Delegator
getDelegator()
java.lang.Integer
getTotalResults()
java.util.ArrayList<java.lang.String>
makeContentIdList(EntityListIterator eli)
void
saveSearchResultInfo(java.lang.Long numResults, java.lang.Double secondsTotal)
void
setMaxResults(java.lang.Integer maxResults)
void
setResultOffset(java.lang.Integer resultOffset)
void
setResultSortOrder(ContentSearch.ResultSortOrder resultSortOrder)
-
-
-
Field Detail
-
index
public int index
-
entityConditionList
public java.util.List<EntityCondition> entityConditionList
-
orderByList
public java.util.List<java.lang.String> orderByList
-
fieldsToSelect
public java.util.Set<java.lang.String> fieldsToSelect
-
dynamicViewEntity
public DynamicViewEntity dynamicViewEntity
-
contentIdGroupBy
public boolean contentIdGroupBy
-
includedKeywordSearch
public boolean includedKeywordSearch
-
nowTimestamp
public java.sql.Timestamp nowTimestamp
-
keywordFixedOrSetAndList
public java.util.List<java.util.Set<java.lang.String>> keywordFixedOrSetAndList
-
orKeywordFixedSet
public java.util.Set<java.lang.String> orKeywordFixedSet
-
andKeywordFixedSet
public java.util.Set<java.lang.String> andKeywordFixedSet
-
contentSearchConstraintList
public java.util.List<GenericValue> contentSearchConstraintList
-
resultSortOrder
public ContentSearch.ResultSortOrder resultSortOrder
-
resultOffset
public java.lang.Integer resultOffset
-
maxResults
public java.lang.Integer maxResults
-
delegator
protected Delegator delegator
-
visitId
protected java.lang.String visitId
-
totalResults
protected java.lang.Integer totalResults
-
-
Constructor Detail
-
ContentSearchContext
public ContentSearchContext(Delegator delegator, java.lang.String visitId)
-
-
Method Detail
-
getDelegator
public Delegator getDelegator()
-
addContentSearchConstraints
public void addContentSearchConstraints(java.util.List<? extends ContentSearch.ContentSearchConstraint> contentSearchConstraintList)
-
setResultSortOrder
public void setResultSortOrder(ContentSearch.ResultSortOrder resultSortOrder)
-
setResultOffset
public void setResultOffset(java.lang.Integer resultOffset)
-
setMaxResults
public void setMaxResults(java.lang.Integer maxResults)
-
getTotalResults
public java.lang.Integer getTotalResults()
-
doSearch
public java.util.ArrayList<java.lang.String> doSearch()
-
finishKeywordConstraints
public void finishKeywordConstraints()
-
doQuery
public EntityListIterator doQuery(Delegator delegator)
- Parameters:
delegator
- the delegator- Returns:
- EntityListIterator representing the result of the query: NOTE THAT THIS MUST BE CLOSED WHEN YOU ARE DONE WITH IT (preferably in a finally block), AND DON'T LEAVE IT OPEN TOO LONG BECAUSE IT WILL MAINTAIN A DATABASE CONNECTION.
-
makeContentIdList
public java.util.ArrayList<java.lang.String> makeContentIdList(EntityListIterator eli)
-
saveSearchResultInfo
public void saveSearchResultInfo(java.lang.Long numResults, java.lang.Double secondsTotal)
-
-