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 Returnables and Searchables |
default int |
criteriaPosition()
The position of the criteria provided by this
Searchable among criteria provided by other Searchables. |
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
Returnables. |
I18nizableText getLabel()
default Collection<Returnable> relationsWith()
Returnables.
Returnable.relationsWith() declares the relation, it is useless to declare it twice)Returnablesdefault Collection<Configuration> additionalServiceParameters()
Returnables and SearchablesCollection<SearchCriterionDefinition> getCriteria(AdditionalParameterValueMap additionalParameterValues)
additionalParameterValues - The additional parameter valuesdefault int criteriaPosition()
Searchable among criteria provided by other Searchables.
Searchable are always packed together, this integer just affects the relative position compared to other Searchable criteria.
SearchableOptional<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