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
Returnable
orSearchable
which 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 protected ServiceManager
_manager
The service managerprotected String
_pluginName
The 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 allReturnable
s andSearchable
s
Implementation forSearchable.additionalServiceParameters()
andReturnable.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.-
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
-
-
Constructor Detail
-
AbstractParameterAdder
public AbstractParameterAdder()
-
-
Method Detail
-
configure
public void configure(Configuration configuration) throws ConfigurationException
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
setPluginInfo
public void setPluginInfo(String pluginName, String featureName, String id)
Description copied from interface:PluginAware
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.- Specified by:
setPluginInfo
in 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 allReturnable
s andSearchable
s
Implementation forSearchable.additionalServiceParameters()
andReturnable.additionalServiceParameters()
- Returns:
- some additional parameters to add to the search service
-
-