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 View
s.-
Nested Class Summary
Modifier and TypeClassDescriptionclass
An abstract implementation of ContentValuesExtractorstatic interface
A ContentValuesExtractorclass
A ContentValuesExtractor backed by aSearchModel
.class
A simple ContentValuesExtractor on a list of content types. -
Field Summary
Modifier and TypeFieldDescriptionprotected ExternalizableDataProviderExtensionPoint
To determine the externalizable statusprotected ContentSearchHelper
The content search helper.static final String
The component role. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(SearchModel searchModel) Create a ContentValuesExtractor from a search model.Create a simpleContentValuesExtractorFactory.ContentValuesExtractor
from a viewvoid
service
(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:
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
Create a simpleContentValuesExtractorFactory.ContentValuesExtractor
from a view- Parameters:
view
- The view.- Returns:
- The created
ContentValuesExtractorFactory.ContentValuesExtractor
-