Class SearchServiceInstance
- java.lang.Object
-
- org.ametys.web.frontoffice.search.instance.SearchServiceInstance
-
public class SearchServiceInstance extends Object
A wrapper class representing an instance ofSearchService
.
It can be seen as aZoneItem
as well as a FO SearchModel created on the fly by the webmaster.
-
-
Method Summary
-
-
-
Method Detail
-
getReturnables
public List<Returnable> getReturnables()
Gets theReturnable
s- Returns:
- the
Returnable
s
-
getSearchables
public Collection<Searchable> getSearchables()
Gets theSearchable
s- Returns:
- the
Searchable
s
-
getAdditionalParameters
public Collection<AdditionalSearchServiceParameter> getAdditionalParameters()
Gets the additional parameters- Returns:
- the additional parameters
-
getAdditionalParameterValues
public AdditionalParameterValueMap getAdditionalParameterValues()
Gets the additional parameter values- Returns:
- the additional parameter values
-
getContexts
public Collection<SearchContext> getContexts()
Gets theSearchContext
s- Returns:
- the
SearchContext
s
-
getCriterionTree
public Optional<AbstractTreeNode<FOSearchCriterion>> getCriterionTree()
Gets thetree
ofFOSearchCriteria
- Returns:
- the
tree
ofFOSearchCriteria
-
computeCriteriaCounts
public boolean computeCriteriaCounts()
Returnstrue
if the counts of enumerated criteria must be computed- Returns:
true
if the counts of enumerated criteria must be computed
-
getFacets
public Collection<FacetDefinition> getFacets()
Gets theFacetDefinition
s- Returns:
- the
FacetDefinition
s
-
getInitialSorts
public List<Pair<SortDefinition,Sort.Order>> getInitialSorts()
Gets the initialSortDefinition
s with their sort order- Returns:
- the initial
SortDefinition
s with their sort order
-
getProposedSorts
public Collection<SortDefinition> getProposedSorts()
Gets the proposedSortDefinition
s- Returns:
- the proposed
SortDefinition
s
-
resultsPerPage
public Optional<Integer> resultsPerPage()
Gets the number of results per page- Returns:
- the number of results per page
-
maxResults
public Optional<Integer> maxResults()
Gets the maximum number of results- Returns:
- the maximum number of results
-
getRightCheckingMode
public RightCheckingMode getRightCheckingMode()
Gets theRightCheckingMode
- Returns:
- the
RightCheckingMode
-
getResultDisplay
public ResultDisplay getResultDisplay()
Gets the result display- Returns:
- the result display
-
handleRss
public boolean handleRss()
Returnstrue
if it handles RSS- Returns:
true
if it handles RSS
-
saveUserPrefs
public boolean saveUserPrefs()
Returnstrue
if it saves the search parameters in the user preferences- Returns:
true
if it saves the search parameters in the user preferences
-
-