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
FieldsModifier and TypeFieldDescriptionprotected final ContentTreeServiceprotected final DisplayFactoryprotected final Map<String, QuestionHandler> protected final TextResources -
Constructor Summary
ConstructorsConstructorDescriptionGetSurveyAsMapTask(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 voidhandleQuestions(Entity surveyEntity, boolean adminMode, QuestionMapParameter params, CommandContext commandContext, Map<String, Object> categories, HashMap<String, Object> surveyRoot) protected StringrequireSortingType(Entity surveyEntity) 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
-
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
-