Package org.ametys.cms.search.content
Class ContentValuesExtractorFactory
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.cms.search.content.ContentValuesExtractorFactory
- All Implemented Interfaces:
LogEnabled,Component,Serviceable
public class ContentValuesExtractorFactory
extends AbstractLogEnabled
implements Component, Serviceable
Component creating content values extractors from
SearchModels or content type IDs.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA ContentValuesExtractorclassA ContentValuesExtractor backed by aSearchModel.classA simple ContentValuesExtractor on a list of content types. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContentTypeExtensionPointThe content type extension point.protected ContentTypesHelperThe content type helper.protected ExternalizableDataProviderExtensionPointTo determine the externalizable statusprotected ContentSearchHelperThe content type helper.protected SystemPropertyExtensionPointThe system property extension point.static final StringThe component role. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(Collection<String> contentTypes) Create a simple ContentValuesExtractor from a list of content types.create(Collection<String> contentTypes, List<String> fields) Create a simple ContentValuesExtractor from a list of content types.create(SearchModel searchModel) Create a ContentValuesExtractor from a search model.voidservice(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
The component role. -
_cTypeEP
The content type extension point. -
_cTypeHelper
The content type helper. -
_searchHelper
The content type helper. -
_sysPropEP
The system property extension point. -
_externalizableDataProviderEP
To determine the externalizable status
-
-
Constructor Details
-
ContentValuesExtractorFactory
public ContentValuesExtractorFactory()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
create
public ContentValuesExtractorFactory.SearchModelContentValuesExtractor create(SearchModel searchModel) Create a ContentValuesExtractor from a search model.- Parameters:
searchModel- The reference search model.- Returns:
- a ContentValuesExtractor backed by the given search model.
-
create
public ContentValuesExtractorFactory.SimpleContentValuesExtractor create(Collection<String> contentTypes) Create a simple ContentValuesExtractor from a list of content types.- Parameters:
contentTypes- The content types to search on.- Returns:
- a ContentValuesExtractor referencing the given content types.
-
create
public ContentValuesExtractorFactory.SimpleContentValuesExtractor create(Collection<String> contentTypes, List<String> fields) Create a simple ContentValuesExtractor from a list of content types.- Parameters:
contentTypes- The content types to search on.fields- The fields to extract.- Returns:
- a ContentValuesExtractor referencing the given content types.
-