public class SearchMapper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
AFTS |
static String |
CMIS |
static String |
LUCENE |
static List<String> |
PERMITTED_INCLUDES |
Constructor and Description |
---|
SearchMapper() |
Modifier and Type | Method and Description |
---|---|
protected void |
buildPivotKeys(List<String> pivotKeys,
Pivot aPivot,
List<org.alfresco.service.cmr.search.StatsRequestParameters> stats,
FacetFields facetFields,
List<org.alfresco.service.cmr.search.RangeParameters> ranges,
SearchRequestContext searchRequestContext) |
void |
fromDefault(org.alfresco.service.cmr.search.SearchParameters sp,
Default defaults)
SearchParameters from Default object
|
void |
fromFacetFields(org.alfresco.service.cmr.search.SearchParameters sp,
FacetFields facetFields)
SearchParameters from FacetFields object
|
void |
fromFacetIntervals(org.alfresco.service.cmr.search.SearchParameters sp,
org.alfresco.service.cmr.search.IntervalParameters facetIntervals)
Sets the Interval Parameters object on search parameters
It does some valiation then takes any "SETS" at the top level and sets them at every field level.
|
void |
fromFacetQuery(org.alfresco.service.cmr.search.SearchParameters sp,
List<FacetQuery> facetQueries)
SearchParameters from List
|
void |
fromFilterQuery(org.alfresco.service.cmr.search.SearchParameters sp,
List<FilterQuery> filterQueries)
SearchParameters from List
|
void |
fromHighlight(org.alfresco.service.cmr.search.SearchParameters sp,
org.alfresco.service.cmr.search.GeneralHighlightParameters highlight)
Sets the hightlight object on search parameters
|
void |
fromLimits(org.alfresco.service.cmr.search.SearchParameters sp,
Limits limits)
SearchParameters from the Limits object
|
void |
fromLocalization(org.alfresco.service.cmr.search.SearchParameters sp,
Localization localization)
Validates and sets the timezone
|
void |
fromPaging(org.alfresco.service.cmr.search.SearchParameters sp,
Paging paging)
SearchParameters from the Paging object
|
void |
fromPivot(org.alfresco.service.cmr.search.SearchParameters sp,
List<org.alfresco.service.cmr.search.StatsRequestParameters> stats,
FacetFields facetFields,
List<org.alfresco.service.cmr.search.RangeParameters> ranges,
List<Pivot> multiplePivots,
SearchRequestContext searchRequestContext) |
void |
fromQuery(org.alfresco.service.cmr.search.SearchParameters sp,
Query q)
SearchParameters from the Query object
|
void |
fromRange(org.alfresco.service.cmr.search.SearchParameters sp,
List<org.alfresco.service.cmr.search.RangeParameters> ranges)
Sets the Range Parameters object on search parameters
|
void |
fromScope(org.alfresco.service.cmr.search.SearchParameters sp,
Scope scope,
SearchRequestContext searchRequestContext)
SearchParameters from Scope object
|
void |
fromSort(org.alfresco.service.cmr.search.SearchParameters sp,
List<SortDef> sort)
SearchParameters from List
|
void |
fromSpellCheck(org.alfresco.service.cmr.search.SearchParameters sp,
Spelling spelling)
SearchParameters from SpellCheck object
|
void |
fromStats(org.alfresco.service.cmr.search.SearchParameters sp,
List<org.alfresco.service.cmr.search.StatsRequestParameters> stats) |
void |
fromTemplate(org.alfresco.service.cmr.search.SearchParameters sp,
List<Template> templates)
SearchParameters from List
|
void |
setDefaults(org.alfresco.service.cmr.search.SearchParameters sp)
Sets the API defaults
|
void |
setStoreMapper(StoreMapper storeMapper) |
org.alfresco.service.cmr.search.SearchParameters |
toSearchParameters(Params params,
SearchQuery searchQuery,
SearchRequestContext searchRequestContext)
Turn the SearchQuery params serialized by Jackson into the Java SearchParameters object
|
void |
validateInclude(List<String> includes)
Validates the List
|
protected void |
validateSets(Set<org.alfresco.service.cmr.search.IntervalSet> intervalSets,
String prefix) |
public static final String CMIS
public static final String LUCENE
public static final String AFTS
public org.alfresco.service.cmr.search.SearchParameters toSearchParameters(Params params, SearchQuery searchQuery, SearchRequestContext searchRequestContext)
params
- public void setDefaults(org.alfresco.service.cmr.search.SearchParameters sp)
sp
- public void fromQuery(org.alfresco.service.cmr.search.SearchParameters sp, Query q)
sp
- SearchParametersq
- Querypublic void fromPaging(org.alfresco.service.cmr.search.SearchParameters sp, Paging paging)
sp
- SearchParameterspaging
- Pagingpublic void fromSort(org.alfresco.service.cmr.search.SearchParameters sp, List<SortDef> sort)
sp
- SearchParameterssort
- Listpublic void fromTemplate(org.alfresco.service.cmr.search.SearchParameters sp, List<Template> templates)
sp
- SearchParameterstemplates
- Listpublic void fromDefault(org.alfresco.service.cmr.search.SearchParameters sp, Default defaults)
sp
- SearchParametersdefaults
- Defaultpublic void validateInclude(List<String> includes)
includes
- Listpublic void fromFilterQuery(org.alfresco.service.cmr.search.SearchParameters sp, List<FilterQuery> filterQueries)
sp
- filterQueries
- public void fromFacetQuery(org.alfresco.service.cmr.search.SearchParameters sp, List<FacetQuery> facetQueries)
sp
- facetQueries
- public void fromFacetFields(org.alfresco.service.cmr.search.SearchParameters sp, FacetFields facetFields)
sp
- SearchParametersFacetFields
- facetFieldspublic void fromSpellCheck(org.alfresco.service.cmr.search.SearchParameters sp, Spelling spelling)
sp
- SearchParametersdefaults
- SpellCheckpublic void fromScope(org.alfresco.service.cmr.search.SearchParameters sp, Scope scope, SearchRequestContext searchRequestContext)
Scope
- scopesp
- SearchParameterssearchRequestContext
- public void fromFacetIntervals(org.alfresco.service.cmr.search.SearchParameters sp, org.alfresco.service.cmr.search.IntervalParameters facetIntervals)
sp
- SearchParametersfacetIntervals
- IntervalParameterspublic void fromRange(org.alfresco.service.cmr.search.SearchParameters sp, List<org.alfresco.service.cmr.search.RangeParameters> ranges)
sp
- SearchParametersrangeParams
- RangeParameterspublic void fromPivot(org.alfresco.service.cmr.search.SearchParameters sp, List<org.alfresco.service.cmr.search.StatsRequestParameters> stats, FacetFields facetFields, List<org.alfresco.service.cmr.search.RangeParameters> ranges, List<Pivot> multiplePivots, SearchRequestContext searchRequestContext)
protected void buildPivotKeys(List<String> pivotKeys, Pivot aPivot, List<org.alfresco.service.cmr.search.StatsRequestParameters> stats, FacetFields facetFields, List<org.alfresco.service.cmr.search.RangeParameters> ranges, SearchRequestContext searchRequestContext)
public void fromStats(org.alfresco.service.cmr.search.SearchParameters sp, List<org.alfresco.service.cmr.search.StatsRequestParameters> stats)
protected void validateSets(Set<org.alfresco.service.cmr.search.IntervalSet> intervalSets, String prefix)
public void fromHighlight(org.alfresco.service.cmr.search.SearchParameters sp, org.alfresco.service.cmr.search.GeneralHighlightParameters highlight)
sp
- SearchParametershighlight
- GeneralHighlightParameterspublic void fromLocalization(org.alfresco.service.cmr.search.SearchParameters sp, Localization localization)
sp
- SearchParameterstimezoneId
- a valid java.time.ZoneIdpublic void fromLimits(org.alfresco.service.cmr.search.SearchParameters sp, Limits limits)
sp
- SearchParameterspaging
- Pagingpublic void setStoreMapper(StoreMapper storeMapper)
Copyright © 2005–2017 Alfresco Software. All rights reserved.