use of com.dexels.navajo.script.api.MappableException in project navajo by Dexels.
the class ResourceMailAdapter method store.
@Override
public void store() throws MappableException, UserException {
MailResource resource = MailResourceFactory.getInstance().getMailResource(resourceName);
if (resource == null) {
throw new MappableException("Missing mail resource with name: " + resourceName);
}
String body = this.text;
if (this.xslFile != null && !"".equals(xslFile)) {
try {
body = parseWithXslStyle(xslFile);
} catch (Throwable e) {
throw new MappableException("Error parsing using XSL file", e);
}
}
List<AttachmentMapInterface> attach = new ArrayList<AttachmentMapInterface>(attachments);
resource.send(sender, this.recipientArray, this.ccArray, this.bccArray, this.subject, body, attach, contentType, relatedMultipart);
}
Aggregations