Class AbstractQuestionExportHandler
java.lang.Object
ch.tocco.nice2.optional.survey.impl.action.export.questionhandlers.AbstractQuestionExportHandler
- All Implemented Interfaces:
QuestionExportHandler
- Direct Known Subclasses:
AbstractMatrixExportHandler
,ChoiceQuestionExportHandler
,TextQuestionExportHandler
handles all columns of
SurveyExportActionService
other than:
- columns 11 - 12 which contain data about the answer possibilities and titles
- columns 16 - 17 which contain data about the answers-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateImmutableList
(T... entries) getAnswerData
(Entity sourceEntity, SurveyBean surveyBean) getColumnData
(Entity sourceEntity, SurveyBean surveyBean) getEntitiesToCreateLinesFor
(SurveyBean surveyBean) this returns a iterable over which will be iterated, to create single lines different question types need to iterate over different entities, because different data is needed this returns a iterable, because we mostly want to returnEntityList
but in some cases need to join to entity lists for different entitiesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.optional.survey.impl.action.export.questionhandlers.QuestionExportHandler
getTypes
-
Field Details
-
POINTS_FIELD
- See Also:
-
ANSWER_FIELD
- See Also:
-
LABEL_FIELD
- See Also:
-
REL_SURVEY_ANSWER
- See Also:
-
-
Constructor Details
-
AbstractQuestionExportHandler
public AbstractQuestionExportHandler()
-
-
Method Details
-
getData
- Specified by:
getData
in interfaceQuestionExportHandler
- Parameters:
surveyQuestionAnswer
- the entity to get the values for- Returns:
- a list of lists with values to display (list of lists because it can be multiple lines)
-
getEntitiesToCreateLinesFor
this returns a iterable over which will be iterated, to create single lines different question types need to iterate over different entities, because different data is needed this returns a iterable, because we mostly want to returnEntityList
but in some cases need to join to entity lists for different entities- Parameters:
surveyBean
- the survey bean to get the entities from- Returns:
- an iterable of
Entity
-
getColumnData
-
getAnswerData
-
createImmutableList
-