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
Generates thesaurii
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AmetysObjectResolverThe Ametys object resolverprotected ThesaurusDAOThe thesaurus DAOFields inherited from class org.apache.cocoon.acting.ServiceableAction
managerFields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionact(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) voidservice(ServiceManager serviceManager) thesaurusToJSON(Thesaurus thesaurus) Gets a microthesaurus to JSON formatMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
_resolver
The Ametys object resolver -
_thesaurusDAO
The thesaurus DAO
-
-
Constructor Details
-
GetThesaurusAction
public GetThesaurusAction()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classServiceableAction- Throws:
ServiceException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception - Throws:
Exception
-
thesaurusToJSON
Gets a microthesaurus to JSON format- Parameters:
thesaurus- The microthesaurus- Returns:
- The thesaurus' properties
-