public class SearchServiceInstance extends Object
SearchService
.
ZoneItem
as well as a FO SearchModel created on the fly by the webmaster.Modifier and Type | Field and Description |
---|---|
private Collection<AdditionalSearchServiceParameter> |
_additionalParameters |
private AdditionalParameterValueMap |
_additionalParameterValues |
private boolean |
_computeCriteriaCounts |
private Collection<SearchContext> |
_contexts |
private AbstractTreeNode<FOSearchCriterion> |
_criterionTree |
private Collection<FacetDefinition> |
_facets |
private boolean |
_handleRss |
private String |
_id |
private List<Pair<SortDefinition,Sort.Order>> |
_initialSorts |
private Link |
_link |
private Integer |
_maxResults |
private Collection<SortDefinition> |
_proposedSorts |
private ResultDisplay |
_resultDisplay |
private Integer |
_resultsPerPage |
private List<Returnable> |
_returnables |
private RightCheckingMode |
_rightCheckingMode |
private boolean |
_saveUserPrefs |
private Collection<Searchable> |
_searchables |
private String |
_title |
private String |
_xslt |
Constructor and Description |
---|
SearchServiceInstance(String id,
String title,
List<Returnable> returnables,
Collection<Searchable> searchables,
Collection<AdditionalSearchServiceParameter> additionalParameters,
AdditionalParameterValueMap additionalParameterValues,
Collection<SearchContext> contexts,
AbstractTreeNode<FOSearchCriterion> criterionTree,
boolean computeCriteriaCounts,
Collection<FacetDefinition> facets,
List<Pair<SortDefinition,Sort.Order>> initialSorts,
Collection<SortDefinition> proposedSorts,
Integer resultsPerPage,
Integer maxResults,
RightCheckingMode rightCheckingMode,
String xslt,
ResultDisplay resultDisplay,
Link link,
boolean handleRss,
boolean saveUserPrefs)
Creates an instance of search service
|
private List<Returnable> _returnables
private Collection<Searchable> _searchables
private Collection<AdditionalSearchServiceParameter> _additionalParameters
private AdditionalParameterValueMap _additionalParameterValues
private Collection<SearchContext> _contexts
private AbstractTreeNode<FOSearchCriterion> _criterionTree
private boolean _computeCriteriaCounts
private Collection<FacetDefinition> _facets
private List<Pair<SortDefinition,Sort.Order>> _initialSorts
private Collection<SortDefinition> _proposedSorts
private Integer _resultsPerPage
private Integer _maxResults
private RightCheckingMode _rightCheckingMode
private ResultDisplay _resultDisplay
private boolean _handleRss
private boolean _saveUserPrefs
SearchServiceInstance(String id, String title, List<Returnable> returnables, Collection<Searchable> searchables, Collection<AdditionalSearchServiceParameter> additionalParameters, AdditionalParameterValueMap additionalParameterValues, Collection<SearchContext> contexts, AbstractTreeNode<FOSearchCriterion> criterionTree, boolean computeCriteriaCounts, Collection<FacetDefinition> facets, List<Pair<SortDefinition,Sort.Order>> initialSorts, Collection<SortDefinition> proposedSorts, Integer resultsPerPage, Integer maxResults, RightCheckingMode rightCheckingMode, String xslt, ResultDisplay resultDisplay, Link link, boolean handleRss, boolean saveUserPrefs)
id
- the idtitle
- the titlereturnables
- the returnablessearchables
- the searchablesadditionalParameters
- the additional parametersadditionalParameterValues
- the additional parameter valuescontexts
- the search contextscriterionTree
- the tree of criteria. Can be null if there is no criterion.computeCriteriaCounts
- true
if the counts of enumerated criteria must be computedfacets
- the facetsinitialSorts
- the initial sortsproposedSorts
- the proposed sortsresultsPerPage
- the number of results per page. Can be nullmaxResults
- the maximum number of results. Can be nullrightCheckingMode
- the right checking modexslt
- the XSLTresultDisplay
- the result display objectlink
- the link objecthandleRss
- true
if it handles RSSsaveUserPrefs
- true
if it saves the search parameters in the user preferencespublic List<Returnable> getReturnables()
Returnable
sReturnable
spublic Collection<Searchable> getSearchables()
Searchable
sSearchable
spublic Collection<AdditionalSearchServiceParameter> getAdditionalParameters()
public AdditionalParameterValueMap getAdditionalParameterValues()
public Collection<SearchContext> getContexts()
SearchContext
sSearchContext
spublic Optional<AbstractTreeNode<FOSearchCriterion>> getCriterionTree()
tree
of FOSearchCriteria
tree
of FOSearchCriteria
public boolean computeCriteriaCounts()
true
if the counts of enumerated criteria must be computedtrue
if the counts of enumerated criteria must be computedpublic Collection<FacetDefinition> getFacets()
FacetDefinition
sFacetDefinition
spublic List<Pair<SortDefinition,Sort.Order>> getInitialSorts()
SortDefinition
s with their sort orderSortDefinition
s with their sort orderpublic Collection<SortDefinition> getProposedSorts()
SortDefinition
sSortDefinition
spublic Optional<Integer> resultsPerPage()
public Optional<Integer> maxResults()
public RightCheckingMode getRightCheckingMode()
RightCheckingMode
RightCheckingMode
public ResultDisplay getResultDisplay()
public boolean handleRss()
true
if it handles RSStrue
if it handles RSSpublic boolean saveUserPrefs()
true
if it saves the search parameters in the user preferencestrue
if it saves the search parameters in the user preferences