com.atlassian.jira.notification
Interface NotificationBuilder
@PublicApi
public interface NotificationBuilder
- Since:
- 5.2
- See Also:
AdhocNotificationService
setTemplate
NotificationBuilder setTemplate(String template)
getTemplate
String getTemplate()
setTemplateParams
NotificationBuilder setTemplateParams(com.google.common.collect.ImmutableMap<String,Object> params)
getTemplateParams
com.google.common.collect.ImmutableMap<String,Object> getTemplateParams()
setToReporter
NotificationBuilder setToReporter(boolean toReporter)
isToReporter
boolean isToReporter()
setToAssignee
NotificationBuilder setToAssignee(boolean toReporter)
isToAssignee
boolean isToAssignee()
setToWatchers
NotificationBuilder setToWatchers(boolean toWatchers)
isToWatchers
boolean isToWatchers()
setToVoters
NotificationBuilder setToVoters(boolean toVoters)
isToVoters
boolean isToVoters()
addToEmail
NotificationBuilder addToEmail(String email)
addToEmails
NotificationBuilder addToEmails(List<String> emails)
getToEmails
List<String> getToEmails()
addToGroup
NotificationBuilder addToGroup(String group)
addToGroups
NotificationBuilder addToGroups(List<String> groups)
getToGroups
List<String> getToGroups()
addToUser
NotificationBuilder addToUser(String user)
addToUsers
NotificationBuilder addToUsers(List<String> users)
getToUsers
List<String> getToUsers()
addRestrictGroup
NotificationBuilder addRestrictGroup(String group)
- If group restrictions are added, then the recipients must belong to at least one of the added groups.
- Parameters:
group - the group to add
- Returns:
this- See Also:
addRestrictGroups(List)
addRestrictGroups
NotificationBuilder addRestrictGroups(List<String> groups)
- If group restrictions are added, then the recipients must belong to at least one of the added groups.
- Parameters:
groups - a list of groups to be added
- Returns:
this- See Also:
addRestrictGroup(String)
getRestrictGroups
List<String> getRestrictGroups()
addRestrictPermission
NotificationBuilder addRestrictPermission(Permissions.Permission permission)
- If permission restrictions are added, then the recipients must belong to at least one of the added permissions.
- Parameters:
permission - the permission to add
- Returns:
this- See Also:
addRestrictPermissions(List)
addRestrictPermissions
NotificationBuilder addRestrictPermissions(List<Permissions.Permission> permissions)
- If permission restrictions are added, then the recipients must belong to at least one of the added permissions.
- Parameters:
permissions - the list of permissions to add
- Returns:
this- See Also:
addRestrictPermission(Permissions.Permission)
getRestrictPermissions
List<Permissions.Permission> getRestrictPermissions()
Copyright © 2002-2013 Atlassian. All Rights Reserved.