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 fromSearchModels or content type IDs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceContentValuesExtractorFactory.ContentValuesExtractorA ContentValuesExtractorclassContentValuesExtractorFactory.SearchModelContentValuesExtractorA ContentValuesExtractor backed by aSearchModel.classContentValuesExtractorFactory.SimpleContentValuesExtractorA simple ContentValuesExtractor on a list of content types.
-
Field Summary
Fields Modifier and Type Field Description protected ContentTypeExtensionPoint_cTypeEPThe content type extension point.protected ContentTypesHelper_cTypeHelperThe content type helper.protected ExternalizableDataProviderExtensionPoint_externalizableDataProviderEPTo determine the externalizable statusprotected ContentSearchHelper_searchHelperThe content type helper.protected SystemPropertyExtensionPoint_sysPropEPThe system property extension point.static StringROLEThe component role.
-
Constructor Summary
Constructors Constructor Description ContentValuesExtractorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentValuesExtractorFactory.SimpleContentValuesExtractorcreate(Collection<String> contentTypes)Create a simple ContentValuesExtractor from a list of content types.ContentValuesExtractorFactory.SimpleContentValuesExtractorcreate(Collection<String> contentTypes, List<String> fields)Create a simple ContentValuesExtractor from a list of content types.ContentValuesExtractorFactory.SearchModelContentValuesExtractorcreate(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 Detail
-
_cTypeEP
protected ContentTypeExtensionPoint _cTypeEP
The content type extension point.
-
_cTypeHelper
protected ContentTypesHelper _cTypeHelper
The content type helper.
-
_searchHelper
protected ContentSearchHelper _searchHelper
The content type helper.
-
_sysPropEP
protected SystemPropertyExtensionPoint _sysPropEP
The system property extension point.
-
_externalizableDataProviderEP
protected ExternalizableDataProviderExtensionPoint _externalizableDataProviderEP
To determine the externalizable status
-
-
Constructor Detail
-
ContentValuesExtractorFactory
public ContentValuesExtractorFactory()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- 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.
-
-