Package org.ametys.plugins.thesaurus
Class GetThesaurusAction
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.acting.AbstractAction
-
- org.apache.cocoon.acting.ServiceableAction
-
- org.ametys.plugins.thesaurus.GetThesaurusAction
-
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,Action
public class GetThesaurusAction extends ServiceableAction
Generates thesaurii
-
-
Field Summary
Fields Modifier and Type Field Description protected AmetysObjectResolver
_resolver
The Ametys object resolverprotected ThesaurusDAO
_thesaurusDAO
The thesaurus DAO-
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 GetThesaurusAction()
-
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)
void
service(ServiceManager serviceManager)
protected Map<String,Object>
thesaurusToJSON(Thesaurus thesaurus)
Gets a microthesaurus to JSON format-
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
-
_thesaurusDAO
protected ThesaurusDAO _thesaurusDAO
The thesaurus DAO
-
-
Constructor Detail
-
GetThesaurusAction
public GetThesaurusAction()
-
-
Method Detail
-
service
public void service(ServiceManager serviceManager) 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
-
thesaurusToJSON
protected Map<String,Object> thesaurusToJSON(Thesaurus thesaurus)
Gets a microthesaurus to JSON format- Parameters:
thesaurus
- The microthesaurus- Returns:
- The thesaurus' properties
-
-