Package org.ametys.web.frontoffice
Class SearchPagesService
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.web.service.StaticService
org.ametys.web.frontoffice.SearchPagesService
- All Implemented Interfaces:
Model
,ModelItemAccessor
,ModelItemContainer
,LogEnabled
,PluginAware
,Labelable
,Service
,Disposable
,Configurable
,Contextualizable
,Serviceable
Service which can be cacheable or not, depending on a parameter.
-
Field Summary
Modifier and TypeFieldDescriptionThe additional parameter for FO search extension pointFields inherited from class org.ametys.web.service.StaticService
_context, _featureName, _manager, _modelItems, _paramsScript, _pluginName, _repeaterDefinitionParser, _serviceParameterDefinitionParser, _view, _viewAndParametersParser
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
configureParameters
(Configuration parametersConfiguration) Configure the service parametersboolean
isCacheable
(Page currentPage, ZoneItem zoneItem) Returns true if the result of this service may be cached, depending on theZoneItem
containing an instance of this service.void
service
(ServiceManager smanager) Methods inherited from class org.ametys.web.service.StaticService
_configureClass, _configureImports, _configureScript, _parseI18nizableText, configure, configureDialogBoxDimension, configureIndexation, contextualize, dispose, getCategory, getCreationBoxHeight, getCreationBoxWidth, getCSSFiles, getDescription, getIconDecorator, getIconGlyph, getId, getLabel, getLargeIcon, getMediumIcon, getModelItems, getName, getParameters, getParametersScript, getPluginName, getRight, getSmallIcon, getURL, getView, index, isPrivate, setPluginInfo
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.runtime.model.ModelItemAccessor
getChild, getModelItem, hasModelItem
Methods inherited from interface org.ametys.web.service.Service
getFamilyId
-
Field Details
-
_additionalParameterFOSearch
The additional parameter for FO search extension point
-
-
Constructor Details
-
SearchPagesService
public SearchPagesService()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classStaticService
- Throws:
ServiceException
-
isCacheable
Description copied from interface:Service
Returns true if the result of this service may be cached, depending on theZoneItem
containing an instance of this service.- Specified by:
isCacheable
in interfaceService
- Overrides:
isCacheable
in classStaticService
- Parameters:
currentPage
- the currentPage
containing the service.zoneItem
- theZoneItem
containing an instance of this service.
N.B: The ZoneItem can belong to a page that is not the current page, when it is inherited.- Returns:
- true if the result of this service may be cached.
-
configureParameters
protected void configureParameters(Configuration parametersConfiguration) throws ConfigurationException Description copied from class:StaticService
Configure the service parameters- Overrides:
configureParameters
in classStaticService
- Parameters:
parametersConfiguration
- the parameters configuration- Throws:
ConfigurationException
- if a configuration exception occurred
-