public interface Returnable
Modifier and Type | Method and Description |
---|---|
default Collection<Configuration> |
additionalServiceParameters()
Retrieves the additional parameters to add to the search service
The ids of the parameters must be unique across all Returnable s and Searchable s |
Query |
filterReturnedDocumentQuery(Collection<ContextQueriesWrapper> contextQueriesWrappers,
AdditionalParameterValueMap additionalParameterValues)
Returns the query to execute in order to filter returned objects (according to their type) during the search.
|
Collection<FacetDefinition> |
getFacets(AdditionalParameterValueMap additionalParameterValues)
Gets the facets
|
String |
getId()
Gets the id of the extension
|
I18nizableText |
getLabel()
Gets the label of the type of result
|
ReturnableSaxer |
getSaxer(Collection<Returnable> allReturnables,
AdditionalParameterValueMap additionalParameterValues)
Returns the
saxer responsible to SAX hits of this Returnable. |
Collection<SortDefinition> |
getSorts(AdditionalParameterValueMap additionalParameterValues)
Gets the sorts
|
default Collection<Searchable> |
relationsWith()
Retrieves the relations the type must have with some
Searchable s. |
default boolean |
selectedByDefault()
Returns
true if the type must be selected by default |
I18nizableText getLabel()
default boolean selectedByDefault()
true
if the type must be selected by defaulttrue
if the type must be selected by defaultdefault Collection<Searchable> relationsWith()
Searchable
s.
Searchable.relationsWith()
declares the relation, it is useless to declare it twice)Searchable
sdefault Collection<Configuration> additionalServiceParameters()
Returnable
s and Searchable
sQuery filterReturnedDocumentQuery(Collection<ContextQueriesWrapper> contextQueriesWrappers, AdditionalParameterValueMap additionalParameterValues)
ContextQueriesWrapper#getQuery
in order to make a JoinQuery
on interesting parts of ContextQueriesWrapper
s
and then constructs an AndQuery
composed of a DocumentTypeQuery
and the result of the call.contextQueriesWrappers
- The context queries
additionalParameterValues
- The additional parameter valuesReturnableSaxer getSaxer(Collection<Returnable> allReturnables, AdditionalParameterValueMap additionalParameterValues)
saxer
responsible to SAX hits of this Returnable.allReturnables
- All Returnable
s (including this)additionalParameterValues
- The additional parameter valuessaxer
responsible to SAX hits of this Returnable.Collection<FacetDefinition> getFacets(AdditionalParameterValueMap additionalParameterValues)
additionalParameterValues
- The additional parameter valuesCollection<SortDefinition> getSorts(AdditionalParameterValueMap additionalParameterValues)
additionalParameterValues
- The additional parameter values