public class PageSearchable extends Object implements Searchable, Serviceable, PluginAware, Configurable
Searchable
for Page
sModifier 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 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
|
Collection<Returnable> |
relationsWith()
Retrieves the relations the type must have with some
Returnable s. |
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, wait
additionalServiceParameters
protected 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 Serviceable
ServiceException
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
public void setPluginInfo(String pluginName, String featureName, String id)
PluginAware
setPluginInfo
in interface PluginAware
pluginName
- Unique identifier for the plugin hosting the extensionfeatureName
- Unique feature identifier (unique for a given pluginName)id
- Unique identifier of this componentpublic I18nizableText getLabel()
Searchable
getLabel
in interface Searchable
public Collection<SearchCriterionDefinition> getCriteria(AdditionalParameterValueMap additionalParameterValues)
Searchable
getCriteria
in interface Searchable
additionalParameterValues
- The additional parameter valuespublic int criteriaPosition()
Searchable
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.
criteriaPosition
in interface Searchable
Searchable
public Optional<Query> joinQuery(Query queryOnCriterion, Collection<Returnable> returnables, AdditionalParameterValueMap additionalParameters)
Searchable
joinQuery
in interface Searchable
queryOnCriterion
- The query on the criterion to join fromreturnables
- The returnables to join toadditionalParameters
- The additional parameterspublic Collection<Returnable> relationsWith()
Searchable
Returnable
s.
Returnable.relationsWith()
declares the relation, it is useless to declare it twice)relationsWith
in interface Searchable
Returnable
s