Class ServicePostInteraction

java.lang.Object
com.serinity.forumcontrol.service.ServicePostInteraction

public class ServicePostInteraction extends Object
  • Constructor Details

    • ServicePostInteraction

      public ServicePostInteraction()
  • Method Details

    • upvote

      public void upvote(int threadId, String userId)
    • downvote

      public void downvote(int threadId, String userId)
    • removeVote

      public void removeVote(int threadId, String userId)
    • toggleUpvote

      public void toggleUpvote(int threadId, String userId)
    • toggleDownvote

      public void toggleDownvote(int threadId, String userId)
    • getUserVote

      public int getUserVote(int threadId, String userId)
    • hasUpvoted

      public boolean hasUpvoted(int threadId, String userId)
    • hasDownvoted

      public boolean hasDownvoted(int threadId, String userId)
    • follow

      public void follow(int threadId, String userId)
    • unfollow

      public void unfollow(int threadId, String userId)
    • toggleFollow

      public void toggleFollow(int threadId, String userId)
    • isFollowing

      public boolean isFollowing(int threadId, String userId)
    • recalculateThreadCounts

      public void recalculateThreadCounts(int threadId)
    • add

      public void add(PostInteraction interaction)
    • updateWithAutoDelete

      public void updateWithAutoDelete(PostInteraction interaction)
    • update

      public void update(PostInteraction interaction)
    • delete

      public void delete(int id)
    • delete

      public void delete(int threadId, String userId)
    • getInteraction

      public PostInteraction getInteraction(int threadId, String userId)
    • deleteByThread

      public void deleteByThread(int threadId)