public class DiscoveryApiWebscript extends org.springframework.extensions.webscripts.AbstractWebScript implements RecognizedParamsExtractor, ResponseWriter, org.springframework.beans.factory.InitializingBean
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 |
---|
DiscoveryApiWebscript() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
execute(org.springframework.extensions.webscripts.WebScriptRequest webScriptRequest,
org.springframework.extensions.webscripts.WebScriptResponse webScriptResponse) |
protected RepositoryInfo |
getRepositoryInfo() |
void |
renderJsonResponse(org.springframework.extensions.webscripts.WebScriptResponse res,
Object toSerialize,
JacksonHelper jsonHelper)
Renders the result of an execution.
|
void |
setAssistant(ApiAssistant assistant) |
void |
setAuditService(AuditService auditService) |
void |
setDescriptorService(DescriptorService descriptorService) |
void |
setEnabled(boolean enabled) |
void |
setModuleService(ModuleService moduleService) |
void |
setQuickShareService(QuickShareService quickShareService) |
void |
setRepoAdminService(RepoAdminService repoAdminService) |
void |
setThumbnailService(ThumbnailService thumbnailService) |
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
renderErrorResponse, renderException, resWriterLogger, setContentInfoOnResponse, setResponse, setResponse
public void setDescriptorService(DescriptorService descriptorService)
public void setRepoAdminService(RepoAdminService repoAdminService)
public void setAuditService(AuditService auditService)
public void setQuickShareService(QuickShareService quickShareService)
public void setModuleService(ModuleService moduleService)
public void setAssistant(ApiAssistant assistant)
public void setThumbnailService(ThumbnailService thumbnailService)
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
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 RepositoryInfo getRepositoryInfo()
public void renderJsonResponse(org.springframework.extensions.webscripts.WebScriptResponse res, Object toSerialize, JacksonHelper jsonHelper) throws IOException
ResponseWriter
renderJsonResponse
in interface ResponseWriter
res
- WebScriptResponsetoSerialize
- result of an executionIOException
public void setEnabled(boolean enabled)
Copyright © 2005–2017 Alfresco Software. All rights reserved.