Search in sources :

Example 6 with QueryFieldDeleteEvent

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);
}
Also used : QueryFieldDeleteEvent(fi.otavanopisto.muikku.plugins.material.events.QueryFieldDeleteEvent)

Example 7 with QueryFieldDeleteEvent

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);
}
Also used : QueryFieldDeleteEvent(fi.otavanopisto.muikku.plugins.material.events.QueryFieldDeleteEvent)

Example 8 with QueryFieldDeleteEvent

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);
}
Also used : QueryFieldDeleteEvent(fi.otavanopisto.muikku.plugins.material.events.QueryFieldDeleteEvent)

Example 9 with QueryFieldDeleteEvent

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);
}
Also used : QueryConnectFieldCounterpart(fi.otavanopisto.muikku.plugins.material.model.QueryConnectFieldCounterpart) QueryFieldDeleteEvent(fi.otavanopisto.muikku.plugins.material.events.QueryFieldDeleteEvent) QueryConnectFieldTerm(fi.otavanopisto.muikku.plugins.material.model.QueryConnectFieldTerm)

Aggregations

QueryFieldDeleteEvent (fi.otavanopisto.muikku.plugins.material.events.QueryFieldDeleteEvent)9 QueryConnectFieldCounterpart (fi.otavanopisto.muikku.plugins.material.model.QueryConnectFieldCounterpart)1 QueryConnectFieldTerm (fi.otavanopisto.muikku.plugins.material.model.QueryConnectFieldTerm)1 QueryMultiSelectFieldOption (fi.otavanopisto.muikku.plugins.material.model.QueryMultiSelectFieldOption)1 QuerySelectFieldOption (fi.otavanopisto.muikku.plugins.material.model.QuerySelectFieldOption)1