Search in sources :

Example 1 with WorkspaceMaterialCreateEvent

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

the class WorkspaceMaterialController method createWorkspaceMaterial.

public WorkspaceMaterial createWorkspaceMaterial(WorkspaceNode parent, Material material, String title, String urlName, Integer index, Boolean hidden, WorkspaceMaterialAssignmentType assignmentType, WorkspaceMaterialCorrectAnswersDisplay correctAnswers) {
    WorkspaceMaterial workspaceMaterial = workspaceMaterialDAO.create(parent, material.getId(), title, urlName, index, hidden, assignmentType, correctAnswers);
    workspaceMaterialCreateEvent.fire(new WorkspaceMaterialCreateEvent(workspaceMaterial));
    return workspaceMaterial;
}
Also used : WorkspaceMaterialCreateEvent(fi.otavanopisto.muikku.plugins.workspace.events.WorkspaceMaterialCreateEvent) WorkspaceMaterial(fi.otavanopisto.muikku.plugins.workspace.model.WorkspaceMaterial)

Aggregations

WorkspaceMaterialCreateEvent (fi.otavanopisto.muikku.plugins.workspace.events.WorkspaceMaterialCreateEvent)1 WorkspaceMaterial (fi.otavanopisto.muikku.plugins.workspace.model.WorkspaceMaterial)1