public class ContentSearcherFactory extends AbstractLogEnabled implements Component, Serviceable
SearchModel
s or content type IDs.Modifier and Type | Class and Description |
---|---|
class |
ContentSearcherFactory.SearchModelContentSearcher
A ContentSearcher backed by a
SearchModel . |
class |
ContentSearcherFactory.SimpleContentSearcher
A ContentSearcher on a list of content types.
|
Modifier and Type | Field and Description |
---|---|
protected ContentTypeExtensionPoint |
_cTypeEP
The content type extension point.
|
protected ContentTypesHelper |
_cTypeHelper
The content type helper.
|
protected QueryBuilder |
_queryBuilder
The query builder.
|
protected SearcherFactory |
_searcherFactory
The searcher factory.
|
protected ContentSearchHelper |
_searchHelper
The search helper.
|
protected SystemPropertyExtensionPoint |
_sysPropEP
The system property extension point.
|
static String |
ROLE
The component role.
|
Constructor and Description |
---|
ContentSearcherFactory() |
Modifier and Type | Method and Description |
---|---|
ContentSearcherFactory.SimpleContentSearcher |
create(Collection<String> contentTypes)
Create a simple ContentSearcher from a list of content types.
|
ContentSearcherFactory.SearchModelContentSearcher |
create(SearchModel searchModel)
Create a ContentSearcher from a search model.
|
ContentSearcherFactory.SimpleContentSearcher |
create(String... contentTypes)
Create a simple ContentSearcher from a list of content types.
|
void |
service(ServiceManager manager) |
getLogger, setLogger
protected SearcherFactory _searcherFactory
protected QueryBuilder _queryBuilder
protected ContentTypeExtensionPoint _cTypeEP
protected ContentTypesHelper _cTypeHelper
protected SystemPropertyExtensionPoint _sysPropEP
protected ContentSearchHelper _searchHelper
public ContentSearcherFactory()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public ContentSearcherFactory.SearchModelContentSearcher create(SearchModel searchModel)
searchModel
- The reference search model.public ContentSearcherFactory.SimpleContentSearcher create(String... contentTypes)
contentTypes
- The content types to search on.public ContentSearcherFactory.SimpleContentSearcher create(Collection<String> contentTypes)
contentTypes
- The content types to search on.