|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NotificationType
Represents a type of notification. This is used for the creation of notification rules and determining if the notification should be sent.
Nested Class Summary | |
---|---|
static class |
NotificationType.Scope
|
Method Summary | |
---|---|
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 |
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[]> params)
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 interface java.lang.Comparable |
---|
compareTo |
Method Detail |
---|
void init(@NotNull com.atlassian.plugin.web.descriptors.WeightedDescriptor moduleDescriptor)
moduleDescriptor
- for this plugin object@Nullable com.atlassian.plugin.web.descriptors.WeightedDescriptor getModuleDescriptor()
void setConfigurationData(@Nullable java.lang.String data)
data
- string representation of configurable data@NotNull java.lang.String getConfigurationData()
@NotNull java.lang.String getDescription()
@NotNull java.lang.String getKey()
void populate(@NotNull java.util.Map<java.lang.String,java.lang.String[]> params)
params
- map of key (String), value (String []) pairs from action@NotNull ErrorCollection validate(@NotNull java.util.Map<java.lang.String,java.lang.String[]> params)
params
- map of key (String), value (String []) pairs from action
@NotNull java.lang.String getEditHtml()
@NotNull java.lang.String getViewHtml()
boolean isNotificationRequired(@NotNull com.atlassian.event.Event event)
event
-
NotificationType.Scope getScope()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |