Package com.atlassian.jira.notification
Interface NotificationBuilder
@PublicApi
public interface NotificationBuilder
- Since:
- 5.2
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionaddRestrictGroup
(String group) If group restrictions are added, then the recipients must belong to at least one of the added groups.addRestrictGroups
(List<String> groups) If group restrictions are added, then the recipients must belong to at least one of the added groups.addRestrictPermission
(Permissions.Permission permission) If permission restrictions are added, then the recipients must belong to at least one of the added permissions.addRestrictPermissions
(List<Permissions.Permission> permissions) If permission restrictions are added, then the recipients must belong to at least one of the added permissions.addToEmail
(String email) addToEmails
(List<String> emails) addToGroup
(String group) addToGroups
(List<String> groups) addToUsers
(List<String> users) boolean
boolean
boolean
boolean
setTemplate
(String template) setTemplateParams
(com.google.common.collect.ImmutableMap<String, Object> params) setToAssignee
(boolean toReporter) setToReporter
(boolean toReporter) setToVoters
(boolean toVoters) setToWatchers
(boolean toWatchers)
-
Method Details
-
setTemplate
-
getTemplate
String getTemplate() -
setTemplateParams
-
getTemplateParams
-
setToReporter
-
isToReporter
boolean isToReporter() -
setToAssignee
-
isToAssignee
boolean isToAssignee() -
setToWatchers
-
isToWatchers
boolean isToWatchers() -
setToVoters
-
isToVoters
boolean isToVoters() -
addToEmail
-
addToEmails
-
getToEmails
-
addToGroup
-
addToGroups
-
getToGroups
-
addToUser
-
addToUsers
-
getToUsers
-
addRestrictGroup
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
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:
-
getRestrictGroups
-
addRestrictPermission
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
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:
-