Class SearchPagesAction
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.acting.AbstractAction
-
- org.apache.cocoon.acting.ServiceableAction
-
- org.ametys.web.repository.page.actions.SearchPagesAction
-
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,Action
public class SearchPagesAction extends ServiceableAction
This action is used by the edition.select-page widget for searching pages from a query string
-
-
Field Summary
Fields Modifier and Type Field Description protected QueryBuilder
_queryBuilder
The query builderprotected AmetysObjectResolver
_resolver
The Ametys object resolverprotected SearcherFactory
_searcherFactory
The searcher factoryprotected SiteManager
_siteManager
The site manager-
Fields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
-
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
-
Constructor Summary
Constructors Constructor Description SearchPagesAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map
act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters)
protected Map<String,Object>
page2json(Page page)
Convert page to JSON objectvoid
service(ServiceManager smanager)
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
_resolver
protected AmetysObjectResolver _resolver
The Ametys object resolver
-
_searcherFactory
protected SearcherFactory _searcherFactory
The searcher factory
-
_queryBuilder
protected QueryBuilder _queryBuilder
The query builder
-
_siteManager
protected SiteManager _siteManager
The site manager
-
-
Constructor Detail
-
SearchPagesAction
public SearchPagesAction()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableAction
- Throws:
ServiceException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
- Throws:
Exception
-
-