Interface CommentService

All Superinterfaces:
BaseFinder<Comment,Long>

public interface CommentService extends BaseFinder<Comment,Long>
Umożliwia zarządzanie komentarzami.
Author:
Paweł Rosolak 05-10-2012
  • Method Details

    • getCommentsForProcess

      List<Comment> getCommentsForProcess(String processId)
      Pobiera wszystkie komentarze dla procesu
      Parameters:
      processId - Id procesu
      Returns:
      Zwraca listę komentarzy
    • deleteById

      void deleteById(Long commentId)
      Usuwa komentarz o podanym id
      Parameters:
      commentId - Id komentarza
    • getCommentsForActivity

      List<Comment> getCommentsForActivity(String activityId)
      Pobiera komentarze dla konkretnego zadania
      Parameters:
      activityId - Id zadania
      Returns:
    • createComment

      Long createComment(Comment comment)
      Tworzy komentarz z wywołaniem eventów
      Parameters:
      comment - Definicja komentarza
      Returns:
      Id utworzonego komentarza
    • createComment

      Long createComment(Comment comment, boolean fireEvent)
      Tworzy komentarz
      Parameters:
      comment - Definicja komentarza
      fireEvent - Określa, czy wywoływać eventy przed i po dodaniu komentarza. True - eventy są wywoływane, false - nie są wywoływane.
      Returns:
      Id utworzonego komentarza
    • canUserAddComment

      boolean canUserAddComment(String processId, String activityId, String userId)
      Sprawdza, czy użytkownik może dodać komentarz do podanego zadania
      Parameters:
      processId - Id procesu
      activityId - Id zadania
      userId - Id użytkownika