Class ContentSearchable
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.web.frontoffice.search.metamodel.impl.AbstractParameterAdder
org.ametys.web.frontoffice.search.metamodel.impl.AbstractParameterAdderSearchable
org.ametys.web.frontoffice.search.metamodel.impl.AbstractContentBasedSearchable
org.ametys.web.frontoffice.search.metamodel.impl.ContentSearchable
- All Implemented Interfaces:
Cacheable,LogEnabled,PluginAware,Searchable,Disposable,Initializable,Configurable,Contextualizable,Serviceable
Searchable for Contents-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.core.util.Cacheable
Cacheable.SingleCacheConfiguration -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe additional parameter for content typesstatic final StringAvalon RoleFields inherited from class org.ametys.web.frontoffice.search.metamodel.impl.AbstractContentBasedSearchable
_associatedContentReturnable, _contentHelper, _criteriaPosition, _cTypeEP, _id, _label, _pageReturnable, _searchComponentHelperFields inherited from class org.ametys.web.frontoffice.search.metamodel.impl.AbstractParameterAdder
_manager, _pluginName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringThe Avalon Role for the associated Content Returnableprotected Collection<String>getContentTypes(AdditionalParameterValueMap additionalParameterValues) Gets the content types which will be used to retrieve the criteria relative to the Indexing Modelprotected StringGets the prefix for criterion definitionsjoinQuery(Query queryOnCriterion, SearchCriterionDefinition criterion, Collection<Returnable> returnables, AdditionalParameterValueMap additionalParameters) Returns the query which joins the given one (on a criterion) with the given result typesMethods inherited from class org.ametys.web.frontoffice.search.metamodel.impl.AbstractContentBasedSearchable
_setAssociatedContentReturnable, buildQuery, configure, contextualize, criteriaPosition, dispose, getCacheManager, getCriteria, getIndexingFieldCriterionDefinitionPrefix, getLabel, getManagedCaches, getSystemPropertyCriterionDefinitionPrefix, hasComputableSize, initialize, relationsWith, serviceMethods inherited from class org.ametys.web.frontoffice.search.metamodel.impl.AbstractParameterAdder
additionalServiceParameters, setPluginInfoMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.core.util.Cacheable
createCaches, getCache, isCachingEnabled, removeCachesMethods inherited from interface org.ametys.web.frontoffice.search.metamodel.Searchable
additionalServiceParameters
-
Field Details
-
ROLE
Avalon Role -
PARAMETER_CONTENT_TYPES
The additional parameter for content types- See Also:
-
-
Constructor Details
-
ContentSearchable
public ContentSearchable()
-
-
Method Details
-
associatedContentReturnableRole
Description copied from class:AbstractContentBasedSearchableThe Avalon Role for the associated Content Returnable- Specified by:
associatedContentReturnableRolein classAbstractContentBasedSearchable- Returns:
- The Avalon Role for the associated Content Returnable
-
getCriterionDefinitionPrefix
Description copied from class:AbstractContentBasedSearchableGets the prefix for criterion definitions- Specified by:
getCriterionDefinitionPrefixin classAbstractContentBasedSearchable- Returns:
- the prefix for criterion definitions
-
getContentTypes
Description copied from class:AbstractContentBasedSearchableGets the content types which will be used to retrieve the criteria relative to the Indexing Model- Specified by:
getContentTypesin classAbstractContentBasedSearchable- Parameters:
additionalParameterValues- The additional parameter values- Returns:
- the content types which will be used to retrieve the criteria relative to the Indexing Model
-
joinQuery
public Optional<Query> joinQuery(Query queryOnCriterion, SearchCriterionDefinition criterion, Collection<Returnable> returnables, AdditionalParameterValueMap additionalParameters) Description copied from interface:SearchableReturns the query which joins the given one (on a criterion) with the given result types- Parameters:
queryOnCriterion- The query on the criterion to join fromcriterion- the criterionreturnables- The returnables to join toadditionalParameters- The additional parameters- Returns:
- the joined query
-