Search in sources :

Example 1 with WorkspaceMaterialFieldCreateEvent

use of fi.otavanopisto.muikku.plugins.workspace.events.WorkspaceMaterialFieldCreateEvent in project muikku by otavanopisto.

the class WorkspaceMaterialFieldController method createWorkspaceMaterialField.

public WorkspaceMaterialField createWorkspaceMaterialField(WorkspaceMaterial workspaceMaterial, QueryField queryField, String embedId) {
    WorkspaceMaterialField workspaceMaterialField = workspaceMaterialFieldDAO.create(queryField, workspaceMaterial, embedId);
    workspaceMaterialFieldCreateEvent.fire(new WorkspaceMaterialFieldCreateEvent(workspaceMaterialField));
    return workspaceMaterialField;
}
Also used : WorkspaceMaterialField(fi.otavanopisto.muikku.plugins.workspace.model.WorkspaceMaterialField) WorkspaceMaterialFieldCreateEvent(fi.otavanopisto.muikku.plugins.workspace.events.WorkspaceMaterialFieldCreateEvent)

Aggregations

WorkspaceMaterialFieldCreateEvent (fi.otavanopisto.muikku.plugins.workspace.events.WorkspaceMaterialFieldCreateEvent)1 WorkspaceMaterialField (fi.otavanopisto.muikku.plugins.workspace.model.WorkspaceMaterialField)1