Class ServicePostInteraction
java.lang.Object
com.serinity.forumcontrol.service.ServicePostInteraction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(PostInteraction interaction) voiddelete(int id) voidvoiddeleteByThread(int threadId) voidvoidgetInteraction(int threadId, String userId) intgetUserVote(int threadId, String userId) booleanhasDownvoted(int threadId, String userId) booleanhasUpvoted(int threadId, String userId) booleanisFollowing(int threadId, String userId) voidrecalculateThreadCounts(int threadId) voidremoveVote(int threadId, String userId) voidtoggleDownvote(int threadId, String userId) voidtoggleFollow(int threadId, String userId) voidtoggleUpvote(int threadId, String userId) voidvoidupdate(PostInteraction interaction) voidupdateWithAutoDelete(PostInteraction interaction) void
-
Constructor Details
-
ServicePostInteraction
public ServicePostInteraction()
-
-
Method Details
-
upvote
-
downvote
-
removeVote
-
toggleUpvote
-
toggleDownvote
-
getUserVote
-
hasUpvoted
-
hasDownvoted
-
follow
-
unfollow
-
toggleFollow
-
isFollowing
-
recalculateThreadCounts
public void recalculateThreadCounts(int threadId) -
add
-
updateWithAutoDelete
-
update
-
delete
public void delete(int id) -
delete
-
getInteraction
-
deleteByThread
public void deleteByThread(int threadId)
-