com.atlassian.jira.notification.type
Class GroupDropdown
java.lang.Object
com.atlassian.jira.notification.type.AbstractNotificationType
com.atlassian.jira.notification.type.GroupDropdown
- All Implemented Interfaces:
- NotificationType
public class GroupDropdown
- extends AbstractNotificationType
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GroupDropdown
public GroupDropdown(JiraAuthenticationContext jiraAuthenticationContext)
getRecipients
public List getRecipients(IssueEvent event,
String groupName)
- Description copied from interface:
NotificationType
- Who is to be notified of an event.
- Parameters:
event
- The event, eg. issue createdgroupName
- Configuration from notification scheme, eg. group name, custom field id.
- Returns:
- A list of
NotificationRecipient
s.
getDisplayName
public String 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
public String getType()
- Description copied from interface:
NotificationType
- Type identifier (currently unused).
- Specified by:
getType
in interface NotificationType
- Overrides:
getType
in class AbstractNotificationType
- Returns:
- Eg. "group"
getGroups
public Collection getGroups()
doValidation
public boolean doValidation(String key,
Map parameters)
- Description copied from interface:
NotificationType
- Validate the configuration (the argument in
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.
- Specified by:
doValidation
in interface NotificationType
- Overrides:
doValidation
in class AbstractNotificationType
- 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.
Copyright © 2002-2012 Atlassian. All Rights Reserved.