@Service(value="followManagement") public class FollowManagementImpl extends FollowManagementBase
FollowManagement| Constructor and Description |
|---|
FollowManagementImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
followsTag(Long tagId)
Returns true if the current user follows the tag, otherwise false.
|
protected void |
handleFollowBlog(Long blogId)
Performs the core logic for
FollowManagementBase.followBlog(Long) |
protected void |
handleFollowDiscussion(Long discussionId)
Performs the core logic for
FollowManagementBase.followDiscussion(Long) |
protected void |
handleFollowDiscussionByNoteId(Long noteId)
Performs the core logic for
FollowManagementBase.followDiscussionByNoteId(Long) |
protected boolean |
handleFollowsBlog(Long blogId)
Performs the core logic for
FollowManagementBase.followsBlog(Long) |
protected boolean |
handleFollowsDiscussion(Long discussionId)
Performs the core logic for
FollowManagementBase.followsDiscussion(Long) |
protected boolean |
handleFollowsUser(Long userId)
Performs the core logic for
FollowManagementBase.followsUser(Long) |
protected void |
handleFollowTag(Long tagId)
Performs the core logic for
FollowManagementBase.followTag(Long) |
protected void |
handleFollowUser(Long userId)
Performs the core logic for
FollowManagementBase.followUser(Long) |
protected void |
handleUnfollowBlog(Long blogId)
Performs the core logic for
FollowManagementBase.unfollowBlog(Long) |
protected void |
handleUnfollowDiscussion(Long discusssionId)
Performs the core logic for
FollowManagementBase.unfollowDiscussion(Long) |
protected void |
handleUnfollowDiscussionByNoteId(Long noteId)
Performs the core logic for
FollowManagementBase.unfollowDiscussionByNoteId(Long) |
protected void |
handleUnfollowTag(Long tagId)
Performs the core logic for
FollowManagementBase.unfollowTag(Long) |
protected void |
handleUnfollowUser(Long userId)
Performs the core logic for
FollowManagementBase.unfollowUser(Long) |
void |
tagRemoved(Long removedTagId,
Long newTagId,
List<Long> followers)
Method to be called after a tag has been removed or merged with another tag.
|
followBlog, followDiscussion, followDiscussionByNoteId, followsBlog, followsDiscussion, followsUser, followTag, followUser, unfollowBlog, unfollowDiscussion, unfollowDiscussionByNoteId, unfollowTag, unfollowUserpublic boolean followsTag(Long tagId)
tagId - The ID of the tag.protected void handleFollowBlog(Long blogId) throws NotFoundException, BlogAccessException
FollowManagementBase.followBlog(Long)handleFollowBlog in class FollowManagementBaseNotFoundExceptionBlogAccessExceptionprotected void handleFollowDiscussion(Long discussionId) throws NotFoundException, BlogAccessException
FollowManagementBase.followDiscussion(Long)handleFollowDiscussion in class FollowManagementBaseNotFoundExceptionBlogAccessExceptionprotected void handleFollowDiscussionByNoteId(Long noteId) throws NotFoundException, BlogAccessException
FollowManagementBase.followDiscussionByNoteId(Long)handleFollowDiscussionByNoteId in class FollowManagementBaseNotFoundExceptionBlogAccessExceptionprotected boolean handleFollowsBlog(Long blogId)
FollowManagementBase.followsBlog(Long)handleFollowsBlog in class FollowManagementBaseprotected boolean handleFollowsDiscussion(Long discussionId)
FollowManagementBase.followsDiscussion(Long)handleFollowsDiscussion in class FollowManagementBaseprotected boolean handleFollowsUser(Long userId)
FollowManagementBase.followsUser(Long)handleFollowsUser in class FollowManagementBaseprotected void handleFollowTag(Long tagId) throws NotFoundException
FollowManagementBase.followTag(Long)handleFollowTag in class FollowManagementBaseNotFoundExceptionprotected void handleFollowUser(Long userId) throws NotFoundException
FollowManagementBase.followUser(Long)handleFollowUser in class FollowManagementBaseNotFoundExceptionprotected void handleUnfollowBlog(Long blogId)
FollowManagementBase.unfollowBlog(Long)handleUnfollowBlog in class FollowManagementBaseprotected void handleUnfollowDiscussion(Long discusssionId)
FollowManagementBase.unfollowDiscussion(Long)handleUnfollowDiscussion in class FollowManagementBaseprotected void handleUnfollowDiscussionByNoteId(Long noteId)
FollowManagementBase.unfollowDiscussionByNoteId(Long)handleUnfollowDiscussionByNoteId in class FollowManagementBaseprotected void handleUnfollowTag(Long tagId)
FollowManagementBase.unfollowTag(Long)handleUnfollowTag in class FollowManagementBaseprotected void handleUnfollowUser(Long userId)
FollowManagementBase.unfollowUser(Long)handleUnfollowUser in class FollowManagementBasepublic void tagRemoved(Long removedTagId, Long newTagId, List<Long> followers) throws AuthorizationException, TagNotFoundException
FollowManagementremovedTagId - the ID of the removed tagnewTagId - the ID of the tag the old tag was merged into, can be nullfollowers - the IDs of the users that followed the old tagAuthorizationException - in case the calling user is not the internal system userTagNotFoundException - in case newTagId is not null but there is no tag for that IDCopyright © 2019 Communote team. All rights reserved.