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