public class DefaultFollowManager extends Object implements FollowManagerInternal
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultFollowManager.UserCanUseConfluencePredicate |
| Constructor and Description |
|---|
DefaultFollowManager(ConnectionDao connectionDao,
SpacePermissionManager spacePermissionManager,
com.atlassian.event.api.EventPublisher eventPublisher,
PaginationServiceInternal paginationService) |
| Modifier and Type | Method and Description |
|---|---|
void |
followUser(ConfluenceUser follower,
ConfluenceUser followee)
Sets the follower to follow the specified user.
|
void |
followUser(com.atlassian.user.User follower,
com.atlassian.user.User followee)
Deprecated.
since 5.2. Use
followUser(ConfluenceUser, ConfluenceUser) instead. |
<T> Paginated<T> |
getFollowers(ConfluenceUser user,
PaginationQuery<ConfluenceUser,T> query)
Constructs a new Paginated response containing the followers of specified user, limited and converted by the
given PaginationQuery.
|
List<String> |
getFollowers(com.atlassian.user.User user)
Deprecated.
since 5.6. Use the new paged alternatives in FollowManagerInternal, or consider using the new NetworkService.
|
Set<ConfluenceUser> |
getFollowing(ConfluenceUser user)
Deprecated.
since 5.6. Use the new paged alternatives in FollowManagerInternal, or consider using the new NetworkService.
|
<T> Paginated<T> |
getFollowing(ConfluenceUser user,
PaginationQuery<ConfluenceUser,T> query)
Returns a list of users that the specified user is following, limited and converted by the given PaginationQuery.
|
List<String> |
getFollowing(com.atlassian.user.User user)
Deprecated.
since 5.2. Use the new paged alternatives in FollowManagerInternal, or consider using the new NetworkService.
|
boolean |
isUserFollowing(com.atlassian.user.User follower,
com.atlassian.user.User followee)
True if the follower is following the followee
|
void |
removeAllConnectionsFor(com.atlassian.user.User user)
Removes all connections for this user (as a follower and as a followee).
|
void |
setUserAccessor(UserAccessor userAccessor) |
void |
unfollowUser(com.atlassian.user.User follower,
com.atlassian.user.User followee)
Unsets the follower from following the specified user.
|
public DefaultFollowManager(ConnectionDao connectionDao, SpacePermissionManager spacePermissionManager, com.atlassian.event.api.EventPublisher eventPublisher, PaginationServiceInternal paginationService)
@Deprecated public List<String> getFollowers(com.atlassian.user.User user)
FollowManagergetFollowers in interface FollowManageruser - the user to check for followerscom.atlassian.confluence.internal.follow.FollowManagerInternal#getFollowers(com.atlassian.confluence.user.ConfluenceUser, com.atlassian.confluence.api.impl.pagination.PaginationQuery)},
com.atlassian.confluence.api.service.network.NetworkService}@Deprecated public Set<ConfluenceUser> getFollowing(ConfluenceUser user)
FollowManagergetFollowing in interface FollowManageruser - the usernamecom.atlassian.confluence.internal.follow.FollowManagerInternal#getFollowing(com.atlassian.confluence.user.ConfluenceUser, com.atlassian.confluence.api.impl.pagination.PaginationQuery)},
com.atlassian.confluence.api.service.network.NetworkService}@Deprecated public List<String> getFollowing(com.atlassian.user.User user)
FollowManagergetFollowing in interface FollowManageruser - the usernamecom.atlassian.confluence.internal.follow.FollowManagerInternal#getFollowing(com.atlassian.confluence.user.ConfluenceUser, com.atlassian.confluence.api.impl.pagination.PaginationQuery)},
com.atlassian.confluence.api.service.network.NetworkService}public boolean isUserFollowing(com.atlassian.user.User follower,
com.atlassian.user.User followee)
FollowManagerisUserFollowing in interface FollowManagerfollower - the proposed followerfollowee - the proposed followeepublic void followUser(ConfluenceUser follower, ConfluenceUser followee)
FollowManagerfollowUser in interface FollowManagerfollower - the followerfollowee - the new followee@Deprecated public void followUser(com.atlassian.user.User follower, com.atlassian.user.User followee)
followUser(ConfluenceUser, ConfluenceUser) instead.followUser in interface FollowManagerpublic void unfollowUser(com.atlassian.user.User follower,
com.atlassian.user.User followee)
FollowManagerunfollowUser in interface FollowManagerfollower - the followerfollowee - the new followeepublic void removeAllConnectionsFor(com.atlassian.user.User user)
FollowManagerremoveAllConnectionsFor in interface FollowManageruser - the userpublic <T> Paginated<T> getFollowers(ConfluenceUser user, PaginationQuery<ConfluenceUser,T> query)
FollowManagerInternalNOTE: this method will implicitly add a Predicate filtering results to ConfluenceUsers that are permitted to use Confluence.
getFollowers in interface FollowManagerInternaluser - the user to check for followersquery - a constructed PaginationQuery containing optional predicates and model conversion strategy.public <T> Paginated<T> getFollowing(ConfluenceUser user, PaginationQuery<ConfluenceUser,T> query)
FollowManagerInternalgetFollowing in interface FollowManagerInternaluser - the user to check for followeesquery - a constructed PaginationQuery containing optional predicates and model conversion strategy.public void setUserAccessor(UserAccessor userAccessor)
Copyright © 2003–2019 Atlassian. All rights reserved.