public interface Searchable
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 |
default int |
criteriaPosition()
The position of the criteria provided by this
Searchable among criteria provided by other Searchable s. |
Collection<SearchCriterionDefinition> |
getCriteria(AdditionalParameterValueMap additionalParameterValues)
Gets the criteria
|
I18nizableText |
getLabel()
Gets the label of the searchable
|
Optional<Query> |
joinQuery(Query queryOnCriterion,
Collection<Returnable> returnables,
AdditionalParameterValueMap additionalParameters)
Returns the query which joins the given one (on a criterion) with the given result types
|
default Collection<Returnable> |
relationsWith()
Retrieves the relations the type must have with some
Returnable s. |
I18nizableText getLabel()
default Collection<Returnable> relationsWith()
Returnable
s.
Returnable.relationsWith()
declares the relation, it is useless to declare it twice)Returnable
sdefault Collection<Configuration> additionalServiceParameters()
Returnable
s and Searchable
sCollection<SearchCriterionDefinition> getCriteria(AdditionalParameterValueMap additionalParameterValues)
additionalParameterValues
- The additional parameter valuesdefault int criteriaPosition()
Searchable
among criteria provided by other Searchable
s.
Searchable
are always packed together, this integer just affects the relative position compared to other Searchable
criteria.
Searchable
Optional<Query> joinQuery(Query queryOnCriterion, Collection<Returnable> returnables, AdditionalParameterValueMap additionalParameters)
queryOnCriterion
- The query on the criterion to join fromreturnables
- The returnables to join toadditionalParameters
- The additional parameters