|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.notification.AbstractNotificationType
public abstract class AbstractNotificationType
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.atlassian.bamboo.notification.NotificationType |
---|
NotificationType.Scope |
Field Summary | |
---|---|
protected NotificationTypeModuleDescriptor |
notificationTypeModuleDescriptor
|
Constructor Summary | |
---|---|
AbstractNotificationType()
|
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
|
java.lang.String |
getConfigurationData()
Returns the string representation of the configurable data of the notification type to be persisted to the db |
java.lang.String |
getDescription()
Returns generic string description of this notification type |
java.lang.String |
getEditHtml()
Returns the html to be displayed on the edit screen (to input data into notification type) |
java.lang.String |
getKey()
returns key for this condition object |
com.atlassian.plugin.web.descriptors.WeightedDescriptor |
getModuleDescriptor()
returns the moduleDescriptor for this plugin object if it exists. |
NotificationType.Scope |
getScope()
The scope of the notification type be it "plan" or "system" or "chain" |
java.lang.String |
getViewHtml()
Returns the HTML representing the notification type for the notification |
void |
init(com.atlassian.plugin.web.descriptors.WeightedDescriptor moduleDescriptor)
initialises the notification type plugin object with its module descriptor |
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 |
setConfigurationData(java.lang.String data)
initalises the notification type object with its data based on the config string retrieved from the database |
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 |
Methods inherited from interface com.atlassian.bamboo.notification.NotificationType |
---|
isNotificationRequired |
Field Detail |
---|
protected NotificationTypeModuleDescriptor notificationTypeModuleDescriptor
Constructor Detail |
---|
public AbstractNotificationType()
Method Detail |
---|
public void setConfigurationData(@Nullable java.lang.String data)
NotificationType
setConfigurationData
in interface NotificationType
data
- string representation of configurable datapublic void init(@NotNull com.atlassian.plugin.web.descriptors.WeightedDescriptor moduleDescriptor)
NotificationType
init
in interface NotificationType
moduleDescriptor
- for this plugin object@Nullable public com.atlassian.plugin.web.descriptors.WeightedDescriptor getModuleDescriptor()
NotificationType
getModuleDescriptor
in interface NotificationType
@NotNull public java.lang.String getKey()
NotificationType
getKey
in interface NotificationType
@NotNull public java.lang.String getDescription()
NotificationType
getDescription
in interface NotificationType
public NotificationType.Scope getScope()
NotificationType
getScope
in interface NotificationType
@NotNull public java.lang.String getConfigurationData()
NotificationType
getConfigurationData
in interface NotificationType
@NotNull public java.lang.String getEditHtml()
NotificationType
getEditHtml
in interface NotificationType
@NotNull public java.lang.String getViewHtml()
NotificationType
getViewHtml
in interface NotificationType
@NotNull public ErrorCollection validate(@NotNull java.util.Map<java.lang.String,java.lang.String[]> params)
NotificationType
validate
in interface NotificationType
params
- map of key (String), value (String []) pairs from action
public void populate(@NotNull java.util.Map<java.lang.String,java.lang.String[]> config)
NotificationType
populate
in interface NotificationType
config
- map of key (String), value (String []) pairs from actionpublic 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 |