Package com.atlassian.confluence.follow
Interface FollowManager
-
- All Known Subinterfaces:
FollowManagerInternal
- All Known Implementing Classes:
DefaultFollowManager
@Transactional public interface FollowManager
Manages the followers and followees of a user
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
followUser(ConfluenceUser follower, ConfluenceUser followee)
Sets the follower to follow the specified user.boolean
isUserFollowing(com.atlassian.user.User follower, com.atlassian.user.User followee)
True if the follower is following the followeevoid
removeAllConnectionsFor(com.atlassian.user.User user)
Removes all connections for this user (as a follower and as a followee).void
unfollowUser(com.atlassian.user.User follower, com.atlassian.user.User followee)
Unsets the follower from following the specified user.
-
-
-
Method Detail
-
isUserFollowing
@Transactional(readOnly=true) boolean isUserFollowing(com.atlassian.user.User follower, com.atlassian.user.User followee)
True if the follower is following the followee- Parameters:
follower
- the proposed followerfollowee
- the proposed followee- Returns:
- true if the follower is following the followee
-
followUser
void followUser(ConfluenceUser follower, ConfluenceUser followee)
Sets the follower to follow the specified user. If the follow is alreading following the followee then this method does nothing.- Parameters:
follower
- the followerfollowee
- the new followee- Since:
- 5.2
-
unfollowUser
void unfollowUser(com.atlassian.user.User follower, com.atlassian.user.User followee)
Unsets the follower from following the specified user. If the follow is not following the followee then this method does nothing.- Parameters:
follower
- the followerfollowee
- the new followee
-
removeAllConnectionsFor
void removeAllConnectionsFor(com.atlassian.user.User user)
Removes all connections for this user (as a follower and as a followee).- Parameters:
user
- the user
-
-