Class GetUserAnswersMethod
java.lang.Object
ch.tocco.nice2.optional.survey.impl.freemarker.GetUserAnswersMethod
- All Implemented Interfaces:
freemarker.template.TemplateMethodModel
,freemarker.template.TemplateMethodModelEx
,freemarker.template.TemplateModel
public class GetUserAnswersMethod
extends Object
implements freemarker.template.TemplateMethodModelEx
provides all answers given in the passed
Survey_question_answer
Entity
.
This method is a convenient way to get the answers. Resolving the answers 'manually' in freemarker is
a pain in the ass.
Parameter: surveyQuestionAnswer → Entity
of model Survey_question_answer
Returns: a simple hash model containing an answer label, an answer and points → UserAnswerEntityModel
usage: getSurveyUserAnswers(surveyQuestionAnswer)-
Field Summary
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
GetUserAnswersMethod
-
-
Method Details
-
exec
- Specified by:
exec
in interfacefreemarker.template.TemplateMethodModel
- Specified by:
exec
in interfacefreemarker.template.TemplateMethodModelEx
- Throws:
freemarker.template.TemplateModelException
-
setAnswerProviders
-