|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.notification.conditions.AbstractNotificationCondition
@Deprecated public abstract class AbstractNotificationCondition
Constructor Summary | |
---|---|
AbstractNotificationCondition()
Deprecated. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
Deprecated. |
java.lang.String |
getConfigurationData()
Deprecated. Returns the string representation of the configurable data in the condition objext to be persisted |
java.lang.String |
getEditHtml()
Deprecated. Returns the html to be displayed on the edit screen (to input data into condition) |
com.atlassian.mail.Email |
getTextEmail(com.atlassian.event.Event event,
com.atlassian.mail.Email email)
Deprecated. Takes in email object and sets body, subject and mimeType (and any other details you want eg. |
java.lang.String |
getViewHtml()
Deprecated. Returns the HTML representing the condition object for the notification |
void |
init(com.atlassian.plugin.ModuleDescriptor moduleDescriptor)
Deprecated. initialises the condition object with its module descriptor |
void |
init(java.lang.String data)
Deprecated. initalises the condition object with data based on the config xml string |
void |
populate(java.util.Map<java.lang.String,java.lang.String[]> config)
Deprecated. takes the map of config data from action and extracts the parameters it needs |
ErrorCollection |
validate(java.util.Map<java.lang.String,java.lang.String[]> params)
Deprecated. validate the user inputed data |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.bamboo.notification.NotificationCondition |
---|
getDescription, getEmailSubject, getIMContent, getKey, isNotificationRequired |
Constructor Detail |
---|
public AbstractNotificationCondition()
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
@NotNull public java.lang.String getEditHtml()
NotificationCondition
getEditHtml
in interface NotificationCondition
@NotNull public java.lang.String getViewHtml()
NotificationCondition
getViewHtml
in interface NotificationCondition
@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
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 actionpublic com.atlassian.mail.Email getTextEmail(@NotNull com.atlassian.event.Event event, @NotNull com.atlassian.mail.Email email) throws java.lang.Exception
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
java.lang.Exception
- if there is a problem preventing production of the e-mail.public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |