|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.notification.conditions.AfterXFailedBuildsCondition
public class AfterXFailedBuildsCondition
Field Summary | |
---|---|
static java.lang.String |
DESCRIPTION
|
static java.lang.String |
KEY
|
static java.lang.String |
TEXT_EMAIL_TEMPLATE
|
Constructor Summary | |
---|---|
AfterXFailedBuildsCondition()
|
Method Summary | |
---|---|
java.lang.String |
getConfigurationData()
Returns the string representation of the configurable data in the condition objext to be persisted |
java.lang.String |
getDescription()
Returns generic string description of this condition |
java.lang.String |
getEditHtml()
Returns the html to be displayed on the edit screen (to input data into condition) |
java.lang.String |
getEmailSubject(com.atlassian.event.Event event)
|
java.lang.String |
getIMContent(com.atlassian.event.Event event)
|
java.lang.String |
getKey()
returns key for this condition object |
com.atlassian.mail.Email |
getTextEmail(com.atlassian.event.Event event,
com.atlassian.mail.Email email)
Takes in email object and sets body, subject and mimeType (and any other details you want eg. |
org.apache.velocity.app.VelocityEngine |
getVelocityEngine()
|
java.lang.String |
getViewHtml()
Returns the HTML representing the condition object for the notification |
java.io.Writer |
getWriter()
|
void |
init(com.atlassian.plugin.ModuleDescriptor moduleDescriptor)
initialises the condition object with its module descriptor |
void |
init(java.lang.String data)
initalises the condition object with data based on the config xml string |
boolean |
isNotificationRequired(com.atlassian.event.Event event)
determines whether or not a notification should be sent based on the event |
void |
populate(java.util.Map<java.lang.String,java.lang.String[]> config)
takes the map of config data from action and extracts the parameters it needs |
void |
setExtendedAuthorManager(ExtendedAuthorManager extendedAuthorManager)
|
void |
setTemplateRenderer(TemplateRenderer templateRenderer)
|
ErrorCollection |
validate(java.util.Map<java.lang.String,java.lang.String[]> params)
validate the user inputed data |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DESCRIPTION
public static final java.lang.String KEY
public static final java.lang.String TEXT_EMAIL_TEMPLATE
Constructor Detail |
---|
public AfterXFailedBuildsCondition()
Method Detail |
---|
public void init(@Nullable java.lang.String data)
NotificationCondition
init
in interface NotificationCondition
data
- string representation of configurable datapublic void init(@NotNull com.atlassian.plugin.ModuleDescriptor moduleDescriptor)
NotificationCondition
init
in interface NotificationCondition
moduleDescriptor
- for this plugin object@NotNull public java.lang.String getConfigurationData()
NotificationCondition
getConfigurationData
in interface NotificationCondition
public boolean isNotificationRequired(@NotNull com.atlassian.event.Event event)
NotificationCondition
isNotificationRequired
in interface NotificationCondition
public void populate(@NotNull java.util.Map<java.lang.String,java.lang.String[]> config)
NotificationCondition
populate
in interface NotificationCondition
config
- map of key (String), value (String []) pairs from action@NotNull public ErrorCollection validate(@NotNull java.util.Map<java.lang.String,java.lang.String[]> params)
NotificationCondition
validate
in interface NotificationCondition
params
- map of key (String), value (String []) pairs from action
@NotNull public java.lang.String getEditHtml()
NotificationCondition
getEditHtml
in interface NotificationCondition
@NotNull public java.lang.String getViewHtml()
NotificationCondition
getViewHtml
in interface NotificationCondition
public com.atlassian.mail.Email getTextEmail(@NotNull com.atlassian.event.Event event, @NotNull com.atlassian.mail.Email email)
NotificationCondition
getTextEmail
in interface NotificationCondition
event
- Event Object (eg BuildCompletedEvent) that the notification is fired onemail
- Email object for condition to add body and attachments etc
@NotNull public java.lang.String getIMContent(@NotNull com.atlassian.event.Event event)
getIMContent
in interface NotificationCondition
event
- Event Object that the notification is fired based on
@NotNull public java.lang.String getEmailSubject(@NotNull com.atlassian.event.Event event)
getEmailSubject
in interface NotificationCondition
event
- Event Object that the notification is fired based on
@NotNull public java.lang.String getDescription()
NotificationCondition
getDescription
in interface NotificationCondition
@NotNull public java.lang.String getKey()
NotificationCondition
getKey
in interface NotificationCondition
public void setTemplateRenderer(TemplateRenderer templateRenderer)
public void setExtendedAuthorManager(ExtendedAuthorManager extendedAuthorManager)
public java.io.Writer getWriter()
public org.apache.velocity.app.VelocityEngine getVelocityEngine()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |