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
ConstructorsConstructorDescriptionCreateSurveyAnswerActionServiceImpl(EntityExplorerActionSelectionService selectionService, Context context, EntityDefaultValueService entityDefaultValueService, QueryBuilderFactory queryBuilderFactory, CascadingDeleteService cascadingDeleteService, DefaultDisplayService defaultDisplayService) -
Method Summary
Modifier and TypeMethodDescriptionvoidadjustMatrixColumnSorting(String[] columns) voiddeleteAnswer(String key) voiddeleteXAxis(String key) voiddeleteYAxis(String key) getAnswerList(EntityExplorerActionSelection selection) getAnswerList(String key) getColumns(EntityExplorerActionSelection selection) getMatrixAnswerList(EntityExplorerActionSelection selection) getTextPoints(EntityExplorerActionSelection selection) voidmoveRecord(String key, String direction, String entityName) voidnewAnswer(EntityExplorerActionSelection selection, Integer highestSorting) voidnewAnswerBox(EntityExplorerActionSelection selection) newMatrixXAxis(EntityExplorerActionSelection selection, String label) voidnewMatrixYAxis(EntityExplorerActionSelection selection, String label, Integer sorting) voidvoidsaveAnswerType(String key, @Nullable String value) voidsaveMatrixAnswer(String yAxisKey, String xAxisKey, @Nullable BigDecimal value) voidsaveMatrixYAxisTitle(String key, String value) voidsaveQuestionText(String key, String value) voidsaveTextPoints(EntityExplorerActionSelection selection, BigDecimal value) voidsaveTitleText(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:
getInitialInformationin interfaceCreateSurveyAnswerActionService- Throws:
InterruptedExceptionRpcExecutionException
-
getAnswerList
public JsonReaderResponse<Map<String,Object>> getAnswerList(EntityExplorerActionSelection selection) throws RpcExecutionException - Specified by:
getAnswerListin interfaceCreateSurveyAnswerActionService- Throws:
RpcExecutionException
-
getAnswerList
public JsonReaderResponse<Map<String,Object>> getAnswerList(String key) throws RpcExecutionException - Specified by:
getAnswerListin interfaceCreateSurveyAnswerActionService- Throws:
RpcExecutionException
-
getClozeAnswerObject
public CreateSurveyAnswerActionService.ClozeAnswerObject getClozeAnswerObject(EntityExplorerActionSelection selection) throws RpcExecutionException - Specified by:
getClozeAnswerObjectin interfaceCreateSurveyAnswerActionService- Throws:
RpcExecutionException
-
saveAnswerType
public void saveAnswerType(String key, @Nullable @Nullable String value) throws InterruptedException - Specified by:
saveAnswerTypein interfaceCreateSurveyAnswerActionService- Throws:
InterruptedException
-
saveQuestionText
- Specified by:
saveQuestionTextin interfaceCreateSurveyAnswerActionService- Throws:
InterruptedException
-
saveTitleText
- Specified by:
saveTitleTextin interfaceCreateSurveyAnswerActionService- Throws:
InterruptedException
-
moveRecord
- Specified by:
moveRecordin interfaceCreateSurveyAnswerActionService- Throws:
InterruptedException
-
save
- Specified by:
savein interfaceCreateSurveyAnswerActionService- Throws:
InterruptedException
-
newAnswer
public void newAnswer(String key, Integer highestSorting) throws InterruptedException, RpcExecutionException - Specified by:
newAnswerin interfaceCreateSurveyAnswerActionService- Throws:
InterruptedExceptionRpcExecutionException
-
newAnswer
public void newAnswer(EntityExplorerActionSelection selection, Integer highestSorting) throws InterruptedException, RpcExecutionException - Specified by:
newAnswerin interfaceCreateSurveyAnswerActionService- Throws:
InterruptedExceptionRpcExecutionException
-
newAnswerBox
public CreateSurveyAnswerActionService.AnswerBox newAnswerBox(EntityExplorerActionSelection selection) throws InterruptedException, RpcExecutionException - Specified by:
newAnswerBoxin interfaceCreateSurveyAnswerActionService- Throws:
InterruptedExceptionRpcExecutionException
-
deleteAnswer
- Specified by:
deleteAnswerin interfaceCreateSurveyAnswerActionService- Throws:
InterruptedException
-
getColumns
public List<CreateSurveyAnswerActionService.MatrixColumn> getColumns(EntityExplorerActionSelection selection) throws RpcExecutionException - Specified by:
getColumnsin interfaceCreateSurveyAnswerActionService- Throws:
RpcExecutionException
-
getMatrixAnswerList
public JsonReaderResponse<Map<String,Object>> getMatrixAnswerList(EntityExplorerActionSelection selection) throws RpcExecutionException - Specified by:
getMatrixAnswerListin interfaceCreateSurveyAnswerActionService- Throws:
RpcExecutionException
-
saveMatrixAnswer
public void saveMatrixAnswer(String yAxisKey, String xAxisKey, @Nullable @Nullable BigDecimal value) throws InterruptedException - Specified by:
saveMatrixAnswerin interfaceCreateSurveyAnswerActionService- Throws:
InterruptedException
-
saveMatrixYAxisTitle
- Specified by:
saveMatrixYAxisTitlein interfaceCreateSurveyAnswerActionService- Throws:
InterruptedException
-
newMatrixYAxis
public void newMatrixYAxis(EntityExplorerActionSelection selection, String label, Integer sorting) throws InterruptedException, RpcExecutionException - Specified by:
newMatrixYAxisin interfaceCreateSurveyAnswerActionService- Throws:
InterruptedExceptionRpcExecutionException
-
newMatrixXAxis
public CreateSurveyAnswerActionService.MatrixColumn newMatrixXAxis(EntityExplorerActionSelection selection, String label) throws InterruptedException, RpcExecutionException - Specified by:
newMatrixXAxisin interfaceCreateSurveyAnswerActionService- Throws:
InterruptedExceptionRpcExecutionException
-
adjustMatrixColumnSorting
- Specified by:
adjustMatrixColumnSortingin interfaceCreateSurveyAnswerActionService- Throws:
InterruptedException
-
deleteXAxis
- Specified by:
deleteXAxisin interfaceCreateSurveyAnswerActionService- Throws:
InterruptedException
-
deleteYAxis
- Specified by:
deleteYAxisin interfaceCreateSurveyAnswerActionService- Throws:
InterruptedException
-
getTextPoints
public BigDecimal getTextPoints(EntityExplorerActionSelection selection) throws RpcExecutionException - Specified by:
getTextPointsin interfaceCreateSurveyAnswerActionService- Throws:
RpcExecutionException
-
saveTextPoints
public void saveTextPoints(EntityExplorerActionSelection selection, BigDecimal value) throws RpcExecutionException, InterruptedException - Specified by:
saveTextPointsin interfaceCreateSurveyAnswerActionService- Throws:
RpcExecutionExceptionInterruptedException
-