com.atlassian.jira.issue.watchers
Interface WatcherManager

All Known Implementing Classes:
DefaultWatcherManager

public interface WatcherManager

Allows watching of issues. I.e.: Users watching an issue will receive notifications for every update of the issue.


Method Summary
 Collection getCurrentWatchList(org.ofbiz.core.entity.GenericValue issue)
          Retrieve collection of users that are currently watching this issue (including the current user)
 boolean isWatching(User user, org.ofbiz.core.entity.GenericValue issue)
          Determine whether the current user is already watching the issue or not
 void startWatching(User user, org.ofbiz.core.entity.GenericValue issue)
          Enable watching of a particular issue for the user supplied.
 void stopWatching(User user, org.ofbiz.core.entity.GenericValue issue)
          Disable watching of a particular issue for the user supplied.
 

Method Detail

isWatching

boolean isWatching(User user,
                   org.ofbiz.core.entity.GenericValue issue)
Determine whether the current user is already watching the issue or not

Parameters:
user -
issue -
Returns:
True if a user is watching the issue specified.

getCurrentWatchList

Collection getCurrentWatchList(org.ofbiz.core.entity.GenericValue issue)
Retrieve collection of users that are currently watching this issue (including the current user)

Parameters:
issue -
Returns:
A collection of Users

startWatching

void startWatching(User user,
                   org.ofbiz.core.entity.GenericValue issue)
Enable watching of a particular issue for the user supplied. This means the user will retrieve updates for any modifications to the issue.

Parameters:
user -
issue -

stopWatching

void stopWatching(User user,
                  org.ofbiz.core.entity.GenericValue issue)
Disable watching of a particular issue for the user supplied.

Parameters:
user -
issue -


Copyright © 2002-2007 Atlassian. All Rights Reserved.