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
Modifier and TypeFieldDescriptionprotected AmetysObjectResolver
The Ametys object resolverprotected ThesaurusDAO
The thesaurus DAOFields 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) void
service
(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:
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
Gets a microthesaurus to JSON format- Parameters:
thesaurus
- The microthesaurus- Returns:
- The thesaurus' properties
-