Class HibernateConnectionDao
- java.lang.Object
-
- com.atlassian.confluence.follow.persistence.dao.hibernate.HibernateConnectionDao
-
- All Implemented Interfaces:
ConnectionDao
public class HibernateConnectionDao extends Object implements ConnectionDao
-
-
Constructor Summary
Constructors Constructor Description HibernateConnectionDao(org.hibernate.SessionFactory sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidfollowUser(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.since 7.0.1.PageResponse<ConfluenceUser>getFollowers(ConfluenceUser followee, LimitedRequest limitedRequest, com.google.common.base.Predicate<ConfluenceUser> predicate)Deprecated.since 7.0.1.booleanisUserFollowing(com.atlassian.user.User follower, com.atlassian.user.User followee)True if the follower is following the followeevoidremoveAllConnectionsFor(com.atlassian.user.User user)Removes all connections for this user (as a follower and as a followee).voidunfollowUser(com.atlassian.user.User follower, com.atlassian.user.User followee)Unsets the follower from following the specified user.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.follow.persistence.dao.ConnectionDao
getFilteredFollowees, getFilteredFollowers
-
-
-
-
Method Detail
-
getFollowers
@Deprecated public PageResponse<ConfluenceUser> getFollowers(ConfluenceUser followee, LimitedRequest limitedRequest, com.google.common.base.Predicate<ConfluenceUser> predicate)
Deprecated.Description copied from interface:ConnectionDaoReturns a list of users that are followers of the specified user- Specified by:
getFollowersin interfaceConnectionDao- Parameters:
followee- the user to check for followers- Returns:
- a list of usernames
-
getFollowees
@Deprecated public PageResponse<ConfluenceUser> getFollowees(ConfluenceUser follower, LimitedRequest limitedRequest, com.google.common.base.Predicate<ConfluenceUser> predicate)
Deprecated.Description copied from interface:ConnectionDaoReturns a list of usernames for the users that the specified user is following- Specified by:
getFolloweesin interfaceConnectionDao- Parameters:
follower- the username- Returns:
- a list of usernames
-
isUserFollowing
public boolean isUserFollowing(com.atlassian.user.User follower, com.atlassian.user.User followee)Description copied from interface:ConnectionDaoTrue if the follower is following the followee- Specified by:
isUserFollowingin interfaceConnectionDao- Parameters:
follower- the proposed followerfollowee- the proposed followee- Returns:
- true if the follower is following the followee
-
followUser
public void followUser(com.atlassian.user.User follower, com.atlassian.user.User followee)Description copied from interface:ConnectionDaoSets the follower to follow the specified user. If the follow is alreading following the followee then this method does nothing.- Specified by:
followUserin interfaceConnectionDao- Parameters:
follower- the followerfollowee- the new followee
-
unfollowUser
public void unfollowUser(com.atlassian.user.User follower, com.atlassian.user.User followee)Description copied from interface:ConnectionDaoUnsets the follower from following the specified user. If the follow is not following the followee then this method does nothing.- Specified by:
unfollowUserin interfaceConnectionDao- Parameters:
follower- the followerfollowee- the new followee
-
removeAllConnectionsFor
public void removeAllConnectionsFor(com.atlassian.user.User user)
Description copied from interface:ConnectionDaoRemoves all connections for this user (as a follower and as a followee).- Specified by:
removeAllConnectionsForin interfaceConnectionDao- Parameters:
user- the user
-
-