Search in sources :

Example 1 with BinaryMaterialCreateEvent

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

the class BinaryMaterialController method createBinaryMaterial.

public BinaryMaterial createBinaryMaterial(String title, String contentType, byte[] content, BinaryMaterial originMaterial, String license, MaterialViewRestrict viewRestrict) {
    BinaryMaterial material = binaryMaterialDAO.create(title, contentType, content, originMaterial, license, viewRestrict);
    materialCreateEvent.fire(new BinaryMaterialCreateEvent(material));
    return material;
}
Also used : BinaryMaterialCreateEvent(fi.otavanopisto.muikku.plugins.material.events.BinaryMaterialCreateEvent) BinaryMaterial(fi.otavanopisto.muikku.plugins.material.model.BinaryMaterial)

Aggregations

BinaryMaterialCreateEvent (fi.otavanopisto.muikku.plugins.material.events.BinaryMaterialCreateEvent)1 BinaryMaterial (fi.otavanopisto.muikku.plugins.material.model.BinaryMaterial)1