Package io.jmix.emailtemplates
Class TemplateParametersExtractor
java.lang.Object
io.jmix.emailtemplates.TemplateParametersExtractor
@Component("emltmp_TemplateParametersExtractor")
public class TemplateParametersExtractor
extends Object
-
Field Summary
Modifier and TypeFieldDescriptionprotected ClassManager
protected EmailTemplates
protected Metadata
protected ObjectToStringConverter
protected Map<ParameterType,
Class> protected ReportsSerialization
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvertFromString
(ParameterType parameterType, Class parameterClass, String paramValueStr) convertToString
(ParameterType parameterType, Class parameterClass, Object paramValue) protected List<TemplateReport>
createParamsCollectionByTemplate
(EmailTemplate emailTemplate) getReportDefaultValues
(Report report, List<ParameterValue> parameterValues) getTemplateDefaultValues
(EmailTemplate emailTemplate) resolveClass
(ReportInputParameter parameter)
-
Field Details
-
primitiveParameterTypeMapping
-
classManager
-
metadata
-
emailTemplates
-
reportsSerialization
-
objectToStringConverter
-
-
Constructor Details
-
TemplateParametersExtractor
public TemplateParametersExtractor()
-
-
Method Details
-
getTemplateDefaultValues
public List<ReportWithParams> getTemplateDefaultValues(EmailTemplate emailTemplate) throws ReportParameterTypeChangedException -
getReportDefaultValues
public ReportWithParams getReportDefaultValues(Report report, List<ParameterValue> parameterValues) throws ReportParameterTypeChangedException -
createParamsCollectionByTemplate
-
resolveClass
-
convertToString
-
convertFromString
public Object convertFromString(ParameterType parameterType, Class parameterClass, String paramValueStr)
-