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
SearchModel
s or content type IDs.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
A ContentValuesExtractorclass
A ContentValuesExtractor backed by aSearchModel
.class
A simple ContentValuesExtractor on a list of content types. -
Field Summary
Modifier and TypeFieldDescriptionprotected ContentTypeExtensionPoint
The content type extension point.protected ContentTypesHelper
The content type helper.protected ExternalizableDataProviderExtensionPoint
To determine the externalizable statusprotected ContentSearchHelper
The content type helper.protected SystemPropertyExtensionPoint
The system property extension point.static final String
The component role. -
Constructor Summary
-
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.void
service
(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:
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.
-