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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoRun(QuestionMapParameter params, CommandContext commandContext) protected StringgetIndex(QuestionMapParameter params, Entity surveyQuestion) protected StringgetLabel(QuestionMapParameter params, Entity surveyQuestion, Entity questionAnswerEntity) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ch.tocco.nice2.persist.core.api.exec.OptionalTask
runMethods 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:
doRunin interfaceOptionalTask<QuestionMapParameter,Map<String, Object>> - Throws:
Exception
-
getLabel
protected String getLabel(QuestionMapParameter params, Entity surveyQuestion, Entity questionAnswerEntity) -
getIndex
-