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
or Searchable
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
Modifier and TypeFieldDescriptionprotected ServiceManager
The service managerprotected String
The plugin of the extension -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves 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 Details
-
_manager
The service manager -
_pluginName
The plugin of the extension
-
-
Constructor Details
-
AbstractParameterAdder
public AbstractParameterAdder()
-
-
Method Details
-
configure
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
setPluginInfo
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
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
-