public class GroupCFValue extends AbstractNotificationType
Constructor and Description |
---|
GroupCFValue(JiraAuthenticationContext jiraAuthenticationContext,
GroupSelectorUtils groupSelectorUtils,
FieldManager fieldManager) |
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 |
getArgumentDisplay(String argument)
Obtains the user-friendly display for the argument.
|
String |
getDisplayName()
Text to display for this type, on the "Add Notification" page.
|
List |
getFields()
Used in the UI layer.
|
List<NotificationRecipient> |
getRecipients(IssueEvent event,
String customFieldId)
Who is to be notified of an event.
|
String |
getType()
Type identifier (currently unused).
|
getArgumentValue
public static final String ID
public GroupCFValue(JiraAuthenticationContext jiraAuthenticationContext, GroupSelectorUtils groupSelectorUtils, FieldManager fieldManager)
public List<NotificationRecipient> getRecipients(IssueEvent event, String customFieldId)
NotificationType
event
- The event, eg. issue createdcustomFieldId
- Configuration from notification scheme, eg. group name, custom field id.NotificationRecipient
s.public String getDisplayName()
NotificationType
public String getType()
NotificationType
getType
in interface NotificationType
getType
in class AbstractNotificationType
public List getFields()
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).public String getArgumentDisplay(String argument)
NotificationType
getArgumentDisplay
in interface NotificationType
getArgumentDisplay
in class AbstractNotificationType
argument
- Raw configuration valueCopyright © 2002-2024 Atlassian. All Rights Reserved.