|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.dao.support.DaoSupport org.springframework.orm.hibernate.support.HibernateDaoSupport com.atlassian.confluence.follow.persistence.dao.hibernate.HibernateConnectionDao
public class HibernateConnectionDao
Field Summary |
---|
Fields inherited from class org.springframework.dao.support.DaoSupport |
---|
logger |
Constructor Summary | |
---|---|
HibernateConnectionDao()
|
Method Summary | |
---|---|
void |
followUser(com.atlassian.user.User follower,
com.atlassian.user.User followee)
Sets the follower to follow the specified user. |
java.util.List<java.lang.String> |
getFollowees(com.atlassian.user.User follower)
Returns a list of usernames for the users that the specified user is following |
java.util.List<java.lang.String> |
getFollowers(com.atlassian.user.User followee)
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. |
Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
---|
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory |
Methods inherited from class org.springframework.dao.support.DaoSupport |
---|
afterPropertiesSet, initDao |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HibernateConnectionDao()
Method Detail |
---|
public java.util.List<java.lang.String> getFollowers(com.atlassian.user.User followee)
ConnectionDao
getFollowers
in interface ConnectionDao
followee
- the user to check for followers
public java.util.List<java.lang.String> getFollowees(com.atlassian.user.User follower)
ConnectionDao
getFollowees
in interface ConnectionDao
follower
- the username
public boolean isUserFollowing(com.atlassian.user.User follower, com.atlassian.user.User followee)
ConnectionDao
isUserFollowing
in interface ConnectionDao
follower
- the proposed followerfollowee
- the proposed followee
public 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 user
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |