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, wait
allowSortOnMultipleJoin, getAdvancedCriterion, getFacetedCriterion
private 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)
SearchModel
getContentTypes
in interface SearchModel
contextualParameters
- the contextual parameters.public Set<String> getExcludedContentTypes(Map<String,Object> contextualParameters)
SearchModel
getExcludedContentTypes
in interface SearchModel
contextualParameters
- the contextual parameterspublic String getSearchUrl(Map<String,Object> contextualParameters)
SearchUIModel
getSearchUrl
in interface SearchUIModel
contextualParameters
- the contextual parameterspublic String getSearchUrlPlugin(Map<String,Object> contextualParameters)
SearchUIModel
getSearchUrlPlugin
in interface SearchUIModel
contextualParameters
- the contextual parameterspublic String getExportCSVUrl(Map<String,Object> contextualParameters)
SearchUIModel
getExportCSVUrl
in interface SearchUIModel
contextualParameters
- the contextual parameterspublic String getExportCSVUrlPlugin(Map<String,Object> contextualParameters)
SearchUIModel
getExportCSVUrlPlugin
in interface SearchUIModel
contextualParameters
- the contextual parameterspublic String getExportDOCUrl(Map<String,Object> contextualParameters)
SearchUIModel
getExportDOCUrl
in interface SearchUIModel
contextualParameters
- the contextual parameterspublic String getExportDOCUrlPlugin(Map<String,Object> contextualParameters)
SearchUIModel
getExportDOCUrlPlugin
in interface SearchUIModel
contextualParameters
- the contextual parameterspublic String getExportXMLUrl(Map<String,Object> contextualParameters)
SearchUIModel
getExportXMLUrl
in interface SearchUIModel
contextualParameters
- the contextual parameterspublic String getExportXMLUrlPlugin(Map<String,Object> contextualParameters)
SearchUIModel
getExportXMLUrlPlugin
in interface SearchUIModel
contextualParameters
- the contextual parameterspublic String getPrintUrl(Map<String,Object> contextualParameters)
SearchUIModel
getPrintUrl
in interface SearchUIModel
contextualParameters
- the contextual parameterspublic String getPrintUrlPlugin(Map<String,Object> contextualParameters)
SearchUIModel
getPrintUrlPlugin
in interface SearchUIModel
contextualParameters
- the contextual parameterspublic String getSummaryView()
SearchUIModel
getSummaryView
in interface SearchUIModel
public Map<String,SearchUICriterion> getCriteria(Map<String,Object> contextualParameters)
SearchModel
getCriteria
in interface SearchModel
getCriteria
in interface SearchUIModel
contextualParameters
- the contextual parameterspublic SearchUICriterion getCriterion(String id, Map<String,Object> contextualParameters)
SearchModel
getCriterion
in interface SearchModel
getCriterion
in interface SearchUIModel
id
- The search criterion idcontextualParameters
- the contextual parametersnull
if not foundpublic Map<String,SearchUICriterion> getFacetedCriteria(Map<String,Object> contextualParameters)
SearchModel
getFacetedCriteria
in interface SearchModel
getFacetedCriteria
in interface SearchUIModel
contextualParameters
- the contextual parameterspublic Map<String,SearchUICriterion> getAdvancedCriteria(Map<String,Object> contextualParameters)
SearchUIModel
getAdvancedCriteria
in interface SearchUIModel
contextualParameters
- the contextual parameterspublic Map<String,SearchUIColumn> getResultFields(Map<String,Object> contextualParameters)
SearchModel
getResultFields
in interface SearchModel
getResultFields
in interface SearchUIModel
contextualParameters
- the contextual parameters. Can be null.public SearchUIColumn getResultField(String id, Map<String,Object> contextualParameters)
SearchModel
getResultField
in interface SearchModel
getResultField
in interface SearchUIModel
id
- The column idcontextualParameters
- the contextual parameterspublic int getPageSize(Map<String,Object> contextualParameters)
SearchUIModel
getPageSize
in interface SearchUIModel
contextualParameters
- the contextual parameters.public String getWorkspace(Map<String,Object> contextualParameters)
SearchUIModel
getWorkspace
in interface SearchUIModel
contextualParameters
- the contextual parameters.protected SearchUICriterion wrap(SearchUICriterion criteria)
criteria
- the search criteria to wrap.