use of fi.otavanopisto.muikku.plugins.material.events.QueryFieldDeleteEvent in project muikku by otavanopisto.
the class QueryOrganizerFieldController method deleteQueryOrganizerField.
public void deleteQueryOrganizerField(QueryOrganizerField queryField, boolean removeAnswers) {
queryFieldDeleteEvent.fire(new QueryFieldDeleteEvent(queryField, removeAnswers));
queryOrganizerFieldDAO.delete(queryField);
}
use of fi.otavanopisto.muikku.plugins.material.events.QueryFieldDeleteEvent in project muikku by otavanopisto.
the class QuerySorterFieldController method deleteQuerySorterField.
public void deleteQuerySorterField(QuerySorterField queryField, boolean removeAnswers) {
queryFieldDeleteEvent.fire(new QueryFieldDeleteEvent(queryField, removeAnswers));
querySorterFieldDAO.delete(queryField);
}
use of fi.otavanopisto.muikku.plugins.material.events.QueryFieldDeleteEvent in project muikku by otavanopisto.
the class QueryTextFieldController method deleteQueryTextField.
public void deleteQueryTextField(QueryTextField queryField, boolean removeAnswers) {
queryFieldDeleteEvent.fire(new QueryFieldDeleteEvent(queryField, removeAnswers));
queryTextFieldDAO.delete(queryField);
}
use of fi.otavanopisto.muikku.plugins.material.events.QueryFieldDeleteEvent in project muikku by otavanopisto.
the class QueryConnectFieldController method deleteQueryConnectField.
public void deleteQueryConnectField(QueryConnectField queryField, boolean removeAnswers) {
queryFieldDeleteEvent.fire(new QueryFieldDeleteEvent(queryField, removeAnswers));
for (QueryConnectFieldTerm term : listConnectFieldTermsByField(queryField)) {
queryConnectFieldTermDAO.delete(term);
}
for (QueryConnectFieldCounterpart counterpart : listQueryConnectFieldCounterpartByField(queryField)) {
queryConnectFieldCounterpartDAO.delete(counterpart);
}
queryConnectFieldDAO.delete(queryField);
}
Aggregations