All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.netgrif.application.engine.mail.domain.MailDraft Maven / Gradle / Ivy

Go to download

System provides workflow management functions including user, role and data management.

There is a newer version: 6.3.3
Show newest version
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