|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConnectionDao
DAO for connections between followers and followees.
Method Summary | |
---|---|
void |
followUser(com.atlassian.user.User follower,
com.atlassian.user.User followee)
Sets the follower to follow the specified user. |
PageResponse<ConfluenceUser> |
getFollowees(ConfluenceUser follower,
LimitedRequest limitedRequest,
com.google.common.base.Predicate<ConfluenceUser> predicate)
Returns a list of usernames for the users that the specified user is following |
PageResponse<ConfluenceUser> |
getFollowers(ConfluenceUser followee,
LimitedRequest limitedRequest,
com.google.common.base.Predicate<ConfluenceUser> predicate)
Returns a list of users that are followers of the specified user |
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 |
unfollowUser(com.atlassian.user.User follower,
com.atlassian.user.User followee)
Unsets the follower from following the specified user. |
Method Detail |
---|
PageResponse<ConfluenceUser> getFollowers(ConfluenceUser followee, LimitedRequest limitedRequest, com.google.common.base.Predicate<ConfluenceUser> predicate)
followee
- the user to check for followers
PageResponse<ConfluenceUser> getFollowees(ConfluenceUser follower, LimitedRequest limitedRequest, com.google.common.base.Predicate<ConfluenceUser> predicate)
follower
- the username
boolean isUserFollowing(com.atlassian.user.User follower, com.atlassian.user.User followee)
follower
- the proposed followerfollowee
- the proposed followee
void followUser(com.atlassian.user.User follower, com.atlassian.user.User followee)
follower
- the followerfollowee
- the new followeevoid unfollowUser(com.atlassian.user.User follower, com.atlassian.user.User followee)
follower
- the followerfollowee
- the new followeevoid removeAllConnectionsFor(com.atlassian.user.User user)
user
- the user
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |