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 Views.- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassAn abstract implementation of ContentValuesExtractorstatic interfaceA ContentValuesExtractorclassA ContentValuesExtractor backed by aSearchModel.classA simple ContentValuesExtractor on a list of content types. - 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ExternalizableDataProviderExtensionPointTo determine the externalizable statusprotected ContentSearchHelperThe content search helper.static final StringThe component role. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptioncreate(SearchModel searchModel) Create a ContentValuesExtractor from a search model.Create a simpleContentValuesExtractorFactory.ContentValuesExtractorfrom a viewvoidservice(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger 
- 
Field Details
- 
ROLE
The component role. - 
_searchHelper
The content search helper. - 
_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
Create a simpleContentValuesExtractorFactory.ContentValuesExtractorfrom a view- Parameters:
 view- The view.- Returns:
 - The created 
ContentValuesExtractorFactory.ContentValuesExtractor 
 
 -