com.atlassian.confluence.api.impl.service.network
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 the NetworkService
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NetworkServiceImpl
public NetworkServiceImpl(FollowManagerInternal followManager,
UserAccessor userAccessor,
PersonFactory personFactory)
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 interface NetworkService
- 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 interface NetworkService
- 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
Copyright © 2003–2015 Atlassian. All rights reserved.