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_NONMULTIPLE
Fields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets theFacetDefinition
s to display as JSONgetFacetDefinitions
(Map<String, Object> parameters) Gets theFacetDefinition
s to display as JSONGets theSearchCriterionDefinition
s to display as JSONGets theSortDefinition
s to display as JSONgetSortDefinitions
(Map<String, Object> parameters) Gets theSortDefinition
s to display as JSONvoid
service
(ServiceManager smanager) Methods inherited from class org.ametys.core.ui.widgets.StaticClientSideWidget
getFormTypes, supportsEnumerated, supportsMultiple, supportsNonEnumerated, supportsNonMultiple
Methods inherited from class org.ametys.core.ui.StaticClientSideElement
_configureClass, _configureParameters, _configureScript, configureInitialParameters
Methods inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, setPluginInfo, toString
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, wait, wait, wait
Methods inherited from interface org.ametys.core.ui.ClientSideElement
getDependencies, getId, getPluginName, getRights, getScripts, getScripts
-
Constructor Details
-
SearchServiceClientSideWidget
public SearchServiceClientSideWidget()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classStaticFileImportsClientSideElement
- Throws:
ServiceException
-
getSearchCriterionDefinitions
public Map<String,Map<String, getSearchCriterionDefinitionsObject>> (List<String> returnableIds, Map<String, Object> formValues) Gets theSearchCriterionDefinition
s to display as JSON- Parameters:
returnableIds
- The selectedReturnable
sformValues
- The values of the form- Returns:
- the
SearchCriterionDefinition
s to display as JSON
-
getFacetDefinitions
Gets theFacetDefinition
s to display as JSON- Parameters:
parameters
- The client parameters. It must contain 'returnableIds' and 'formValues' keys.- Returns:
- the
FacetDefinition
s to display as JSON
-
getFacetDefinitions
public List<Map<String,Object>> getFacetDefinitions(List<String> returnableIds, Map<String, Object> formValues) Gets theFacetDefinition
s to display as JSON- Parameters:
returnableIds
- The selectedReturnable
sformValues
- The values of the form- Returns:
- the
FacetDefinition
s to display as JSON
-
getSortDefinitions
Gets theSortDefinition
s to display as JSON- Parameters:
parameters
- The client parameters. It must contain 'returnableIds' and 'formValues' keys.- Returns:
- the
SortDefinition
s to display as JSON
-
getSortDefinitions
public List<Map<String,Object>> getSortDefinitions(List<String> returnableIds, Map<String, Object> formValues) Gets theSortDefinition
s to display as JSON- Parameters:
returnableIds
- The selectedReturnable
sformValues
- The SortDefinition of the form- Returns:
- the
FacetDefinition
s to display as JSON
-