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
public class SearchServiceClientSideWidget extends StaticClientSideWidget
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
Constructors Constructor Description SearchServiceClientSideWidget()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Map<String,Object>>
getFacetDefinitions(List<String> returnableIds, Map<String,Object> formValues)
Gets theFacetDefinition
s to display as JSONList<Map<String,Object>>
getFacetDefinitions(Map<String,Object> parameters)
Gets theFacetDefinition
s to display as JSONMap<String,Map<String,Object>>
getSearchCriterionDefinitions(List<String> returnableIds, Map<String,Object> formValues)
Gets theSearchCriterionDefinition
s to display as JSONList<Map<String,Object>>
getSortDefinitions(List<String> returnableIds, Map<String,Object> formValues)
Gets theSortDefinition
s to display as JSONList<Map<String,Object>>
getSortDefinitions(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 Detail
-
SearchServiceClientSideWidget
public SearchServiceClientSideWidget()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classStaticFileImportsClientSideElement
- Throws:
ServiceException
-
getSearchCriterionDefinitions
public Map<String,Map<String,Object>> getSearchCriterionDefinitions(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
public List<Map<String,Object>> getFacetDefinitions(Map<String,Object> parameters)
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
public List<Map<String,Object>> getSortDefinitions(Map<String,Object> parameters)
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
-
-