use of fi.otavanopisto.muikku.plugins.workspace.model.WorkspaceMaterialField in project muikku by otavanopisto.
the class QueryFieldChangeListener method onQuerySelectFieldUpdate.
public void onQuerySelectFieldUpdate(@Observes QueryFieldUpdateEvent event) {
if (event.getMaterialField().getType().equals("application/vnd.muikku.field.select")) {
QueryField queryField = event.getQueryField();
List<WorkspaceMaterialField> workspaceMaterialFields = workspaceMaterialFieldController.listWorkspaceMaterialFieldsByQueryField(queryField);
for (WorkspaceMaterialField workspaceMaterialField : workspaceMaterialFields) {
workspaceMaterialFieldController.updateWorkspaceMaterialField(workspaceMaterialField, event.getMaterialField(), event.getRemoveAnswers());
}
}
}
Aggregations