|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.follow.DefaultFollowManager
public class DefaultFollowManager
Constructor Summary | |
---|---|
DefaultFollowManager(ConnectionDao connectionDao,
SpacePermissionManager spacePermissionManager,
com.atlassian.event.api.EventPublisher eventPublisher)
|
Method Summary | |
---|---|
void |
followUser(ConfluenceUser follower,
ConfluenceUser followee)
Sets the follower to follow the specified user. |
void |
followUser(com.atlassian.user.User follower,
com.atlassian.user.User followee)
Deprecated. |
java.util.List<java.lang.String> |
getFollowers(com.atlassian.user.User user)
Returns a list of users that are followers of the specified user |
java.util.Set<ConfluenceUser> |
getFollowing(ConfluenceUser user)
Returns a list of usernames for the users that the specified user is following |
java.util.List<java.lang.String> |
getFollowing(com.atlassian.user.User user)
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 |
setSpacePermissionManager(SpacePermissionManager spacePermissionManager)
|
void |
setUserAccessor(UserAccessor userAccessor)
|
void |
unfollowUser(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 |
Constructor Detail |
---|
public DefaultFollowManager(ConnectionDao connectionDao, SpacePermissionManager spacePermissionManager, com.atlassian.event.api.EventPublisher eventPublisher)
Method Detail |
---|
public java.util.List<java.lang.String> getFollowers(com.atlassian.user.User user)
FollowManager
getFollowers
in interface FollowManager
user
- the user to check for followers
public java.util.Set<ConfluenceUser> getFollowing(ConfluenceUser user)
FollowManager
getFollowing
in interface FollowManager
user
- the username
@Deprecated public java.util.List<java.lang.String> getFollowing(com.atlassian.user.User user)
FollowManager
getFollowing
in interface FollowManager
user
- the username
public boolean isUserFollowing(com.atlassian.user.User follower, com.atlassian.user.User followee)
FollowManager
isUserFollowing
in interface FollowManager
follower
- the proposed followerfollowee
- the proposed followee
public void followUser(ConfluenceUser follower, ConfluenceUser followee)
FollowManager
followUser
in interface FollowManager
follower
- the followerfollowee
- the new followee@Deprecated public void followUser(com.atlassian.user.User follower, com.atlassian.user.User followee)
followUser
in interface FollowManager
public void unfollowUser(com.atlassian.user.User follower, com.atlassian.user.User followee)
FollowManager
unfollowUser
in interface FollowManager
follower
- the followerfollowee
- the new followeepublic void removeAllConnectionsFor(com.atlassian.user.User user)
FollowManager
removeAllConnectionsFor
in interface FollowManager
user
- the userpublic void setSpacePermissionManager(SpacePermissionManager spacePermissionManager)
public void setUserAccessor(UserAccessor userAccessor)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |