public interface WatchService
| Modifier and Type | Method and Description | 
|---|---|
ProjectWatcher | 
create(com.atlassian.jira.project.Project project,
      com.atlassian.jira.user.ApplicationUser user)
Create a watcher. 
 | 
void | 
delete(com.atlassian.jira.user.ApplicationUser user)
Delete watchers for a user. 
 | 
void | 
delete(com.atlassian.jira.project.Project project)
Delete watchers for a project. 
 | 
void | 
delete(com.atlassian.jira.project.Project project,
      com.atlassian.jira.user.ApplicationUser user)
Delete watchers for a project and a user. 
 | 
void | 
flushAllMail()
Flush all mails in the queue only if mail digest is enabled 
 | 
List<com.atlassian.jira.project.Project> | 
get(com.atlassian.jira.user.ApplicationUser user)
Get projects watched by user. 
 | 
List<com.atlassian.jira.user.ApplicationUser> | 
get(com.atlassian.jira.project.Project project)
Get watchers for project. 
 | 
java.time.LocalDateTime | 
getLastTimeInMailDigestNotification()
Get the las time when sent watch project notification 
 | 
boolean | 
hasMailDigest()
Return if Mail Digest is enabled 
 | 
boolean | 
isWatcher(com.atlassian.jira.user.ApplicationUser user,
         com.atlassian.jira.project.Project project)
Get if the user is watcher of the project. 
 | 
void | 
setMailDigest(boolean enabled)
Enable or disable Mail Digest in watch project notification 
 | 
ProjectWatcher create(com.atlassian.jira.project.Project project, com.atlassian.jira.user.ApplicationUser user)
project - the projectuser - the userList<com.atlassian.jira.user.ApplicationUser> get(com.atlassian.jira.project.Project project)
project - the projectList<com.atlassian.jira.project.Project> get(com.atlassian.jira.user.ApplicationUser user)
boolean isWatcher(com.atlassian.jira.user.ApplicationUser user,
                  com.atlassian.jira.project.Project project)
user - the userproject - the projectvoid delete(com.atlassian.jira.project.Project project)
project - the projectvoid delete(com.atlassian.jira.user.ApplicationUser user)
user - the uservoid delete(com.atlassian.jira.project.Project project,
            com.atlassian.jira.user.ApplicationUser user)
project - the projectuser - the userboolean hasMailDigest()
void setMailDigest(boolean enabled)
enabled - true or false due to active mail digestjava.time.LocalDateTime getLastTimeInMailDigestNotification()
void flushAllMail()
Copyright © 2022 DEISER. All Rights Reserved.