public class SearchServiceClientSideWidget extends StaticClientSideWidget
ClientSideElement.Script, ClientSideElement.ScriptFile
Modifier and Type | Field and Description |
---|---|
private SearchServiceCreationHelper |
_serviceCreationHelper |
PARAMETER_FTYPES, PARAMETER_SUPPORTS_ENUMERATED, PARAMETER_SUPPORTS_MULTIPLE, PARAMETER_SUPPORTS_NONENUMERATED, PARAMETER_SUPPORTS_NONMULTIPLE
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
Constructor and Description |
---|
SearchServiceClientSideWidget() |
getFormTypes, supportsEnumerated, supportsMultiple, supportsNonEnumerated, supportsNonMultiple
_configureClass, _configureParameters, _configureScript, configureInitialParameters
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, setPluginInfo, toString
getLogger, setLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDependencies, getId, getPluginName, getRights, getScripts, getScripts
private SearchServiceCreationHelper _serviceCreationHelper
public SearchServiceClientSideWidget()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class StaticFileImportsClientSideElement
ServiceException
public Map<String,Map<String,Object>> getSearchCriterionDefinitions(List<String> returnableIds, Map<String,Object> formValues)
SearchCriterionDefinition
s to display as JSONreturnableIds
- The selected Returnable
sformValues
- The values of the formSearchCriterionDefinition
s to display as JSONprivate Map<String,Object> _criterionDefinitionToJson(SearchCriterionDefinition criterionDefinition) throws Exception
Exception
public List<Map<String,Object>> getFacetDefinitions(Map<String,Object> parameters)
FacetDefinition
s to display as JSONparameters
- The client parameters. It must contain 'returnableIds' and 'formValues' keys.FacetDefinition
s to display as JSONpublic List<Map<String,Object>> getFacetDefinitions(List<String> returnableIds, Map<String,Object> formValues)
FacetDefinition
s to display as JSONreturnableIds
- The selected Returnable
sformValues
- The values of the formFacetDefinition
s to display as JSONprivate Map<String,Object> _facetDefinitionToJson(FacetDefinition facetDefinition)
public List<Map<String,Object>> getSortDefinitions(Map<String,Object> parameters)
SortDefinition
s to display as JSONparameters
- The client parameters. It must contain 'returnableIds' and 'formValues' keys.SortDefinition
s to display as JSONpublic List<Map<String,Object>> getSortDefinitions(List<String> returnableIds, Map<String,Object> formValues)
SortDefinition
s to display as JSONreturnableIds
- The selected Returnable
sformValues
- The SortDefinition of the formFacetDefinition
s to display as JSONprivate Map<String,Object> _sortDefinitionToJson(SortDefinition sortDefinition)