Class SingleUser
java.lang.Object
com.atlassian.jira.notification.type.AbstractNotificationType
com.atlassian.jira.notification.type.SingleUser
- All Implemented Interfaces:
NotificationType
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandoValidation(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.getArgumentDisplay(String argument) Obtains the user-friendly display for the argument.getArgumentValue(String displayValue) Obtains the raw parameter value to save for the given user entry user-friendly display value.Text to display for this type, on the "Add Notification" page.getRecipients(IssueEvent event, String userKey) Who is to be notified of an event.getType()Type identifier (currently unused).
-
Field Details
-
DESC
- See Also:
-
-
Constructor Details
-
SingleUser
-
-
Method Details
-
getRecipients
Description copied from interface:NotificationTypeWho is to be notified of an event.- Parameters:
event- The event, eg. issue createduserKey- Configuration from notification scheme, eg. group name, custom field id.- Returns:
- A list of
NotificationRecipients.
-
getDisplayName
Description copied from interface:NotificationTypeText to display for this type, on the "Add Notification" page.- Returns:
- (Internationalized) text to display, eg. "Group".
-
getType
Description copied from interface:NotificationTypeType identifier (currently unused).- Specified by:
getTypein interfaceNotificationType- Overrides:
getTypein classAbstractNotificationType- Returns:
- Eg. "group"
-
doValidation
Description copied from interface:NotificationTypeValidate 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:
doValidationin interfaceNotificationType- Overrides:
doValidationin 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.
-
getArgumentDisplay
Description copied from interface:NotificationTypeObtains the user-friendly display for the argument. For example, returns a username for a key.- Specified by:
getArgumentDisplayin interfaceNotificationType- Overrides:
getArgumentDisplayin classAbstractNotificationType- Parameters:
argument- Raw configuration value- Returns:
- Formatted configuration value.
-
getArgumentValue
Description copied from interface:NotificationTypeObtains the raw parameter value to save for the given user entry user-friendly display value. For example, the user picker displays a username, but this needs to be stored in the configuration parameter as the user's key, instead.- Specified by:
getArgumentValuein interfaceNotificationType- Overrides:
getArgumentValuein classAbstractNotificationType- Parameters:
displayValue- Value entered into the form (username, for example)- Returns:
- raw configuration value.
-