public class SearchApiWebscript extends org.springframework.extensions.webscripts.AbstractWebScript implements RecognizedParamsExtractor, RequestReader, ResponseWriter, org.springframework.beans.factory.InitializingBean
Modifier and Type | Field and Description |
---|---|
protected ApiAssistant |
assistant |
protected ResourceWebScriptHelper |
helper |
KNOWN_PARAMS, PARAM_FILTER_FIELDS, PARAM_FILTER_PROPERTIES, PARAM_INCLUDE, PARAM_INCLUDE_SOURCE_ENTITY, PARAM_ORDERBY, PARAM_PAGING_MAX, PARAM_PAGING_SKIP, PARAM_RELATIONS, PARAM_SELECT, PARAM_WHERE
CACHE_NEVER, DEFAULT_JSON_CONTENT, DEFAULT_SUCCESS, UTF8
Constructor and Description |
---|
SearchApiWebscript() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
execute(org.springframework.extensions.webscripts.WebScriptRequest webScriptRequest,
org.springframework.extensions.webscripts.WebScriptResponse webScriptResponse) |
protected Params |
getParams(org.springframework.extensions.webscripts.WebScriptRequest webScriptRequest,
List<String> fields,
List<String> include,
Paging paging)
Gets the Params object, parameters come from the SearchQuery json not the request
|
void |
setAssistant(ApiAssistant assistant) |
void |
setHelper(ResourceWebScriptHelper helper) |
void |
setResultMapper(ResultMapper resultMapper) |
void |
setSearchMapper(SearchMapper searchMapper) |
void |
setServiceRegistry(ServiceRegistry serviceRegistry) |
addModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findPaging, getClause, getFilter, getFilter, getIncludeClause, getPaging, getRecognizedParams, getRelationFilter, getRequestParameters, getSelectClause, getSort, getWhereClause, rpeLogger
extractJsonContent, extractJsonContentAsList, rrLogger
renderErrorResponse, renderException, renderJsonResponse, resWriterLogger, setContentInfoOnResponse, setResponse, setResponse
protected ApiAssistant assistant
protected ResourceWebScriptHelper helper
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
public void execute(org.springframework.extensions.webscripts.WebScriptRequest webScriptRequest, org.springframework.extensions.webscripts.WebScriptResponse webScriptResponse) throws IOException
execute
in interface org.springframework.extensions.webscripts.WebScript
IOException
protected Params getParams(org.springframework.extensions.webscripts.WebScriptRequest webScriptRequest, List<String> fields, List<String> include, Paging paging)
webScriptRequest
- searchQuery
- public void setSearchMapper(SearchMapper searchMapper)
public void setResultMapper(ResultMapper resultMapper)
public void setAssistant(ApiAssistant assistant)
public void setServiceRegistry(ServiceRegistry serviceRegistry)
public void setHelper(ResourceWebScriptHelper helper)
Copyright © 2005–2017 Alfresco Software. All rights reserved.