Class NetworkServiceImpl
java.lang.Object
com.atlassian.confluence.api.impl.service.network.NetworkServiceImpl
- All Implemented Interfaces:
NetworkService
Server implementation of the
NetworkService
.-
Constructor Summary
ConstructorsConstructorDescriptionNetworkServiceImpl
(FollowManagerInternal followManager, ConfluenceUserResolver confluenceUserResolver, PersonFactory personFactory) -
Method Summary
Modifier and TypeMethodDescriptiongetFollowers
(com.atlassian.sal.api.user.UserKey userKey, PageRequest request) Gets the users who are following the given user.getFollowing
(com.atlassian.sal.api.user.UserKey userKey, PageRequest request) Gets the users that the given user is following.
-
Constructor Details
-
NetworkServiceImpl
public NetworkServiceImpl(FollowManagerInternal followManager, ConfluenceUserResolver confluenceUserResolver, PersonFactory personFactory)
-
-
Method Details
-
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
-