/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package hudson.plugins.emailext;

import hudson.model.AbstractBuild;
import hudson.model.TaskListener;
import hudson.plugins.emailext.plugins.EmailTrigger;
import java.util.Map;

/**
 *
 * @author acearl
 */
public class ExtendedEmailPublisherContext {
    private ExtendedEmailPublisher publisher;
    private AbstractBuild<?, ?> build;
    private EmailTrigger trigger;
    private TaskListener listener;
    private Map<String, EmailTrigger> triggered;
    
    public ExtendedEmailPublisherContext(ExtendedEmailPublisher publisher, AbstractBuild<?, ?> build, TaskListener listener) {
        this.publisher = publisher;
        this.build = build;
        this.listener = listener;
    }
    
    public ExtendedEmailPublisher getPublisher() {
        return publisher;
    }
    
    protected void setPublisher(ExtendedEmailPublisher publisher) {
        this.publisher = publisher;
    }
    
    public AbstractBuild<?, ?> getBuild() {
        return build;
    }
    
    protected void setBuild(AbstractBuild<?, ?> build) {
        this.build = build;
    }
    
    public EmailTrigger getTrigger() {
        return trigger;
    }    
    
    protected void setTrigger(EmailTrigger trigger) {
        this.trigger = trigger;
    }
    
    public TaskListener getListener() {
        return listener;
    }
    
    protected void setListener(TaskListener listener) {
        this.listener = listener;
    }
    
    public Map<String, EmailTrigger> getTriggered() {
        return triggered;
    }
    
    protected void setTriggered(Map<String, EmailTrigger> triggered) {
        this.triggered = triggered;
    }
}

@@ -221,16 +221,60 @@
 ext;%0D%0A%0D%0A
+import com.google.common.collect.Multimap;%0D%0A
 import h
@@ -393,31 +393,8 @@
 er;%0D
-%0Aimport java.util.Map;%0D
 %0A%0D%0A/
@@ -642,16 +642,21 @@
 rivate M
+ultim
 ap%3CStrin
@@ -1704,16 +1704,21 @@
 public M
+ultim
 ap%3CStrin
@@ -1825,16 +1825,21 @@
 ggered(M
+ultim
 ap%3CStrin

Fix missed commit