Package com.atlassian.jira.notification
Class ErrorNotificationType
java.lang.Object
com.atlassian.jira.notification.type.AbstractNotificationType
com.atlassian.jira.notification.ErrorNotificationType
- All Implemented Interfaces:
NotificationType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
doValidation
(String key, Map parameters) Validate the configuration (the argument inNotificationType.getRecipients(com.atlassian.jira.event.issue.IssueEvent, String)
) when it is entered in the "Add Notification" page.Text to display for this type, on the "Add Notification" page.getRecipients
(IssueEvent event, String argument) Who is to be notified of an event.getType()
Type identifier (currently unused).Methods inherited from class com.atlassian.jira.notification.type.AbstractNotificationType
getArgumentDisplay, getArgumentValue
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.jira.notification.NotificationType
getArgumentDisplay, getArgumentValue
-
Constructor Details
-
ErrorNotificationType
-
-
Method Details
-
getRecipients
Description copied from interface:NotificationType
Who is to be notified of an event.- Specified by:
getRecipients
in interfaceNotificationType
- Parameters:
event
- The event, eg. issue createdargument
- Configuration from notification scheme, eg. group name, custom field id.- Returns:
- A list of
NotificationRecipient
s.
-
getDisplayName
Description copied from interface:NotificationType
Text to display for this type, on the "Add Notification" page.- Specified by:
getDisplayName
in interfaceNotificationType
- Returns:
- (Internationalized) text to display, eg. "Group".
-
getType
Description copied from interface:NotificationType
Type identifier (currently unused).- Specified by:
getType
in interfaceNotificationType
- Overrides:
getType
in classAbstractNotificationType
- Returns:
- Eg. "group"
-
doValidation
Description copied from interface:NotificationType
Validate the configuration (the argument inNotificationType.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.- Specified by:
doValidation
in interfaceNotificationType
- Overrides:
doValidation
in classAbstractNotificationType
- Parameters:
key
- Key of relevant value in parametersparameters
- HTML form parameters (only the keyed entry is relevant).- Returns:
- Whether the entered value is valid for this type.
-