Package org.apache.ofbiz.content.content
Class ContentSearch.ContentSearchContext
java.lang.Object
org.apache.ofbiz.content.content.ContentSearch.ContentSearchContext
- Enclosing class:
- ContentSearch
The type Content search context.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addContentSearchConstraints
(List<? extends ContentSearch.ContentSearchConstraint> contentSearchConstraintList) Add content search constraints.doSearch()
Do search array list.void
Finish keyword constraints.Gets delegator.Gets total results.Make content id list array list.void
saveSearchResultInfo
(Long numResults, Double secondsTotal) Save search result info.void
setMaxResults
(Integer maxResults) Sets max results.void
setResultOffset
(Integer resultOffset) Sets result offset.void
setResultSortOrder
(ContentSearch.ResultSortOrder resultSortOrder) Sets result sort order.
-
Constructor Details
-
ContentSearchContext
-
-
Method Details
-
getDelegator
Gets delegator.- Returns:
- the delegator
-
addContentSearchConstraints
public void addContentSearchConstraints(List<? extends ContentSearch.ContentSearchConstraint> contentSearchConstraintList) Add content search constraints.- Parameters:
contentSearchConstraintList
- the content search constraint list
-
setResultSortOrder
Sets result sort order.- Parameters:
resultSortOrder
- the result sort order
-
setResultOffset
Sets result offset.- Parameters:
resultOffset
- the result offset
-
setMaxResults
Sets max results.- Parameters:
maxResults
- the max results
-
getTotalResults
Gets total results.- Returns:
- the total results
-
doSearch
Do search array list.- Returns:
- the array list
-
finishKeywordConstraints
public void finishKeywordConstraints()Finish keyword constraints. -
doQuery
- 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
Make content id list array list.- Parameters:
eli
- the eli- Returns:
- the array list
-
saveSearchResultInfo
Save search result info.- Parameters:
numResults
- the num resultssecondsTotal
- the seconds total
-