Search in sources :

Example 1 with HtmlMaterialCreateEvent

use of fi.otavanopisto.muikku.plugins.material.events.HtmlMaterialCreateEvent in project muikku by otavanopisto.

the class HtmlMaterialController method createHtmlMaterial.

public HtmlMaterial createHtmlMaterial(String title, String html, String contentType, Long revisionNumber, HtmlMaterial originMaterial, String license, MaterialViewRestrict visibility) {
    HtmlMaterial material = htmlMaterialDAO.create(title, html, contentType, revisionNumber, originMaterial, license, visibility);
    materialCreateEvent.fire(new HtmlMaterialCreateEvent(material));
    return material;
}
Also used : HtmlMaterial(fi.otavanopisto.muikku.plugins.material.model.HtmlMaterial) HtmlMaterialCreateEvent(fi.otavanopisto.muikku.plugins.material.events.HtmlMaterialCreateEvent)

Aggregations

HtmlMaterialCreateEvent (fi.otavanopisto.muikku.plugins.material.events.HtmlMaterialCreateEvent)1 HtmlMaterial (fi.otavanopisto.muikku.plugins.material.model.HtmlMaterial)1