Class ServiceThread

java.lang.Object
com.serinity.forumcontrol.service.ServiceThread
All Implemented Interfaces:
Services<Thread>

public class ServiceThread extends Object implements Services<Thread>
  • Constructor Details

    • ServiceThread

      public ServiceThread()
  • Method Details

    • add

      public void add(Thread thread)
      Specified by:
      add in interface Services<Thread>
    • getAll

      public List<Thread> getAll()
      Specified by:
      getAll in interface Services<Thread>
    • getAll

      public List<Thread> getAll(String currentUserId)
    • getThreadBadge

      public String getThreadBadge(long threadId)
    • update

      public void update(Thread thread)
      Specified by:
      update in interface Services<Thread>
    • delete

      public void delete(Thread thread)
      Specified by:
      delete in interface Services<Thread>
    • getById

      public Thread getById(long id)
    • updateStatus

      public void updateStatus(long threadId, ThreadStatus status)
    • togglePin

      public void togglePin(long threadId)
    • isOwner

      public boolean isOwner(long threadId, String userId)
    • getAuthor

      public String getAuthor(String userId)
    • istherapist

      public boolean istherapist(String userId)
    • getCategory

      public String getCategory(long CategoryId)
    • updateThreadCommentCount

      public void updateThreadCommentCount(long threadId, int change)
    • updateThreadVoteCounts

      public void updateThreadVoteCounts(int threadId, int oldVote, int newVote)
    • updateThreadFollowCount

      public void updateThreadFollowCount(int threadId, boolean wasFollowing, boolean isFollowing)