public abstract class FollowManagementBase extends Object implements FollowManagement
Spring Service base class for com.communote.server.service.follow.FollowManagement,
provides access to all services and entities referenced by this service.
FollowManagement| Constructor and Description |
|---|
FollowManagementBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
followBlog(Long blogId)
Adds the specified blog/topic to the followed items of the current user.
|
void |
followDiscussion(Long discussionId)
Adds the discussion with the specified ID to the followed items of the current user.
|
void |
followDiscussionByNoteId(Long noteId)
Adds the discussion of the specified note to the followed items of the current user.
|
boolean |
followsBlog(Long blogId)
Returns whether the current user follows the blog.
|
boolean |
followsDiscussion(Long discussionId)
Returns true if the current user follows the discussion, otherwise false.
|
boolean |
followsUser(Long userId)
Returns whether the current user follows the user.
|
void |
followTag(Long tagId)
Adds the specified tag to the followed items of the current user.
|
void |
followUser(Long userId)
Adds the specified user to the followed items of the current user.
|
protected abstract void |
handleFollowBlog(Long blogId)
Performs the core logic for
followBlog(Long) |
protected abstract void |
handleFollowDiscussion(Long discussionId)
Performs the core logic for
followDiscussion(Long) |
protected abstract void |
handleFollowDiscussionByNoteId(Long noteId)
Performs the core logic for
followDiscussionByNoteId(Long) |
protected abstract boolean |
handleFollowsBlog(Long blogId)
Performs the core logic for
followsBlog(Long) |
protected abstract boolean |
handleFollowsDiscussion(Long discussionId)
Performs the core logic for
followsDiscussion(Long) |
protected abstract boolean |
handleFollowsUser(Long userId)
Performs the core logic for
followsUser(Long) |
protected abstract void |
handleFollowTag(Long tagId)
Performs the core logic for
followTag(Long) |
protected abstract void |
handleFollowUser(Long userId)
Performs the core logic for
followUser(Long) |
protected abstract void |
handleUnfollowBlog(Long blogId)
Performs the core logic for
unfollowBlog(Long) |
protected abstract void |
handleUnfollowDiscussion(Long discussionId)
Performs the core logic for
unfollowDiscussion(Long) |
protected abstract void |
handleUnfollowDiscussionByNoteId(Long noteId)
Performs the core logic for
unfollowDiscussionByNoteId(Long) |
protected abstract void |
handleUnfollowTag(Long tagId)
Performs the core logic for
unfollowTag(Long) |
protected abstract void |
handleUnfollowUser(Long userId)
Performs the core logic for
unfollowUser(Long) |
void |
unfollowBlog(Long blogId)
Removes the specified blog/topic from the followed items of the current user.
|
void |
unfollowDiscussion(Long discussionId)
Removes the discussion with the specified ID from the followed items of the current user.
|
void |
unfollowDiscussionByNoteId(Long noteId)
Removes the discussion of the specified note from the followed items of the current user.
|
void |
unfollowTag(Long tagId)
Removes the specified tag from the followed items of the current user.
|
void |
unfollowUser(Long userId)
Removes the specified user from the followed items of the current user.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfollowsTag, tagRemovedpublic void followBlog(Long blogId) throws NotFoundException, BlogAccessException
FollowManagementfollowBlog in interface FollowManagementblogId - the ID of the topic to followNotFoundException - in case the topic does not existBlogAccessException - in case the current user has no read access to the topic{@inheritDoc}public void followDiscussion(Long discussionId) throws BlogAccessException, NotFoundException
followDiscussion in interface FollowManagementdiscussionId - the ID of the discussion to followBlogAccessException - in case the current user has no read access to the topic of the discussion or the
discussionNotFoundException - in case the discussion does not existFollowManagement.followDiscussion(Long)public void followDiscussionByNoteId(Long noteId) throws NotFoundException, BlogAccessException
followDiscussionByNoteId in interface FollowManagementnoteId - the ID of the note whose discussion should be followedNotFoundException - in case the discussion does not existBlogAccessException - in case the current user has no read access to the topic of the discussion or the
discussionFollowManagement.followDiscussionByNoteId(Long)@Transactional(readOnly=true) public boolean followsBlog(Long blogId)
followsBlog in interface FollowManagementblogId - the ID of the blogFollowManagement.followsBlog(Long)@Transactional(readOnly=true) public boolean followsDiscussion(Long discussionId)
followsDiscussion in interface FollowManagementdiscussionId - the ID of the discussionFollowManagement.followsDiscussion(Long)@Transactional(readOnly=true) public boolean followsUser(Long userId)
followsUser in interface FollowManagementuserId - the ID of the userFollowManagement.followsUser(Long)public void followTag(Long tagId) throws NotFoundException
followTag in interface FollowManagementtagId - the ID of the tag to followNotFoundException - in case the tag does not existFollowManagement.followTag(Long)public void followUser(Long userId) throws NotFoundException
followUser in interface FollowManagementuserId - ID of the user to followNotFoundException - in case the user does not existFollowManagement.followUser(Long)protected abstract void handleFollowBlog(Long blogId) throws NotFoundException, BlogAccessException
followBlog(Long)NotFoundExceptionBlogAccessExceptionprotected abstract void handleFollowDiscussion(Long discussionId) throws BlogAccessException, NotFoundException
followDiscussion(Long)BlogAccessExceptionNotFoundExceptionprotected abstract void handleFollowDiscussionByNoteId(Long noteId) throws NotFoundException, BlogAccessException
followDiscussionByNoteId(Long)NotFoundExceptionBlogAccessExceptionprotected abstract boolean handleFollowsBlog(Long blogId)
followsBlog(Long)protected abstract boolean handleFollowsDiscussion(Long discussionId)
followsDiscussion(Long)protected abstract boolean handleFollowsUser(Long userId)
followsUser(Long)protected abstract void handleFollowTag(Long tagId) throws NotFoundException
followTag(Long)NotFoundExceptionprotected abstract void handleFollowUser(Long userId) throws NotFoundException
followUser(Long)NotFoundExceptionprotected abstract void handleUnfollowBlog(Long blogId)
unfollowBlog(Long)protected abstract void handleUnfollowDiscussion(Long discussionId)
unfollowDiscussion(Long)protected abstract void handleUnfollowDiscussionByNoteId(Long noteId)
unfollowDiscussionByNoteId(Long)protected abstract void handleUnfollowTag(Long tagId)
unfollowTag(Long)protected abstract void handleUnfollowUser(Long userId)
unfollowUser(Long)public void unfollowBlog(Long blogId)
unfollowBlog in interface FollowManagementblogId - the ID of the topic to unfollowFollowManagement.unfollowBlog(Long)public void unfollowDiscussion(Long discussionId)
unfollowDiscussion in interface FollowManagementdiscussionId - the ID of the discussion to unfollowFollowManagement.unfollowDiscussion(Long)public void unfollowDiscussionByNoteId(Long noteId)
unfollowDiscussionByNoteId in interface FollowManagementnoteId - the ID of the note whose discussion should be unfollowedFollowManagement.unfollowDiscussionByNoteId(Long)public void unfollowTag(Long tagId)
unfollowTag in interface FollowManagementtagId - the ID of the tag to unfollowFollowManagement.unfollowTag(Long)public void unfollowUser(Long userId)
unfollowUser in interface FollowManagementuserId - ID of the user to followFollowManagement.unfollowUser(Long)Copyright © 2019 Communote team. All rights reserved.