Class GetQuestionAsMapTask
java.lang.Object
ch.tocco.nice2.optional.survey.api.GetQuestionAsMapTask
- All Implemented Interfaces:
OptionalTask<QuestionMapParameter,
,Map<String, Object>> PersistTask<QuestionMapParameter,
Map<String, Object>>
public class GetQuestionAsMapTask
extends Object
implements OptionalTask<QuestionMapParameter,Map<String,Object>>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondoRun
(QuestionMapParameter params, CommandContext commandContext) protected String
getIndex
(QuestionMapParameter params, Entity surveyQuestion) protected String
getLabel
(QuestionMapParameter params, Entity surveyQuestion, Entity questionAnswerEntity) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.persist.core.api.exec.OptionalTask
run
Methods inherited from interface ch.tocco.nice2.persist.core.api.exec.PersistTask
andThenDo, compose, compose2, composeWhen, discardResult, expand, expand, getDescription, ifElse, orWhen, orWhenNot, passWhen, passWhenNot, skipErrors, unwrap
-
Constructor Details
-
GetQuestionAsMapTask
-
-
Method Details
-
doRun
public Map<String,Object> doRun(QuestionMapParameter params, CommandContext commandContext) throws Exception - Specified by:
doRun
in interfaceOptionalTask<QuestionMapParameter,
Map<String, Object>> - Throws:
Exception
-
getLabel
protected String getLabel(QuestionMapParameter params, Entity surveyQuestion, Entity questionAnswerEntity) -
getIndex
-