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
FieldsModifier and TypeFieldDescriptionprotected ServiceManagerThe service managerprotected StringThe plugin of the extension -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves 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 Details
-
_manager
The service manager -
_pluginName
The plugin of the extension
-
-
Constructor Details
-
AbstractParameterAdder
public AbstractParameterAdder()
-
-
Method Details
-
configure
- Specified by:
configurein interfaceConfigurable- Throws:
ConfigurationException
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
setPluginInfo
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
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
-