com.atlassian.jira.issue.watchers
Class DefaultWatcherManager

java.lang.Object
  extended by com.atlassian.jira.issue.watchers.DefaultWatcherManager
All Implemented Interfaces:
WatcherManager

public class DefaultWatcherManager
extends Object
implements WatcherManager


Constructor Summary
DefaultWatcherManager(com.atlassian.core.ofbiz.association.AssociationManager associationManager)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultWatcherManager

public DefaultWatcherManager(com.atlassian.core.ofbiz.association.AssociationManager associationManager)
Method Detail

isWatching

public boolean isWatching(User user,
                          org.ofbiz.core.entity.GenericValue issue)
Description copied from interface: WatcherManager
Determine whether the current user is already watching the issue or not

Specified by:
isWatching in interface WatcherManager
Returns:
True if a user is watching the issue specified.

getCurrentWatchList

public Collection getCurrentWatchList(org.ofbiz.core.entity.GenericValue issue)
Description copied from interface: WatcherManager
Retrieve collection of users that are currently watching this issue (including the current user)

Specified by:
getCurrentWatchList in interface WatcherManager
Returns:
A collection of Users

startWatching

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

Specified by:
startWatching in interface WatcherManager

stopWatching

public void stopWatching(User user,
                         org.ofbiz.core.entity.GenericValue issue)
Description copied from interface: WatcherManager
Disable watching of a particular issue for the user supplied.

Specified by:
stopWatching in interface WatcherManager


Copyright © 2002-2007 Atlassian. All Rights Reserved.