public class NetworkServiceImpl extends Object implements NetworkService
NetworkService
.Constructor and Description |
---|
NetworkServiceImpl(FollowManagerInternal followManager,
UserAccessor userAccessor,
PersonFactory personFactory) |
Modifier and Type | Method and Description |
---|---|
PageResponse<User> |
getFollowers(com.atlassian.sal.api.user.UserKey userKey,
PageRequest request)
Gets the users who are following the given user.
|
PageResponse<User> |
getFollowing(com.atlassian.sal.api.user.UserKey userKey,
PageRequest request)
Gets the users that the given user is following.
|
public NetworkServiceImpl(FollowManagerInternal followManager, UserAccessor userAccessor, PersonFactory personFactory)
public PageResponse<User> getFollowers(com.atlassian.sal.api.user.UserKey userKey, PageRequest request) throws NotFoundException
NetworkService
getFollowers
in interface NetworkService
userKey
- - the key of the user being followedNotFoundException
- if the given user does not existpublic PageResponse<User> getFollowing(com.atlassian.sal.api.user.UserKey userKey, PageRequest request) throws NotFoundException
NetworkService
getFollowing
in interface NetworkService
userKey
- - the key of the user following other users.NotFoundException
- if the given user does not existCopyright © 2003–2016 Atlassian. All rights reserved.