public class SimpleContentSearchUIModel extends AbstractSearchUIModel implements Configurable
SearchUIModel for simple contents.
The search tool model automatically declares simple first level metadatas as criteria and columns.| Modifier and Type | Field and Description |
|---|---|
protected ThreadSafeComponentManager<SearchUIColumn> |
_searchColumnManager
ComponentManager for
SearchUIColumns. |
protected List<String> |
_searchColumnRoles
The search column roles.
|
protected ThreadSafeComponentManager<SearchUICriterion> |
_searchCriteriaManager
ComponentManager for
SearchUICriterions. |
protected List<String> |
_searchCriteriaRoles
The search criteria roles.
|
_advancedSearchCriteria, _columns, _context, _cTypeEP, _cTypes, _excludedCTypes, _facetedCriteria, _logger, _manager, _searchCriteria, _searchModelHelper| Constructor and Description |
|---|
SimpleContentSearchUIModel() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addColumnComponents(ContentType cType)
Add column components to the manager.
|
protected void |
addCriteriaComponents(ContentType cType)
Add criteria components to the manager.
|
protected void |
addMetadataColumnComponent(ContentType contentType,
String metadataName)
Add a metadata column component to the manager.
|
protected void |
addMetadataCriteriaComponent(ContentType contentType,
String metadataName,
Query.Operator operator)
Add a metadata criteria component to the manager.
|
protected void |
addSystemColumnComponent(ContentType contentType,
String property)
Add a system column component to the manager.
|
protected void |
addSystemCriteriaComponent(ContentType contentType,
String property)
Add a system criteria component to the manager.
|
void |
configure(Configuration configuration) |
Map<String,SearchUICriterion> |
getAdvancedCriteria(Map<String,Object> contextualParameters)
Get the list of search criteria in advanced mode
|
protected List<SearchUIColumn> |
getColumns(ContentType cType)
Lookup all the columns.
|
Map<String,SearchUICriterion> |
getCriteria(Map<String,Object> contextualParameters)
Get the list of search criteria in simple mode
|
Set<String> |
getExcludedContentTypes(Map<String,Object> contextualParameters)
Get the list of excluded content types.
|
Map<String,SearchUICriterion> |
getFacetedCriteria(Map<String,Object> contextualParameters)
Get the list of faceted search criteria.
|
Map<String,SearchUIColumn> |
getResultFields(Map<String,Object> contextualParameters)
Get the column for results
|
protected List<SearchUICriterion> |
getSearchUICriteria(ContentType cType)
Lookup all the criteria.
|
addContentTypesConfiguration, contextualize, getContentTypes, getCustomCriteriaConfiguration, getExportCSVUrl, getExportCSVUrlPlugin, getExportXMLUrl, getExportXMLUrlPlugin, getIndexingFieldCriteriaConfiguration, getIndexingFieldCriteriaConfiguration, getIndexingFieldCriteriaConfiguration, getLogger, getMetadataColumnConfiguration, getMetadataColumnConfiguration, getPageSize, getPrintUrl, getPrintUrlPlugin, getSearchUrl, getSearchUrlPlugin, getSystemColumnConfiguration, getSystemColumnConfiguration, getSystemCriteriaConfiguration, getSystemCriteriaConfiguration, getSystemCriteriaConfiguration, getWorkspace, service, setAdvancedCriteria, setContentTypes, setCriteria, setExcludedContentTypes, setFacetedCriteria, setLogger, setResultFieldsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAdvancedCriterion, getCriterion, getFacetedCriterion, getResultFieldprotected ThreadSafeComponentManager<SearchUICriterion> _searchCriteriaManager
SearchUICriterions.protected ThreadSafeComponentManager<SearchUIColumn> _searchColumnManager
SearchUIColumns.protected List<String> _searchCriteriaRoles
protected List<String> _searchColumnRoles
public SimpleContentSearchUIModel()
public void configure(Configuration configuration) throws ConfigurationException
configure in interface ConfigurableConfigurationExceptionpublic Set<String> getExcludedContentTypes(Map<String,Object> contextualParameters)
SearchModelgetExcludedContentTypes in interface SearchModelgetExcludedContentTypes in class AbstractSearchUIModelcontextualParameters - the contextual parameterspublic Map<String,SearchUICriterion> getCriteria(Map<String,Object> contextualParameters)
SearchModelgetCriteria in interface SearchModelgetCriteria in interface SearchUIModelgetCriteria in class AbstractSearchUIModelcontextualParameters - the contextual parameterspublic Map<String,SearchUICriterion> getFacetedCriteria(Map<String,Object> contextualParameters)
SearchModelgetFacetedCriteria in interface SearchModelgetFacetedCriteria in interface SearchUIModelgetFacetedCriteria in class AbstractSearchUIModelcontextualParameters - the contextual parameterspublic Map<String,SearchUICriterion> getAdvancedCriteria(Map<String,Object> contextualParameters)
SearchUIModelgetAdvancedCriteria in interface SearchUIModelgetAdvancedCriteria in class AbstractSearchUIModelcontextualParameters - the contextual parameterspublic Map<String,SearchUIColumn> getResultFields(Map<String,Object> contextualParameters)
SearchModelgetResultFields in interface SearchModelgetResultFields in interface SearchUIModelgetResultFields in class AbstractSearchUIModelcontextualParameters - the contextual parameters. Can be null.protected void addCriteriaComponents(ContentType cType) throws ConfigurationException, ComponentException
cType - the simple content type.ConfigurationException - if a configuration error occurs.ComponentException - if a component cannot be initialized.protected void addMetadataCriteriaComponent(ContentType contentType, String metadataName, Query.Operator operator) throws ConfigurationException, ComponentException
contentType - the simple content type.metadataName - the metadata name.operator - the criterion operator.ConfigurationException - if a configuration error occurs.ComponentException - if a component cannot be initialized.protected void addSystemCriteriaComponent(ContentType contentType, String property) throws ConfigurationException, ComponentException
contentType - the simple content type.property - the system property.ConfigurationException - if a configuration error occurs.ComponentException - if a component cannot be initialized.protected List<SearchUICriterion> getSearchUICriteria(ContentType cType) throws ComponentException
cType - the simple content type.ComponentException - if a component cannot be looked up.protected void addColumnComponents(ContentType cType) throws ConfigurationException, ComponentException
cType - the simple content type.ConfigurationException - if a configuration error occurs.ComponentException - if a component cannot be initialized.protected void addMetadataColumnComponent(ContentType contentType, String metadataName) throws ConfigurationException, ComponentException
contentType - the simple content type.metadataName - the metadata name.ConfigurationException - if a configuration error occurs.ComponentException - if a component cannot be initialized.protected void addSystemColumnComponent(ContentType contentType, String property) throws ConfigurationException, ComponentException
contentType - the simple content type.property - the system property.ConfigurationException - if a configuration error occurs.ComponentException - if a component cannot be initialized.protected List<SearchUIColumn> getColumns(ContentType cType) throws ComponentException
cType - the simple content type.ComponentException - if a component cannot be looked up.