Class AbstractParameterAdder
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.web.frontoffice.search.metamodel.impl.AbstractParameterAdder
-
- All Implemented Interfaces:
LogEnabled,PluginAware,Configurable,Serviceable
- Direct Known Subclasses:
AbstractParameterAdderReturnable,AbstractParameterAdderSearchable
public abstract class AbstractParameterAdder extends AbstractLogEnabled implements Configurable, Serviceable, PluginAware
ReturnableorSearchablewhich adds some parameters to the search service.
Declared this way:
<extension point="org.ametys.web.frontoffice.search.metamodel.Returnable/SearchableExtensionPoint" id="..." class="..."> <parameters> <parameter name="..." reloadCriteriaOnChange="true"> ... </parameter> </parameters> </extension>
-
-
Field Summary
Fields Modifier and Type Field Description private Configuration[]_additionalParameterConfigsprotected ServiceManager_managerThe service managerprotected String_pluginNameThe plugin of the extension
-
Constructor Summary
Constructors Constructor Description AbstractParameterAdder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Configuration>additionalServiceParameters()Retrieves the additional parameters to add to the search service
The ids of the parameters must be unique across allReturnables andSearchables
Implementation forSearchable.additionalServiceParameters()andReturnable.additionalServiceParameters()voidconfigure(Configuration configuration)voidservice(ServiceManager manager)voidsetPluginInfo(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.-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Field Detail
-
_manager
protected ServiceManager _manager
The service manager
-
_pluginName
protected String _pluginName
The plugin of the extension
-
_additionalParameterConfigs
private Configuration[] _additionalParameterConfigs
-
-
Constructor Detail
-
AbstractParameterAdder
public AbstractParameterAdder()
-
-
Method Detail
-
configure
public void configure(Configuration configuration) throws ConfigurationException
- Specified by:
configurein interfaceConfigurable- Throws:
ConfigurationException
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
setPluginInfo
public void setPluginInfo(String pluginName, String featureName, String id)
Description copied from interface:PluginAwareSets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level.- Specified by:
setPluginInfoin interfacePluginAware- Parameters:
pluginName- Unique identifier for the plugin hosting the extensionfeatureName- Unique feature identifier (unique for a given pluginName)id- Unique identifier of this component
-
additionalServiceParameters
public Collection<Configuration> additionalServiceParameters()
Retrieves the additional parameters to add to the search service
The ids of the parameters must be unique across allReturnables andSearchables
Implementation forSearchable.additionalServiceParameters()andReturnable.additionalServiceParameters()- Returns:
- some additional parameters to add to the search service
-
-