com.atlassian.jira.rest.v2.issue
Class WatchersBean

java.lang.Object
  extended by com.atlassian.jira.rest.v2.issue.WatchersBean

public class WatchersBean
extends Object

This bean describes the watcher list. Apart from an expandable list of watchers, this bean also holds a link to the watchers sub-resource, and a boolean indicating whether the current user is watching the issue.

Since:
v4.2

Nested Class Summary
static class WatchersBean.Builder
           
 
Constructor Summary
WatchersBean(String selfUri, Boolean watching, int count)
           
WatchersBean(String selfUri, Boolean watching, List<UserBean> userBeans, int count)
          Creates a new SimpleListWrapper backed by the given list and returns at most maxResults items to the client.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WatchersBean

public WatchersBean(String selfUri,
                    Boolean watching,
                    List<UserBean> userBeans,
                    int count)
Creates a new SimpleListWrapper backed by the given list and returns at most maxResults items to the client.

Parameters:
selfUri - the URI
watching - a Boolean indicating whether the user is watching the issue
userBeans - a Collection
count - the number of watcher (if the user does not have View Watchers permission then userBeans will be empty but count can be non-zero, so we can't just use userBeans.size())

WatchersBean

public WatchersBean(String selfUri,
                    Boolean watching,
                    int count)


Copyright © 2002-2011 Atlassian. All Rights Reserved.