Package org.ametys.plugins.thesaurus
Class GetMicrothesaurusAction
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.acting.AbstractAction
org.apache.cocoon.acting.ServiceableAction
org.ametys.plugins.thesaurus.GetMicrothesaurusAction
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,Action
Generates microthesaurii of a thesaurus
-
Field Summary
Modifier and TypeFieldDescriptionprotected ContentTypeExtensionPoint
The extension point for content typesprotected 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) microthesaurusToJSON
(String microThesaurus) Gets a microthesaurus to JSON formatvoid
service
(ServiceManager serviceManager) Methods 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 -
_contentTypeEP
The extension point for content types
-
-
Constructor Details
-
GetMicrothesaurusAction
public GetMicrothesaurusAction()
-
-
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
-
microthesaurusToJSON
Gets a microthesaurus to JSON format- Parameters:
microThesaurus
- The microthesaurus- Returns:
- The microthesaurus' properties
-