com.atlassian.jira.notification.type
Class CurrentAssignee
java.lang.Object
com.atlassian.jira.notification.type.AbstractNotificationType
com.atlassian.jira.notification.type.CurrentAssignee
- All Implemented Interfaces:
- NotificationType
public class CurrentAssignee
- extends AbstractNotificationType
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CurrentAssignee
public CurrentAssignee(JiraAuthenticationContext jiraAuthenticationContext,
ApplicationProperties applicationProperties)
getRecipients
public List<NotificationRecipient> getRecipients(IssueEvent event,
String argument)
- 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.
getPreviousAssignee
protected com.atlassian.crowd.embedded.api.User getPreviousAssignee(IssueEvent event)
- Designed to be overrriden for testing. Gets the previous assignee by looking
in change history.
TODO this could be improved by carrying the changes themselves in the IssueEvent instead of a change group GV and hence a DB interaction is required
- Parameters:
event
- the issue event in play
- Returns:
- a previous assignee or null if there isnt one
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".
Copyright © 2002-2012 Atlassian. All Rights Reserved.