public interface

ConnectionDao

com.atlassian.confluence.follow.persistence.dao.ConnectionDao
Known Indirect Subclasses

Class Overview

DAO for connections between followers and followees.

Summary

Public Methods
abstract void followUser(User follower, User followee)
Sets the follower to follow the specified user.
abstract List<String> getFollowees(User follower)
Returns a list of usernames for the users that the specified user is following
abstract List<String> getFollowers(User followee)
Returns a list of users that are followers of the specified user
abstract boolean isUserFollowing(User follower, User followee)
True if the follower is following the followee
abstract void removeAllConnectionsFor(User user)
Removes all connections for this user (as a follower and as a followee).
abstract void unfollowUser(User follower, User followee)
Unsets the follower from following the specified user.

Public Methods

public abstract void followUser (User follower, User 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 follower
followee the new followee

public abstract List<String> getFollowees (User follower)

Returns a list of usernames for the users that the specified user is following

Parameters
follower the username
Returns
  • a list of usernames

public abstract List<String> getFollowers (User followee)

Returns a list of users that are followers of the specified user

Parameters
followee the user to check for followers
Returns
  • a list of usernames

public abstract boolean isUserFollowing (User follower, User followee)

True if the follower is following the followee

Parameters
follower the proposed follower
followee the proposed followee
Returns
  • true if the follower is following the followee

public abstract void removeAllConnectionsFor (User user)

Removes all connections for this user (as a follower and as a followee).

Parameters
user the user

public abstract void unfollowUser (User follower, 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 follower
followee the new followee