public class TranslationUtility extends Object implements TranslateBusinessMethods
Constructor and Description |
---|
TranslationUtility(RuleManagementService ruleManagementService,
TermRepositoryService termRepositoryService,
NaturalLanguageTemplaterContract templater) |
public TranslationUtility(RuleManagementService ruleManagementService, TermRepositoryService termRepositoryService, NaturalLanguageTemplaterContract templater)
public RuleManagementService getRuleManagementService()
public void setRuleManagementService(RuleManagementService ruleManagementService)
public NaturalLanguageTemplaterContract getTemplater()
public void setTemplater(NaturalLanguageTemplaterContract templater)
public String translateNaturalLanguageForObject(String naturalLanguageUsageId, String typeId, String krmsObjectId, String languageCode) throws RiceIllegalArgumentException
translateNaturalLanguageForObject
in interface TranslateBusinessMethods
RiceIllegalArgumentException
protected String translateNaturalLanguageForAgenda(String naturalLanguageUsageId, AgendaDefinition agenda, String languageCode) throws RiceIllegalArgumentException
RiceIllegalArgumentException
protected String translateNaturalLanguageForAgendaItem(String naturalLanguageUsageId, AgendaItemDefinition item, String languageCode)
protected String translateNaturalLanguageForRule(String naturalLanguageUsageId, RuleDefinition rule, String languageCode) throws RiceIllegalArgumentException
RiceIllegalArgumentException
public String translateNaturalLanguageForProposition(String naturalLanguageUsageId, PropositionDefinition proposition, String languageCode) throws RiceIllegalArgumentException
translateNaturalLanguageForProposition
in interface TranslateBusinessMethods
RiceIllegalArgumentException
public NaturalLanguageTree translateNaturalLanguageTreeForProposition(String naturalLanguageUsageId, PropositionDefinition proposition, String languageCode) throws RiceIllegalArgumentException
translateNaturalLanguageTreeForProposition
in interface TranslateBusinessMethods
RiceIllegalArgumentException
protected NaturalLanguageTemplate getNaturalLanguageTemplateForProposition(String naturalLanguageUsageId, PropositionDefinition proposition, String languageCode)
protected Map<String,Object> buildSimplePropositionContextMap(PropositionDefinition proposition)
protected Map<String,Object> buildCompoundPropositionContextMap(String naturalLanguageUsageId, PropositionDefinition proposition, String languageCode)
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.