public class HibernateConnectionDao extends Object implements ConnectionDao
Constructor and Description |
---|
HibernateConnectionDao(org.hibernate.SessionFactory sessionFactory) |
Modifier and Type | Method and Description |
---|---|
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)
Deprecated.
|
PageResponse<ConfluenceUser> |
getFollowers(ConfluenceUser followee,
LimitedRequest limitedRequest,
com.google.common.base.Predicate<ConfluenceUser> predicate)
Deprecated.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFilteredFollowees, getFilteredFollowers
public HibernateConnectionDao(org.hibernate.SessionFactory sessionFactory)
@Deprecated public PageResponse<ConfluenceUser> getFollowers(ConfluenceUser followee, LimitedRequest limitedRequest, com.google.common.base.Predicate<ConfluenceUser> predicate)
ConnectionDao.getFilteredFollowers(ConfluenceUser, LimitedRequest, java.util.function.Predicate)
ConnectionDao
getFollowers
in interface ConnectionDao
followee
- the user to check for followers@Deprecated public PageResponse<ConfluenceUser> getFollowees(ConfluenceUser follower, LimitedRequest limitedRequest, com.google.common.base.Predicate<ConfluenceUser> predicate)
ConnectionDao.getFilteredFollowees(ConfluenceUser, LimitedRequest, java.util.function.Predicate)
ConnectionDao
getFollowees
in interface ConnectionDao
follower
- the usernamepublic boolean isUserFollowing(com.atlassian.user.User follower, com.atlassian.user.User followee)
ConnectionDao
isUserFollowing
in interface ConnectionDao
follower
- the proposed followerfollowee
- the proposed followeepublic void followUser(com.atlassian.user.User follower, com.atlassian.user.User followee)
ConnectionDao
followUser
in interface ConnectionDao
follower
- the followerfollowee
- the new followeepublic void unfollowUser(com.atlassian.user.User follower, com.atlassian.user.User followee)
ConnectionDao
unfollowUser
in interface ConnectionDao
follower
- the followerfollowee
- the new followeepublic void removeAllConnectionsFor(com.atlassian.user.User user)
ConnectionDao
removeAllConnectionsFor
in interface ConnectionDao
user
- the userCopyright © 2003–2019 Atlassian. All rights reserved.