public class GetTermsAction extends ServiceableAction
Modifier and Type | Field and Description |
---|---|
private I18nUtils |
_i18nUtils
The I18n Utils
|
protected AmetysObjectResolver |
_resolver
The Ametys object resolver
|
protected ThesaurusDAO |
_thesaurusDAO
The thesaurus DAO
|
manager
EMPTY_MAP
Constructor and Description |
---|
GetTermsAction() |
Modifier and Type | Method and Description |
---|---|
private String |
_getRelatedTerms(Content term) |
private String |
_getSpecificTerms(Content term) |
Map |
act(Redirector redirector,
SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters) |
protected Map<String,Object> |
rootCandidatesToJSON(TraversableAmetysObject rootCandidates)
Gets the root candidates to JSON format
|
void |
service(ServiceManager serviceManager) |
protected Map<String,Object> |
termToJSON(Content term,
Content genericTerm,
boolean checkMode)
Gets a term to JSON format
|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
protected AmetysObjectResolver _resolver
protected ThesaurusDAO _thesaurusDAO
private I18nUtils _i18nUtils
public GetTermsAction()
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> rootCandidatesToJSON(TraversableAmetysObject rootCandidates)
rootCandidates
- The root node for candidatesprotected Map<String,Object> termToJSON(Content term, Content genericTerm, boolean checkMode)
term
- The termgenericTerm
- The generic term. Can be null.checkMode
- True for checked modeprivate String _getRelatedTerms(Content term)
private String _getSpecificTerms(Content term)