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
public class GetMicrothesaurusAction extends ServiceableAction
Generates microthesaurii of a thesaurus
-
-
Field Summary
Fields Modifier and Type Field Description protected ContentTypeExtensionPoint
_contentTypeEP
The extension point for content typesprotected 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 GetMicrothesaurusAction()
-
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)
protected Map<String,Object>
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 Detail
-
_resolver
protected AmetysObjectResolver _resolver
The Ametys object resolver
-
_thesaurusDAO
protected ThesaurusDAO _thesaurusDAO
The thesaurus DAO
-
_contentTypeEP
protected ContentTypeExtensionPoint _contentTypeEP
The extension point for content types
-
-
Constructor Detail
-
GetMicrothesaurusAction
public GetMicrothesaurusAction()
-
-
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
-
microthesaurusToJSON
protected Map<String,Object> microthesaurusToJSON(String microThesaurus)
Gets a microthesaurus to JSON format- Parameters:
microThesaurus
- The microthesaurus- Returns:
- The microthesaurus' properties
-
-