Search in sources :

Example 1 with BinaryMaterialUpdateEvent

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

the class BinaryMaterialController method updateBinaryMaterialContent.

public BinaryMaterial updateBinaryMaterialContent(BinaryMaterial binaryMaterial, byte[] content) {
    BinaryMaterial material = binaryMaterialDAO.updateContent(binaryMaterial, content);
    materialUpdateEvent.fire(new BinaryMaterialUpdateEvent(material));
    return material;
}
Also used : BinaryMaterialUpdateEvent(fi.otavanopisto.muikku.plugins.material.events.BinaryMaterialUpdateEvent) BinaryMaterial(fi.otavanopisto.muikku.plugins.material.model.BinaryMaterial)

Aggregations

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