|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.issue.watchers.DefaultIssueWatcherAccessor
public class DefaultIssueWatcherAccessor
| Constructor Summary | |
|---|---|
DefaultIssueWatcherAccessor(WatcherManager watcherManager)
|
|
| Method Summary | ||
|---|---|---|
Iterable<User> |
getDetails(Locale displayLocale,
Issue issue)
Convenience function that simply returns the User objects. |
|
|
getDetails(Locale displayLocale,
Issue issue,
Function<User,T> transformer)
Return an Iterable of all watchers for the supplied issue. |
|
Iterable<String> |
getWatcherNames(Issue issue)
Convenience function that simply returns the User names. |
|
Iterable<com.atlassian.crowd.embedded.api.User> |
getWatchers(Issue issue,
Locale displayLocale)
Convenience function that simply returns the User objects. |
|
boolean |
isWatchingEnabled()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultIssueWatcherAccessor(WatcherManager watcherManager)
| Method Detail |
|---|
public Iterable<User> getDetails(Locale displayLocale,
Issue issue)
IssueWatcherAccessor
getDetails in interface IssueWatcherAccessordisplayLocale - for sorting.issue - the issue to get the watchers for
public Iterable<com.atlassian.crowd.embedded.api.User> getWatchers(@NotNull
Issue issue,
@NotNull
Locale displayLocale)
IssueWatcherAccessor
getWatchers in interface IssueWatcherAccessorissue - the issue to get the watchers fordisplayLocale - for sorting.
public <T> Iterable<T> getDetails(Locale displayLocale,
Issue issue,
Function<User,T> transformer)
IssueWatcherAccessor
getDetails in interface IssueWatcherAccessorT - the type of element in the returned iterable.displayLocale - for sorting.issue - the issue to get the watchers fortransformer - to get the required details from the User objects.
public boolean isWatchingEnabled()
isWatchingEnabled in interface IssueWatcherAccessor
public Iterable<String> getWatcherNames(@NotNull
Issue issue)
IssueWatcherAccessor
getWatcherNames in interface IssueWatcherAccessorissue - the issue to get the watchers for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||