public abstract class AbstractContentBasedSearchable extends AbstractParameterAdderSearchable implements Initializable, Contextualizable, Disposable
Searchable
based on Content
sModifier and Type | Class and Description |
---|---|
private static class |
AbstractContentBasedSearchable.ContentTypeComparator |
private static class |
AbstractContentBasedSearchable.CriterionDefinitionAndSourceContentType |
_manager, _pluginName
Constructor and Description |
---|
AbstractContentBasedSearchable() |
additionalServiceParameters, setPluginInfo
getLogger, setLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
additionalServiceParameters, joinQuery
private static final List<String> __EXCLUDED_SYSTEM_PROPERTIES
private static final List<String> __EXCLUDED_INDEXING_FIELD
protected I18nizableText _label
protected int _criteriaPosition
protected Returnable _pageReturnable
protected Returnable _associatedContentReturnable
private SystemPropertyExtensionPoint _systemPropertyEP
private ContentTypeExtensionPoint _cTypeEP
private AmetysObjectResolver _ametysObjectResolver
private TagProviderExtensionPoint _tagProviderEP
private JSONUtils _jsonUtils
private List<ContentSearchCriterionDefinition> _systemPropertySearchCriterionDefs
private Map<String,Collection<AbstractContentBasedSearchable.CriterionDefinitionAndSourceContentType>> _indexingFieldSearchCriterionDefsCache
private ContentSearchCriterionDefinition _titleIndexingFieldSearchCriterionDefCache
private Set<ThreadSafeComponentManager<?>> _managers
public AbstractContentBasedSearchable()
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
configure
in class AbstractParameterAdder
ConfigurationException
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class AbstractParameterAdder
ServiceException
protected abstract String associatedContentReturnableRole()
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public void initialize() throws Exception
initialize
in interface Initializable
Exception
private ContentSearchCriterionDefinition _getSystemPropSearchCriterionDef(String propId)
private ContentSearchCriterionDefinition _criterionDefinition(String id, SearchUICriterion criterion)
protected String getSystemPropertyCriterionDefinitionPrefix()
protected abstract String getCriterionDefinitionPrefix()
private Configuration _getSystemCriteriaConfiguration(String propertyId)
public void dispose()
dispose
in interface Disposable
public I18nizableText getLabel()
Searchable
getLabel
in interface Searchable
public int criteriaPosition()
Searchable
Searchable
among criteria provided by other Searchable
s.
Searchable
are always packed together, this integer just affects the relative position compared to other Searchable
criteria.
criteriaPosition
in interface Searchable
Searchable
public Collection<SearchCriterionDefinition> getCriteria(AdditionalParameterValueMap additionalParameterValues)
Searchable
getCriteria
in interface Searchable
additionalParameterValues
- The additional parameter valuesprotected abstract Collection<String> getContentTypes(AdditionalParameterValueMap additionalParameterValues)
additionalParameterValues
- The additional parameter valuesprivate Collection<AbstractContentBasedSearchable.CriterionDefinitionAndSourceContentType> _getIndexingFieldSearchCriterionDefs(Collection<String> contentTypeIds)
private Collection<AbstractContentBasedSearchable.CriterionDefinitionAndSourceContentType> _getIndexingFieldSearchCriterionDefs(String contentTypeId)
private Collection<IndexingField> _getIndexingFields(ContentType contentType)
private Collection<AbstractContentBasedSearchable.CriterionDefinitionAndSourceContentType> _createIndexingFieldSearchCriterionDefs(Collection<IndexingField> indexingModelFields, ContentType requestedContentType)
private ContentSearchCriterionDefinition _criterionDefinition(String id, SearchUICriterion criterion, ContentType fromContentType)
private Collection<ContentSearchCriterionDefinition> _finalIndexingFieldCriterionDefs(Collection<AbstractContentBasedSearchable.CriterionDefinitionAndSourceContentType> indexingFieldCriterionDefs)
private ContentSearchCriterionDefinition _getTitleIndexingFieldSearchCriterionDef()
private ContentSearchCriterionDefinition _createTitleIndexingFieldSearchCriterionDef()
protected String getIndexingFieldCriterionDefinitionPrefix()
private Configuration _getIndexingFieldCriteriaConfiguration(String path, Optional<String> contentTypeId)
public Collection<Returnable> relationsWith()
Searchable
Returnable
s.
Returnable.relationsWith()
declares the relation, it is useless to declare it twice)relationsWith
in interface Searchable
Returnable
s