public class GetThesaurusAction extends ServiceableAction
Modifier and Type | Field and Description |
---|---|
protected AmetysObjectResolver |
_resolver
The Ametys object resolver
|
protected ThesaurusDAO |
_thesaurusDAO
The thesaurus DAO
|
manager
EMPTY_MAP
Constructor and Description |
---|
GetThesaurusAction() |
Modifier and Type | Method and Description |
---|---|
Map |
act(Redirector redirector,
SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters) |
void |
service(ServiceManager serviceManager) |
protected Map<String,Object> |
thesaurusToJSON(Thesaurus thesaurus)
Gets a microthesaurus to JSON format
|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
protected AmetysObjectResolver _resolver
protected ThesaurusDAO _thesaurusDAO
public GetThesaurusAction()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableAction
ServiceException
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
Exception
protected Map<String,Object> thesaurusToJSON(Thesaurus thesaurus)
thesaurus
- The microthesaurus