hudson.plugins.emailext.plugins
Class EmailTrigger

java.lang.Object
  extended by hudson.plugins.emailext.plugins.EmailTrigger
Direct Known Subclasses:
FailureTrigger, FixedTrigger, StillFailingTrigger, StillUnstableTrigger, SuccessTrigger, UnstableTrigger

public abstract class EmailTrigger
extends java.lang.Object


Constructor Summary
EmailTrigger()
           
 
Method Summary
 boolean getDefaultSendToDevs()
           
 boolean getDefaultSendToList()
           
abstract  EmailTriggerDescriptor getDescriptor()
           
 EmailType getEmail()
          Get the email that is with this trigger.
 void setEmail(EmailType email)
           
abstract
<P extends hudson.model.AbstractProject<P,B>,B extends hudson.model.AbstractBuild<P,B>>
boolean
trigger(B build)
          Implementors of this method need to return true if the conditions to trigger an email have been met.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmailTrigger

public EmailTrigger()
Method Detail

trigger

public abstract <P extends hudson.model.AbstractProject<P,B>,B extends hudson.model.AbstractBuild<P,B>> boolean trigger(B build)
Implementors of this method need to return true if the conditions to trigger an email have been met.

Parameters:
build - The Build object after the project has been built
Returns:
true if the conditions have been met to trigger a build of this type

getEmail

public EmailType getEmail()
Get the email that is with this trigger.

Returns:

setEmail

public void setEmail(EmailType email)

getDescriptor

public abstract EmailTriggerDescriptor getDescriptor()

getDefaultSendToList

public boolean getDefaultSendToList()

getDefaultSendToDevs

public boolean getDefaultSendToDevs()


Copyright © 2008. All Rights Reserved.