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;
}
Aggregations