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
This action is used by the edition.select-page widget for searching pages from a query string
-
Field Summary
Modifier and TypeFieldDescriptionprotected QueryBuilder
The query builderprotected AmetysObjectResolver
The Ametys object resolverprotected SearcherFactory
The searcher factoryprotected SiteManager
The site managerFields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionact
(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) Convert page to JSON objectvoid
service
(ServiceManager smanager) Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
_resolver
The Ametys object resolver -
_searcherFactory
The searcher factory -
_queryBuilder
The query builder -
_siteManager
The site manager
-
-
Constructor Details
-
SearchPagesAction
public SearchPagesAction()
-
-
Method Details
-
service
- 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
-
page2json
Convert page to JSON object- Parameters:
page
- The page- Returns:
- The page as JSON object
-