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
FieldsModifier and TypeFieldDescriptionprotected ContentTypeExtensionPointThe extension point for content typesprotected 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) microthesaurusToJSON(String microThesaurus) Gets a microthesaurus to JSON formatvoidservice(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:
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
-
microthesaurusToJSON
Gets a microthesaurus to JSON format- Parameters:
microThesaurus- The microthesaurus- Returns:
- The microthesaurus' properties
-