Class SearchServiceClientSideWidget
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.ui.StaticFileImportsClientSideElement
org.ametys.core.ui.StaticClientSideElement
org.ametys.core.ui.widgets.StaticClientSideWidget
org.ametys.web.frontoffice.search.widgets.SearchServiceClientSideWidget
- All Implemented Interfaces:
ClientSideElement,ClientSideWidget,LogEnabled,PluginAware,Configurable,Serviceable
The class for search service specific widgets.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile -
Field Summary
Fields inherited from class org.ametys.core.ui.widgets.StaticClientSideWidget
PARAMETER_FTYPES, PARAMETER_SUPPORTS_ENUMERATED, PARAMETER_SUPPORTS_MULTIPLE, PARAMETER_SUPPORTS_NONENUMERATED, PARAMETER_SUPPORTS_NONMULTIPLEFields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets theSearchServiceCriterionDefinitions to display as JSONGets theSearchServiceFacetDefinitions to display as JSONgetFacetDefinitions(Map<String, Object> parameters) Gets theSearchServiceFacetDefinitions to display as JSONGets theSearchServiceSortDefinitions to display as JSONgetSortDefinitions(Map<String, Object> parameters) Gets theSearchServiceSortDefinitions to display as JSONvoidservice(ServiceManager smanager) Methods inherited from class org.ametys.core.ui.widgets.StaticClientSideWidget
getFormTypes, supportsEnumerated, supportsMultiple, supportsNonEnumerated, supportsNonMultipleMethods inherited from class org.ametys.core.ui.StaticClientSideElement
_configureClass, _configureParameters, _configureScript, configureInitialParametersMethods inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, setPluginInfo, toStringMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ametys.core.ui.ClientSideElement
getDependencies, getId, getPluginName, getRights, getScripts, getScripts
-
Constructor Details
-
SearchServiceClientSideWidget
public SearchServiceClientSideWidget()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classStaticFileImportsClientSideElement- Throws:
ServiceException
-
getCriterionDefinitions
public Map<String,Map<String, getCriterionDefinitionsObject>> (List<String> returnableIds, Map<String, Object> formValues) Gets theSearchServiceCriterionDefinitions to display as JSON- Parameters:
returnableIds- The selectedReturnablesformValues- The values of the form- Returns:
- the
SearchServiceCriterionDefinitions to display as JSON
-
getFacetDefinitions
Gets theSearchServiceFacetDefinitions to display as JSON- Parameters:
parameters- The client parameters. It must contain 'returnableIds' and 'formValues' keys.- Returns:
- the
SearchServiceFacetDefinitions to display as JSON
-
getFacetDefinitions
public List<Map<String,Object>> getFacetDefinitions(List<String> returnableIds, Map<String, Object> formValues) Gets theSearchServiceFacetDefinitions to display as JSON- Parameters:
returnableIds- The selectedReturnablesformValues- The values of the form- Returns:
- the
SearchServiceFacetDefinitions to display as JSON
-
getSortDefinitions
Gets theSearchServiceSortDefinitions to display as JSON- Parameters:
parameters- The client parameters. It must contain 'returnableIds' and 'formValues' keys.- Returns:
- the
SearchServiceSortDefinitions to display as JSON
-
getSortDefinitions
public List<Map<String,Object>> getSortDefinitions(List<String> returnableIds, Map<String, Object> formValues) Gets theSearchServiceSortDefinitions to display as JSON- Parameters:
returnableIds- The selectedReturnablesformValues- The SortDefinition of the form- Returns:
- the
SearchServiceFacetDefinitions to display as JSON
-