T - public class TimelineQueryParametersConfigurator<T extends TimelineQueryParameters> extends QueryParametersConfigurator
QueryParametersConfigurator can be used to configure a CoreItemQueryInstance
.| Constructor and Description |
|---|
TimelineQueryParametersConfigurator(QueryParametersParameterNameProvider nameProvider)
Constructor for this
QueryParametersConfigurator. |
TimelineQueryParametersConfigurator(QueryParametersParameterNameProvider nameProvider,
int defaultMaxCount)
Constructor for this
QueryParametersConfigurator. |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Map<String,? extends Object> parameters,
T queryParameters)
Method to start the configuration process.
|
protected void |
configureBlogSpecificQueryInstance(Map<String,? extends Object> parameters,
T queryParameters)
This method configures the given QueryInstance with blog specific settings from the parameter
map.
|
protected void |
configureQueryParameters(Map<String,? extends Object> parameters,
T queryParameters)
This method configures a given query instance with the provided parameters map.
|
TimelineFilterViewType |
determineViewType(Map<String,? extends Object> parameters)
Helper to determine the
TimelineFilterViewType based on the parameters and the
defined name provider. |
static TimelineFilterViewType |
determineViewType(Map<String,? extends Object> parameters,
QueryParametersParameterNameProvider parameterNameProvider)
Helper to determine the
TimelineFilterViewType based on the parameters. |
getParameterNameProvider, getResultSpecification, getResultSpecificationpublic TimelineQueryParametersConfigurator(QueryParametersParameterNameProvider nameProvider)
QueryParametersConfigurator.nameProvider - To fetch parameters for the query instance.public TimelineQueryParametersConfigurator(QueryParametersParameterNameProvider nameProvider, int defaultMaxCount)
QueryParametersConfigurator.nameProvider - To fetch parameters for the query instance.defaultMaxCount - the default value to use if maxCount parameter is not setpublic static TimelineFilterViewType determineViewType(Map<String,? extends Object> parameters, QueryParametersParameterNameProvider parameterNameProvider)
TimelineFilterViewType based on the parameters. In case no
parameter is set or invalid, TimelineFilterViewType.CLASSIC is returned.parameters - the parameters to useparameterNameProvider - the parameter name provider to usepublic void configure(Map<String,? extends Object> parameters, T queryParameters)
parameters - Map which holds the parameters to be used to configure the query instance.queryParameters - Class of type QueryInstance.protected void configureBlogSpecificQueryInstance(Map<String,? extends Object> parameters, T queryParameters)
parameters - Map with parameters.queryParameters - Class of type QueryInstance.protected void configureQueryParameters(Map<String,? extends Object> parameters, T queryParameters)
parameters - Map with parameters.queryParameters - Class of type QueryInstance.public TimelineFilterViewType determineViewType(Map<String,? extends Object> parameters)
TimelineFilterViewType based on the parameters and the
defined name provider. In case no parameter is set or invalid,
TimelineFilterViewType.CLASSIC is returned.
Is using
determineViewType(Map, QueryParametersParameterNameProvider)parameters - the parameters to take it fromCopyright © 2019 Communote team. All rights reserved.