Class CreateSurveyAnswerActionServiceImpl
java.lang.Object
ch.tocco.nice2.optional.survey.impl.action.CreateSurveyAnswerActionServiceImpl
- All Implemented Interfaces:
CreateSurveyAnswerActionService
public class CreateSurveyAnswerActionServiceImpl
extends Object
implements CreateSurveyAnswerActionService
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.optional.survey.impl.action.CreateSurveyAnswerActionService
CreateSurveyAnswerActionService.AnswerBox, CreateSurveyAnswerActionService.ClozeAnswerObject, CreateSurveyAnswerActionService.InitialInformation, CreateSurveyAnswerActionService.MatrixColumn
-
Constructor Summary
ConstructorDescriptionCreateSurveyAnswerActionServiceImpl
(EntityExplorerActionSelectionService selectionService, Context context, EntityDefaultValueService entityDefaultValueService, QueryBuilderFactory queryBuilderFactory, CascadingDeleteService cascadingDeleteService, DefaultDisplayService defaultDisplayService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
adjustMatrixColumnSorting
(String[] columns) void
deleteAnswer
(String key) void
deleteXAxis
(String key) void
deleteYAxis
(String key) getAnswerList
(EntityExplorerActionSelection selection) getAnswerList
(String key) getColumns
(EntityExplorerActionSelection selection) getMatrixAnswerList
(EntityExplorerActionSelection selection) getTextPoints
(EntityExplorerActionSelection selection) void
moveRecord
(String key, String direction, String entityName) void
newAnswer
(EntityExplorerActionSelection selection, Integer highestSorting) void
newAnswerBox
(EntityExplorerActionSelection selection) newMatrixXAxis
(EntityExplorerActionSelection selection, String label) void
newMatrixYAxis
(EntityExplorerActionSelection selection, String label, Integer sorting) void
void
saveAnswerType
(String key, @Nullable String value) void
saveMatrixAnswer
(String yAxisKey, String xAxisKey, @Nullable BigDecimal value) void
saveMatrixYAxisTitle
(String key, String value) void
saveQuestionText
(String key, String value) void
saveTextPoints
(EntityExplorerActionSelection selection, BigDecimal value) void
saveTitleText
(String key, String value)
-
Constructor Details
-
CreateSurveyAnswerActionServiceImpl
public CreateSurveyAnswerActionServiceImpl(EntityExplorerActionSelectionService selectionService, Context context, EntityDefaultValueService entityDefaultValueService, QueryBuilderFactory queryBuilderFactory, CascadingDeleteService cascadingDeleteService, DefaultDisplayService defaultDisplayService)
-
-
Method Details
-
getInitialInformation
public CreateSurveyAnswerActionService.InitialInformation getInitialInformation(EntityExplorerActionSelection selection) throws InterruptedException, RpcExecutionException - Specified by:
getInitialInformation
in interfaceCreateSurveyAnswerActionService
- Throws:
InterruptedException
RpcExecutionException
-
getAnswerList
public JsonReaderResponse<Map<String,Object>> getAnswerList(EntityExplorerActionSelection selection) throws RpcExecutionException - Specified by:
getAnswerList
in interfaceCreateSurveyAnswerActionService
- Throws:
RpcExecutionException
-
getAnswerList
public JsonReaderResponse<Map<String,Object>> getAnswerList(String key) throws RpcExecutionException - Specified by:
getAnswerList
in interfaceCreateSurveyAnswerActionService
- Throws:
RpcExecutionException
-
getClozeAnswerObject
public CreateSurveyAnswerActionService.ClozeAnswerObject getClozeAnswerObject(EntityExplorerActionSelection selection) throws RpcExecutionException - Specified by:
getClozeAnswerObject
in interfaceCreateSurveyAnswerActionService
- Throws:
RpcExecutionException
-
saveAnswerType
public void saveAnswerType(String key, @Nullable @Nullable String value) throws InterruptedException - Specified by:
saveAnswerType
in interfaceCreateSurveyAnswerActionService
- Throws:
InterruptedException
-
saveQuestionText
- Specified by:
saveQuestionText
in interfaceCreateSurveyAnswerActionService
- Throws:
InterruptedException
-
saveTitleText
- Specified by:
saveTitleText
in interfaceCreateSurveyAnswerActionService
- Throws:
InterruptedException
-
moveRecord
- Specified by:
moveRecord
in interfaceCreateSurveyAnswerActionService
- Throws:
InterruptedException
-
save
- Specified by:
save
in interfaceCreateSurveyAnswerActionService
- Throws:
InterruptedException
-
newAnswer
public void newAnswer(String key, Integer highestSorting) throws InterruptedException, RpcExecutionException - Specified by:
newAnswer
in interfaceCreateSurveyAnswerActionService
- Throws:
InterruptedException
RpcExecutionException
-
newAnswer
public void newAnswer(EntityExplorerActionSelection selection, Integer highestSorting) throws InterruptedException, RpcExecutionException - Specified by:
newAnswer
in interfaceCreateSurveyAnswerActionService
- Throws:
InterruptedException
RpcExecutionException
-
newAnswerBox
public CreateSurveyAnswerActionService.AnswerBox newAnswerBox(EntityExplorerActionSelection selection) throws InterruptedException, RpcExecutionException - Specified by:
newAnswerBox
in interfaceCreateSurveyAnswerActionService
- Throws:
InterruptedException
RpcExecutionException
-
deleteAnswer
- Specified by:
deleteAnswer
in interfaceCreateSurveyAnswerActionService
- Throws:
InterruptedException
-
getColumns
public List<CreateSurveyAnswerActionService.MatrixColumn> getColumns(EntityExplorerActionSelection selection) throws RpcExecutionException - Specified by:
getColumns
in interfaceCreateSurveyAnswerActionService
- Throws:
RpcExecutionException
-
getMatrixAnswerList
public JsonReaderResponse<Map<String,Object>> getMatrixAnswerList(EntityExplorerActionSelection selection) throws RpcExecutionException - Specified by:
getMatrixAnswerList
in interfaceCreateSurveyAnswerActionService
- Throws:
RpcExecutionException
-
saveMatrixAnswer
public void saveMatrixAnswer(String yAxisKey, String xAxisKey, @Nullable @Nullable BigDecimal value) throws InterruptedException - Specified by:
saveMatrixAnswer
in interfaceCreateSurveyAnswerActionService
- Throws:
InterruptedException
-
saveMatrixYAxisTitle
- Specified by:
saveMatrixYAxisTitle
in interfaceCreateSurveyAnswerActionService
- Throws:
InterruptedException
-
newMatrixYAxis
public void newMatrixYAxis(EntityExplorerActionSelection selection, String label, Integer sorting) throws InterruptedException, RpcExecutionException - Specified by:
newMatrixYAxis
in interfaceCreateSurveyAnswerActionService
- Throws:
InterruptedException
RpcExecutionException
-
newMatrixXAxis
public CreateSurveyAnswerActionService.MatrixColumn newMatrixXAxis(EntityExplorerActionSelection selection, String label) throws InterruptedException, RpcExecutionException - Specified by:
newMatrixXAxis
in interfaceCreateSurveyAnswerActionService
- Throws:
InterruptedException
RpcExecutionException
-
adjustMatrixColumnSorting
- Specified by:
adjustMatrixColumnSorting
in interfaceCreateSurveyAnswerActionService
- Throws:
InterruptedException
-
deleteXAxis
- Specified by:
deleteXAxis
in interfaceCreateSurveyAnswerActionService
- Throws:
InterruptedException
-
deleteYAxis
- Specified by:
deleteYAxis
in interfaceCreateSurveyAnswerActionService
- Throws:
InterruptedException
-
getTextPoints
public BigDecimal getTextPoints(EntityExplorerActionSelection selection) throws RpcExecutionException - Specified by:
getTextPoints
in interfaceCreateSurveyAnswerActionService
- Throws:
RpcExecutionException
-
saveTextPoints
public void saveTextPoints(EntityExplorerActionSelection selection, BigDecimal value) throws RpcExecutionException, InterruptedException - Specified by:
saveTextPoints
in interfaceCreateSurveyAnswerActionService
- Throws:
RpcExecutionException
InterruptedException
-