public interface RecognizedParamsExtractor
| Modifier and Type | Field and Description |
|---|---|
static List<String> |
KNOWN_PARAMS |
static String |
PARAM_FILTER_FIELDS |
static String |
PARAM_FILTER_PROPERTIES
Deprecated.
|
static String |
PARAM_INCLUDE |
static String |
PARAM_INCLUDE_SOURCE_ENTITY |
static String |
PARAM_ORDERBY |
static String |
PARAM_PAGING_MAX |
static String |
PARAM_PAGING_SKIP |
static String |
PARAM_RELATIONS |
static String |
PARAM_SELECT |
static String |
PARAM_WHERE |
| Modifier and Type | Method and Description |
|---|---|
default Paging |
findPaging(org.springframework.extensions.webscripts.WebScriptRequest req)
Find paging setings based on the request parameters.
|
default List<String> |
getClause(String param,
String paramName)
Gets the clause specificed in paramName
|
default BeanPropertiesFilter |
getFilter(String filterParams)
Takes the web request and looks for a "fields" parameter (otherwise deprecated "properties" parameter).
|
default BeanPropertiesFilter |
getFilter(String filterParams,
List<String> selectList)
Takes the web request and looks for a "fields" parameter (otherwise deprecated "properties" parameter).
|
default List<String> |
getIncludeClause(String includeParam)
Takes the "include" parameter and turns it into a List
|
default Paging |
getPaging(String skip,
String maxItems)
Gets the default paging object
|
default Params.RecognizedParams |
getRecognizedParams(org.springframework.extensions.webscripts.WebScriptRequest req)
Finds the formal set of params that any rest service could potentially have passed in as request params
|
default Map<String,BeanPropertiesFilter> |
getRelationFilter(String filterParams)
Takes the web request and looks for a "relations" parameter Parses the
parameter and produces a list of bean properties to use as a filter A
SimpleBeanPropertiesFilter it returned that uses the properties If no
filter param is set then a default BeanFilter is returned that will never
filter properties (ie.
|
default Map<String,String[]> |
getRequestParameters(org.springframework.extensions.webscripts.WebScriptRequest req)
Finds all request parameters that aren't already know about (eg.
|
default List<String> |
getSelectClause(String selectParam)
Deprecated.
|
default List<SortColumn> |
getSort(String sortParams)
Takes the Sort parameter as a String and parses it into a List of SortColumn objects.
|
default Query |
getWhereClause(String whereParam)
Takes the "where" parameter and turns it into a Java Object that can be used for querying
|
default org.apache.commons.logging.Log |
rpeLogger() |
static final String PARAM_RELATIONS
static final String PARAM_FILTER_FIELDS
@Deprecated static final String PARAM_FILTER_PROPERTIES
static final String PARAM_PAGING_SKIP
static final String PARAM_PAGING_MAX
static final String PARAM_ORDERBY
static final String PARAM_WHERE
static final String PARAM_SELECT
static final String PARAM_INCLUDE
static final String PARAM_INCLUDE_SOURCE_ENTITY
default org.apache.commons.logging.Log rpeLogger()
default Params.RecognizedParams getRecognizedParams(org.springframework.extensions.webscripts.WebScriptRequest req)
req - WebScriptRequestdefault BeanPropertiesFilter getFilter(String filterParams, List<String> selectList)
filterParams - selectList - @Deprecated default List<String> getSelectClause(String selectParam) throws InvalidArgumentException
selectParam - StringInvalidArgumentExceptiondefault List<String> getIncludeClause(String includeParam) throws InvalidArgumentException
includeParam - StringInvalidArgumentExceptiondefault List<String> getClause(String param, String paramName)
param - paramName - default Query getWhereClause(String whereParam) throws InvalidQueryException
whereParam - StringInvalidQueryExceptiondefault List<SortColumn> getSort(String sortParams)
sortParams - - String passed in on the requestdefault Paging findPaging(org.springframework.extensions.webscripts.WebScriptRequest req)
req - default Paging getPaging(String skip, String maxItems)
skip - maxItems - default BeanPropertiesFilter getFilter(String filterParams)
filterParams - Stringdefault Map<String,BeanPropertiesFilter> getRelationFilter(String filterParams)
filterParams - Stringdefault Map<String,String[]> getRequestParameters(org.springframework.extensions.webscripts.WebScriptRequest req)
req - - the WebScriptRequest objectCopyright © 2005–2018 Alfresco Software. All rights reserved.