public class PageSearchable extends Object implements Searchable, Serviceable, PluginAware, Configurable
Searchable for Pages| Modifier and Type | Field and Description |
|---|---|
protected static String |
__CRITERION_DEFINITIONS_PREFIX_ID
The prefix for the ids of criterion definitions
|
protected int |
_criteriaPosition
The criteria position
|
protected I18nizableText |
_label
The label
|
protected Returnable |
_pageReturnable
The page returnable
|
private String |
_pluginName |
| Constructor and Description |
|---|
PageSearchable() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Configuration configuration) |
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
|
Collection<Returnable> |
relationsWith()
Retrieves the relations the type must have with some
Returnables. |
void |
service(ServiceManager manager) |
void |
setPluginInfo(String pluginName,
String featureName,
String id)
Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadditionalServiceParametersprotected static final String __CRITERION_DEFINITIONS_PREFIX_ID
protected Returnable _pageReturnable
protected I18nizableText _label
protected int _criteriaPosition
private String _pluginName
public PageSearchable()
public void service(ServiceManager manager) throws ServiceException
service in interface ServiceableServiceExceptionpublic void configure(Configuration configuration) throws ConfigurationException
configure in interface ConfigurableConfigurationExceptionpublic void setPluginInfo(String pluginName, String featureName, String id)
PluginAwaresetPluginInfo in interface PluginAwarepluginName - Unique identifier for the plugin hosting the extensionfeatureName - Unique feature identifier (unique for a given pluginName)id - Unique identifier of this componentpublic I18nizableText getLabel()
SearchablegetLabel in interface Searchablepublic Collection<SearchCriterionDefinition> getCriteria(AdditionalParameterValueMap additionalParameterValues)
SearchablegetCriteria in interface SearchableadditionalParameterValues - The additional parameter valuespublic int criteriaPosition()
SearchableSearchable among criteria provided by other Searchables.
Searchable are always packed together, this integer just affects the relative position compared to other Searchable criteria.
criteriaPosition in interface SearchableSearchablepublic Optional<Query> joinQuery(Query queryOnCriterion, Collection<Returnable> returnables, AdditionalParameterValueMap additionalParameters)
SearchablejoinQuery in interface SearchablequeryOnCriterion - The query on the criterion to join fromreturnables - The returnables to join toadditionalParameters - The additional parameterspublic Collection<Returnable> relationsWith()
SearchableReturnables.
Returnable.relationsWith() declares the relation, it is useless to declare it twice)relationsWith in interface SearchableReturnables