public interface CommentService extends BaseFinder<Comment,Long>
Modifier and Type | Method and Description |
---|---|
boolean |
canUserAddComment(String processId,
String activityId,
String userId)
Sprawdza, czy użytkownik może dodać komentarz do podanego zadania
|
Long |
createComment(Comment comment)
Tworzy komentarz z wywołaniem eventów
|
Long |
createComment(Comment comment,
boolean fireEvent)
Tworzy komentarz
|
void |
deleteById(Long commentId)
Usuwa komentarz o podanym id
|
List<Comment> |
getCommentsForActivity(String activityId)
Pobiera komentarze dla konkretnego zadania
|
List<Comment> |
getCommentsForProcess(String processId)
Pobiera wszystkie komentarze dla procesu
|
count, countAll, findByCriteria, findByCriteria, findByProperty, findOne, findOneByProperty, get, get, getAll, getAll, getCountedResult, getCountedResult, scrollByCriteria, scrollByCriteria
List<Comment> getCommentsForProcess(String processId)
processId
- Id procesuvoid deleteById(Long commentId)
commentId
- Id komentarzaList<Comment> getCommentsForActivity(String activityId)
activityId
- Id zadaniaLong createComment(Comment comment)
comment
- Definicja komentarzaLong createComment(Comment comment, boolean fireEvent)
comment
- Definicja komentarzafireEvent
- Określa, czy wywoływać eventy przed i po dodaniu komentarza. True - eventy są wywoływane, false
- nie są wywoływane.Copyright © 2025 Suncode. All rights reserved.