use of com.axelor.dms.db.DMSFile in project axelor-open-suite by axelor.
the class DMSController method sendEmail.
public void sendEmail(ActionRequest request, ActionResponse response) {
try {
DMSFile dmsFile = request.getContext().asType(DMSFile.class);
dmsFile = Beans.get(DMSFileRepository.class).find(dmsFile.getId());
Beans.get(DMSFileService.class).sendEmail(dmsFile);
} catch (Exception e) {
TraceBackService.trace(response, e);
}
}
Aggregations