public class DynamicWrappedSearchUIModel extends Object implements SearchUIModel
| Modifier and Type | Class and Description |
|---|---|
protected class |
DynamicWrappedSearchUIModel.WrappedSearchUICriterion
Search criteria wrapper.
|
| Modifier and Type | Field and Description |
|---|---|
private ThreadSafeComponentManager<Enumerator> |
_enumeratorManager |
private Logger |
_logger |
private Set<String> |
_restrictedContentTypes |
private Set<String> |
_restrictedMixins |
private SearchUIModel |
_wrappedModel |
| Constructor and Description |
|---|
DynamicWrappedSearchUIModel(SearchUIModel model,
Collection<String> restrictedContentTypes,
ContentTypeExtensionPoint cTypeEP,
Logger logger,
Context context,
ServiceManager manager)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
private void |
_addContentTypeAndMixinEnumeratorComponent() |
private void |
_addContentTypeEnumeratorComponent() |
private void |
_addMixinEnumeratorComponent() |
Map<String,SearchUICriterion> |
getAdvancedCriteria(Map<String,Object> contextualParameters)
Get the list of search criteria in advanced mode
|
Set<String> |
getContentTypes(Map<String,Object> contextualParameters)
Get the list of content types.
|
Map<String,SearchUICriterion> |
getCriteria(Map<String,Object> contextualParameters)
Get the list of search criteria in simple mode
|
SearchUICriterion |
getCriterion(String id,
Map<String,Object> contextualParameters)
Get a simple search criterion by its id
|
Set<String> |
getExcludedContentTypes(Map<String,Object> contextualParameters)
Get the list of excluded content types.
|
String |
getExportCSVUrl(Map<String,Object> contextualParameters)
Get the URL for CVS export of results
|
String |
getExportCSVUrlPlugin(Map<String,Object> contextualParameters)
Get the plugin name for CVS export of results
|
String |
getExportDOCUrl(Map<String,Object> contextualParameters)
Get the URL for DOC export of results
|
String |
getExportDOCUrlPlugin(Map<String,Object> contextualParameters)
Get the plugin name for DOC export of results
|
String |
getExportXMLUrl(Map<String,Object> contextualParameters)
Get the URL for XML export of results
|
String |
getExportXMLUrlPlugin(Map<String,Object> contextualParameters)
Get the plugin name for XML export of results
|
Map<String,SearchUICriterion> |
getFacetedCriteria(Map<String,Object> contextualParameters)
Get the list of faceted search criteria.
|
int |
getPageSize(Map<String,Object> contextualParameters)
Get the page size.
|
String |
getPrintUrl(Map<String,Object> contextualParameters)
Get the URL for print results
|
String |
getPrintUrlPlugin(Map<String,Object> contextualParameters)
Get the plugin name for print results
|
SearchUIColumn |
getResultField(String id,
Map<String,Object> contextualParameters)
Get the column by its identifier
|
Map<String,SearchUIColumn> |
getResultFields(Map<String,Object> contextualParameters)
Get the column for results
|
String |
getSearchUrl(Map<String,Object> contextualParameters)
Get the URL for search
|
String |
getSearchUrlPlugin(Map<String,Object> contextualParameters)
Get the plugin name for search
|
String |
getSummaryView()
Get the name of the view to use for summary of the content.
|
String |
getWorkspace(Map<String,Object> contextualParameters)
Get the specific workspace to use.
|
protected SearchUICriterion |
wrap(SearchUICriterion criteria)
Wrap an existing search criteria.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitallowSortOnMultipleJoin, getAdvancedCriterion, getFacetedCriterionprivate ThreadSafeComponentManager<Enumerator> _enumeratorManager
private SearchUIModel _wrappedModel
private Set<String> _restrictedContentTypes
private Set<String> _restrictedMixins
public DynamicWrappedSearchUIModel(SearchUIModel model, Collection<String> restrictedContentTypes, ContentTypeExtensionPoint cTypeEP, Logger logger, Context context, ServiceManager manager)
model - The wrapped search modelrestrictedContentTypes - The restricted content typescTypeEP - The content type extension pointlogger - The loggercontext - The contextmanager - The service managerprivate void _addContentTypeEnumeratorComponent()
private void _addContentTypeAndMixinEnumeratorComponent()
private void _addMixinEnumeratorComponent()
public Set<String> getContentTypes(Map<String,Object> contextualParameters)
SearchModelgetContentTypes in interface SearchModelcontextualParameters - the contextual parameters.public Set<String> getExcludedContentTypes(Map<String,Object> contextualParameters)
SearchModelgetExcludedContentTypes in interface SearchModelcontextualParameters - the contextual parameterspublic String getSearchUrl(Map<String,Object> contextualParameters)
SearchUIModelgetSearchUrl in interface SearchUIModelcontextualParameters - the contextual parameterspublic String getSearchUrlPlugin(Map<String,Object> contextualParameters)
SearchUIModelgetSearchUrlPlugin in interface SearchUIModelcontextualParameters - the contextual parameterspublic String getExportCSVUrl(Map<String,Object> contextualParameters)
SearchUIModelgetExportCSVUrl in interface SearchUIModelcontextualParameters - the contextual parameterspublic String getExportCSVUrlPlugin(Map<String,Object> contextualParameters)
SearchUIModelgetExportCSVUrlPlugin in interface SearchUIModelcontextualParameters - the contextual parameterspublic String getExportDOCUrl(Map<String,Object> contextualParameters)
SearchUIModelgetExportDOCUrl in interface SearchUIModelcontextualParameters - the contextual parameterspublic String getExportDOCUrlPlugin(Map<String,Object> contextualParameters)
SearchUIModelgetExportDOCUrlPlugin in interface SearchUIModelcontextualParameters - the contextual parameterspublic String getExportXMLUrl(Map<String,Object> contextualParameters)
SearchUIModelgetExportXMLUrl in interface SearchUIModelcontextualParameters - the contextual parameterspublic String getExportXMLUrlPlugin(Map<String,Object> contextualParameters)
SearchUIModelgetExportXMLUrlPlugin in interface SearchUIModelcontextualParameters - the contextual parameterspublic String getPrintUrl(Map<String,Object> contextualParameters)
SearchUIModelgetPrintUrl in interface SearchUIModelcontextualParameters - the contextual parameterspublic String getPrintUrlPlugin(Map<String,Object> contextualParameters)
SearchUIModelgetPrintUrlPlugin in interface SearchUIModelcontextualParameters - the contextual parameterspublic String getSummaryView()
SearchUIModelgetSummaryView in interface SearchUIModelpublic Map<String,SearchUICriterion> getCriteria(Map<String,Object> contextualParameters)
SearchModelgetCriteria in interface SearchModelgetCriteria in interface SearchUIModelcontextualParameters - the contextual parameterspublic SearchUICriterion getCriterion(String id, Map<String,Object> contextualParameters)
SearchModelgetCriterion in interface SearchModelgetCriterion in interface SearchUIModelid - The search criterion idcontextualParameters - the contextual parametersnull if not foundpublic Map<String,SearchUICriterion> getFacetedCriteria(Map<String,Object> contextualParameters)
SearchModelgetFacetedCriteria in interface SearchModelgetFacetedCriteria in interface SearchUIModelcontextualParameters - the contextual parameterspublic Map<String,SearchUICriterion> getAdvancedCriteria(Map<String,Object> contextualParameters)
SearchUIModelgetAdvancedCriteria in interface SearchUIModelcontextualParameters - the contextual parameterspublic Map<String,SearchUIColumn> getResultFields(Map<String,Object> contextualParameters)
SearchModelgetResultFields in interface SearchModelgetResultFields in interface SearchUIModelcontextualParameters - the contextual parameters. Can be null.public SearchUIColumn getResultField(String id, Map<String,Object> contextualParameters)
SearchModelgetResultField in interface SearchModelgetResultField in interface SearchUIModelid - The column idcontextualParameters - the contextual parameterspublic int getPageSize(Map<String,Object> contextualParameters)
SearchUIModelgetPageSize in interface SearchUIModelcontextualParameters - the contextual parameters.public String getWorkspace(Map<String,Object> contextualParameters)
SearchUIModelgetWorkspace in interface SearchUIModelcontextualParameters - the contextual parameters.protected SearchUICriterion wrap(SearchUICriterion criteria)
criteria - the search criteria to wrap.