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 fromSearchModel
s or content type IDs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ContentValuesExtractorFactory.SearchModelContentValuesExtractor
A ContentValuesExtractor backed by aSearchModel
.class
ContentValuesExtractorFactory.SimpleContentValuesExtractor
A simple ContentValuesExtractor on a list of content types.
-
Field Summary
Fields Modifier and Type Field Description protected ContentTypeExtensionPoint
_cTypeEP
The content type extension point.protected ContentTypesHelper
_cTypeHelper
The content type helper.protected ContentSearchHelper
_searchHelper
The content type helper.protected SystemPropertyExtensionPoint
_sysPropEP
The system property extension point.static String
ROLE
The component role.
-
Constructor Summary
Constructors Constructor Description ContentValuesExtractorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentValuesExtractorFactory.SimpleContentValuesExtractor
create(Collection<String> contentTypes)
Create a simple ContentValuesExtractor from a list of content types.ContentValuesExtractorFactory.SimpleContentValuesExtractor
create(Collection<String> contentTypes, List<String> fields)
Create a simple ContentValuesExtractor from a list of content types.ContentValuesExtractorFactory.SearchModelContentValuesExtractor
create(SearchModel searchModel)
Create a ContentValuesExtractor from a search model.void
service(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.
-
-
Constructor Detail
-
ContentValuesExtractorFactory
public ContentValuesExtractorFactory()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in 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.
-
-