com.netgrif.application.engine.mail.domain.MailDraft Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of application-engine Show documentation
Show all versions of application-engine Show documentation
System provides workflow management functions including user, role and data management.
package com.netgrif.application.engine.mail.domain;
import lombok.Builder;
import lombok.Data;
import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@Builder(builderMethodName = "mailDraftBuilder")
@Data
public class MailDraft {
String from;
@Builder.Default
List to = new ArrayList<>();
@Builder.Default
List cc = new ArrayList<>();
@Builder.Default
List bcc = new ArrayList<>();
String subject;
String body;
boolean isHtml;
@Builder.Default
Map model = new HashMap<>();
@Builder.Default
Map attachments = new HashMap<>();
public static MailDraftBuilder builder(String from, List to) {
return mailDraftBuilder().from(from).to(to).subject("").body("").isHtml(false).attachments(new HashMap<>());
}
public static class MailDraftBuilder {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy