public class ErrorNotificationType extends AbstractNotificationType implements NotificationType
Constructor and Description |
---|
ErrorNotificationType(String displayName) |
Modifier and Type | Method and Description |
---|---|
boolean |
doValidation(String key,
Map parameters)
Validate the configuration (the argument in
NotificationType.getRecipients(com.atlassian.jira.event.issue.IssueEvent, String) )
when it is entered in the "Add Notification" page. |
String |
getDisplayName()
Text to display for this type, on the "Add Notification" page.
|
List<NotificationRecipient> |
getRecipients(IssueEvent event,
String argument)
Who is to be notified of an event.
|
String |
getType()
Type identifier (currently unused).
|
getArgumentDisplay, getArgumentValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getArgumentDisplay, getArgumentValue
public ErrorNotificationType(String displayName)
public List<NotificationRecipient> getRecipients(IssueEvent event, String argument)
NotificationType
getRecipients
in interface NotificationType
event
- The event, eg. issue createdargument
- Configuration from notification scheme, eg. group name, custom field id.NotificationRecipient
s.public String getDisplayName()
NotificationType
getDisplayName
in interface NotificationType
public String getType()
NotificationType
getType
in interface NotificationType
getType
in class AbstractNotificationType
public boolean doValidation(String key, Map parameters)
NotificationType
NotificationType.getRecipients(com.atlassian.jira.event.issue.IssueEvent, String)
)
when it is entered in the "Add Notification" page.
For instance, a group notification type might check if the entered group exists.doValidation
in interface NotificationType
doValidation
in class AbstractNotificationType
key
- Key of relevant value in parametersparameters
- HTML form parameters (only the keyed entry is relevant).Copyright © 2002-2024 Atlassian. All Rights Reserved.