public abstract class AbstractSolrFacetConfigAdminWebScript
extends org.springframework.extensions.webscripts.DeclarativeWebScript
Modifier and Type | Field and Description |
---|---|
protected static String |
CUSTOM_PARAM_NAME |
protected static String |
CUSTOM_PARAM_VALUE |
protected SolrFacetService |
facetService |
protected static Pattern |
FILTER_ID_PATTERN |
protected org.alfresco.service.namespace.NamespaceService |
namespaceService |
protected static String |
PARAM_CUSTOM_PROPERTIES |
protected static String |
PARAM_DISPLAY_CONTROL |
protected static String |
PARAM_DISPLAY_NAME |
protected static String |
PARAM_FACET_QNAME |
protected static String |
PARAM_FILTER_ID |
protected static String |
PARAM_HIT_THRESHOLD |
protected static String |
PARAM_INDEX |
protected static String |
PARAM_IS_ENABLED |
protected static String |
PARAM_MAX_FILTERS |
protected static String |
PARAM_MIN_FILTER_VALUE_LENGTH |
protected static String |
PARAM_SCOPE |
protected static String |
PARAM_SCOPED_SITES |
protected static String |
PARAM_SORT_BY |
Constructor and Description |
---|
AbstractSolrFacetConfigAdminWebScript() |
Modifier and Type | Method and Description |
---|---|
protected Map<String,Object> |
executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req,
org.springframework.extensions.webscripts.Status status,
org.springframework.extensions.webscripts.Cache cache) |
protected Set<SolrFacetProperties.CustomProperties> |
getCustomProperties(org.json.JSONObject customPropsJsonObj) |
protected int |
getNonNegativeIntParameter(org.springframework.extensions.webscripts.WebScriptRequest req,
String paramName,
int defaultValue)
Retrieves the named parameter as an integer, if the parameter is not present the default value is returned.
|
protected Set<String> |
getScopedSites(org.json.JSONArray scopedSitesJsonArray) |
protected <T> T |
getValue(Class<T> clazz,
Object value,
T defaultValue) |
void |
setFacetService(SolrFacetService facetService) |
void |
setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService) |
protected abstract Map<String,Object> |
unprotectedExecuteImpl(org.springframework.extensions.webscripts.WebScriptRequest req,
org.springframework.extensions.webscripts.Status status,
org.springframework.extensions.webscripts.Cache cache) |
protected void |
validateCurrentUser() |
protected void |
validateFilterID(String filterID) |
execute, executeFinallyImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplate
addModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString
protected static final String PARAM_FILTER_ID
protected static final String PARAM_FACET_QNAME
protected static final String PARAM_DISPLAY_NAME
protected static final String PARAM_DISPLAY_CONTROL
protected static final String PARAM_MAX_FILTERS
protected static final String PARAM_HIT_THRESHOLD
protected static final String PARAM_MIN_FILTER_VALUE_LENGTH
protected static final String PARAM_SORT_BY
protected static final String PARAM_SCOPE
protected static final String PARAM_SCOPED_SITES
protected static final String PARAM_INDEX
protected static final String PARAM_IS_ENABLED
protected static final String PARAM_CUSTOM_PROPERTIES
protected static final String CUSTOM_PARAM_NAME
protected static final String CUSTOM_PARAM_VALUE
protected static final Pattern FILTER_ID_PATTERN
protected SolrFacetService facetService
protected org.alfresco.service.namespace.NamespaceService namespaceService
public AbstractSolrFacetConfigAdminWebScript()
public void setFacetService(SolrFacetService facetService)
facetService
- the facetService to setpublic void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
namespaceService
- the namespaceService to setprotected Map<String,Object> executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache)
executeImpl
in class org.springframework.extensions.webscripts.DeclarativeWebScript
protected void validateCurrentUser()
protected <T> T getValue(Class<T> clazz, Object value, T defaultValue) throws org.json.JSONException
org.json.JSONException
protected Set<SolrFacetProperties.CustomProperties> getCustomProperties(org.json.JSONObject customPropsJsonObj) throws org.json.JSONException
org.json.JSONException
protected Set<String> getScopedSites(org.json.JSONArray scopedSitesJsonArray) throws org.json.JSONException
org.json.JSONException
protected void validateFilterID(String filterID)
protected int getNonNegativeIntParameter(org.springframework.extensions.webscripts.WebScriptRequest req, String paramName, int defaultValue)
req
- The WebScript requestparamName
- The name of parameter to look for.defaultValue
- The default value that should be returned if parameter is not present in request or is negative.org.springframework.extensions.webscripts.WebScriptException
- if the named parameter cannot be converted to int (HTTP rsp 400).Copyright © 2005–2017 Alfresco Software. All rights reserved.