Class NetworkServiceImpl
- java.lang.Object
-
- com.atlassian.confluence.api.impl.service.network.NetworkServiceImpl
-
- All Implemented Interfaces:
NetworkService
public class NetworkServiceImpl extends Object implements NetworkService
Server implementation of theNetworkService
.
-
-
Constructor Summary
Constructors Constructor Description NetworkServiceImpl(FollowManagerInternal followManager, ConfluenceUserResolver confluenceUserResolver, PersonFactory personFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
NetworkServiceImpl
public NetworkServiceImpl(FollowManagerInternal followManager, ConfluenceUserResolver confluenceUserResolver, PersonFactory personFactory)
-
-
Method Detail
-
getFollowers
public PageResponse<User> getFollowers(com.atlassian.sal.api.user.UserKey userKey, PageRequest request) throws NotFoundException
Description copied from interface:NetworkService
Gets the users who are following the given user.- Specified by:
getFollowers
in interfaceNetworkService
- Parameters:
userKey
- - the key of the user being followed- Returns:
- a page containing users who are following the given user.
- Throws:
NotFoundException
- if the given user does not exist
-
getFollowing
public PageResponse<User> getFollowing(com.atlassian.sal.api.user.UserKey userKey, PageRequest request) throws NotFoundException
Description copied from interface:NetworkService
Gets the users that the given user is following.- Specified by:
getFollowing
in interfaceNetworkService
- Parameters:
userKey
- - the key of the user following other users.- Returns:
- a page containing users followed by the given user.
- Throws:
NotFoundException
- if the given user does not exist
-
-