Interface WatchService
public interface WatchService
The interface Watch service.
- 
Method SummaryModifier and TypeMethodDescriptioncreate(com.atlassian.jira.project.Project project, com.atlassian.jira.user.ApplicationUser user) Create a watcher.voiddelete(com.atlassian.jira.project.Project project) Delete watchers for a project.voiddelete(com.atlassian.jira.project.Project project, com.atlassian.jira.user.ApplicationUser user) Delete watchers for a project and a user.voiddelete(com.atlassian.jira.user.ApplicationUser user) Delete watchers for a user.voidFlush all mails in the queue only if mail digest is enabledList<com.atlassian.jira.user.ApplicationUser>get(com.atlassian.jira.project.Project project) Get watchers for project.List<com.atlassian.jira.project.Project>get(com.atlassian.jira.user.ApplicationUser user) Get projects watched by user.Get the las time when sent watch project notificationbooleanReturn if Mail Digest is enabledbooleanisWatcher(com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.project.Project project) Get if the user is watcher of the project.voidsetMailDigest(boolean enabled) Enable or disable Mail Digest in watch project notification
- 
Method Details- 
createProjectWatcher create(com.atlassian.jira.project.Project project, com.atlassian.jira.user.ApplicationUser user) Create a watcher.- Parameters:
- project- the project
- user- the user
 
- 
getGet watchers for project.- Parameters:
- project- the project
- Returns:
- the watchers of the project
 
- 
getGet projects watched by user.- Returns:
- the projects watched by the user
 
- 
isWatcherboolean isWatcher(com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.project.Project project) Get if the user is watcher of the project.- Parameters:
- user- the user
- project- the project
- Returns:
- the projects watched by the user
 
- 
deletevoid delete(com.atlassian.jira.project.Project project) Delete watchers for a project.- Parameters:
- project- the project
 
- 
deletevoid delete(com.atlassian.jira.user.ApplicationUser user) Delete watchers for a user.- Parameters:
- user- the user
 
- 
deletevoid delete(com.atlassian.jira.project.Project project, com.atlassian.jira.user.ApplicationUser user) Delete watchers for a project and a user.- Parameters:
- project- the project
- user- the user
 
- 
hasMailDigestboolean hasMailDigest()Return if Mail Digest is enabled- Returns:
- true or false
 
- 
setMailDigestvoid setMailDigest(boolean enabled) Enable or disable Mail Digest in watch project notification- Parameters:
- enabled- true or false due to active mail digest
 
- 
getLastTimeInMailDigestNotificationLocalDateTime getLastTimeInMailDigestNotification()Get the las time when sent watch project notification- Returns:
- LocalDateTime
 
- 
flushAllMailvoid flushAllMail()Flush all mails in the queue only if mail digest is enabled
 
-