public abstract class AbstractParameterAdder extends AbstractLogEnabled implements Configurable, Serviceable, PluginAware
Returnable
or Searchable
which adds some parameters to the search service.
<extension point="org.ametys.web.frontoffice.search.metamodel.Returnable/SearchableExtensionPoint" id="..." class="..."> <parameters> <parameter name="..." reloadCriteriaOnChange="true"> ... </parameter> </parameters> </extension>
Modifier and Type | Field and Description |
---|---|
private Configuration[] |
_additionalParameterConfigs |
protected ServiceManager |
_manager
The service manager
|
protected String |
_pluginName
The plugin of the extension
|
Constructor and Description |
---|
AbstractParameterAdder() |
Modifier and Type | Method and Description |
---|---|
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
Implementation for Searchable.additionalServiceParameters() and Returnable.additionalServiceParameters() |
void |
configure(Configuration configuration) |
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. |
getLogger, setLogger
protected ServiceManager _manager
protected String _pluginName
private Configuration[] _additionalParameterConfigs
public AbstractParameterAdder()
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
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 Collection<Configuration> additionalServiceParameters()
Returnable
s and Searchable
s
Searchable.additionalServiceParameters()
and Returnable.additionalServiceParameters()