Class GetSurveyAsMapTask
java.lang.Object
ch.tocco.nice2.optional.survey.api.GetSurveyAsMapTask
- All Implemented Interfaces:
OptionalTask<Tuple3<Entity,
,Entity, Boolean>, Map<String, Object>> PersistTask<Tuple3<Entity,
Entity, Boolean>, Map<String, Object>>
-
Field Summary
Modifier and TypeFieldDescriptionprotected final ContentTreeService
protected final DisplayFactory
protected final Map
<String, QuestionHandler> protected final TextResources
-
Constructor Summary
ConstructorDescriptionGetSurveyAsMapTask
(TextResources textResources, DisplayFactory displayFactory, ContentTreeService contentTreeService, Map<String, QuestionHandler> questionHandlers) -
Method Summary
Modifier and TypeMethodDescriptiongetDocumentsListFromEntity
(Entity entity, CommandContext commandContext) protected OptionalTask
<QuestionMapParameter, Map<String, Object>> protected void
handleQuestions
(Entity surveyEntity, boolean adminMode, QuestionMapParameter params, CommandContext commandContext, Map<String, Object> categories, HashMap<String, Object> surveyRoot) protected String
requireSortingType
(Entity surveyEntity) 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
-
Field Details
-
textResources
-
displayFactory
-
contentTreeService
-
questionHandlers
-
-
Constructor Details
-
GetSurveyAsMapTask
public GetSurveyAsMapTask(TextResources textResources, DisplayFactory displayFactory, ContentTreeService contentTreeService, Map<String, QuestionHandler> questionHandlers)
-
-
Method Details
-
doRun
-
getQuestionsTask
-
handleQuestions
protected void handleQuestions(Entity surveyEntity, boolean adminMode, QuestionMapParameter params, CommandContext commandContext, Map<String, Object> categories, HashMap<String, throws ExceptionObject> surveyRoot) - Throws:
Exception
-
requireSortingType
-
getDocumentsListFromEntity
protected List<Map<String,Object>> getDocumentsListFromEntity(Entity entity, CommandContext commandContext) throws InterruptedException - Throws:
InterruptedException
-