com.atlassian.jira.notification
Interface NotificationBuilder


@PublicApi
public interface NotificationBuilder

Since:
5.2
See Also:
AdhocNotificationService

Method Summary
 NotificationBuilder addRestrictGroup(String group)
          If group restrictions are added, then the recipients must belong to at least one of the added groups.
 NotificationBuilder addRestrictGroups(List<String> groups)
          If group restrictions are added, then the recipients must belong to at least one of the added groups.
 NotificationBuilder addRestrictPermission(Permissions.Permission permission)
          If permission restrictions are added, then the recipients must belong to at least one of the added permissions.
 NotificationBuilder addRestrictPermissions(List<Permissions.Permission> permissions)
          If permission restrictions are added, then the recipients must belong to at least one of the added permissions.
 NotificationBuilder addToEmail(String email)
           
 NotificationBuilder addToEmails(List<String> emails)
           
 NotificationBuilder addToGroup(String group)
           
 NotificationBuilder addToGroups(List<String> groups)
           
 NotificationBuilder addToUser(String user)
           
 NotificationBuilder addToUsers(List<String> users)
           
 List<String> getRestrictGroups()
           
 String getTemplate()
           
 com.google.common.collect.ImmutableMap<String,Object> getTemplateParams()
           
 List<String> getToEmails()
           
 List<String> getToGroups()
           
 List<String> getToUsers()
           
 boolean isToAssignee()
           
 boolean isToReporter()
           
 boolean isToVoters()
           
 boolean isToWatchers()
           
 NotificationBuilder setTemplate(String template)
           
 NotificationBuilder setTemplateParams(com.google.common.collect.ImmutableMap<String,Object> params)
           
 NotificationBuilder setToAssignee(boolean toReporter)
           
 NotificationBuilder setToReporter(boolean toReporter)
           
 NotificationBuilder setToVoters(boolean toVoters)
           
 NotificationBuilder setToWatchers(boolean toWatchers)
           
 

Method Detail

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)


Copyright © 2002-2014 Atlassian. All Rights Reserved.