Class UserCFValue
java.lang.Object
com.atlassian.jira.notification.type.AbstractNotificationType
com.atlassian.jira.notification.type.UserCFValue
- All Implemented Interfaces:
NotificationType
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUserCFValue
(JiraAuthenticationContext jiraAuthenticationContext, FieldManager fieldManager) -
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.getArgumentDisplay
(String argument) Obtains the user-friendly display for the argument.Text to display for this type, on the "Add Notification" page.Used in the UI layer.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
getArgumentValue
-
Field Details
-
ID
- See Also:
-
-
Constructor Details
-
UserCFValue
-
-
Method Details
-
getRecipients
Description copied from interface:NotificationType
Who is to be notified of an event.- 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.- 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"
-
getFields
Used in the UI layer. Don't remove!- Returns:
- list of all
UserCFNotificationTypeAware
custom fields - See Also:
-
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.
-
getArgumentDisplay
Description copied from interface:NotificationType
Obtains the user-friendly display for the argument. For example, returns a username for a key.- Specified by:
getArgumentDisplay
in interfaceNotificationType
- Overrides:
getArgumentDisplay
in classAbstractNotificationType
- Parameters:
argument
- Raw configuration value- Returns:
- Formatted configuration value.
-