Uses of Class
model.validation.CommentExists
-
Packages that use CommentExists Package Description model.validation Package contenente validatori (JSR-380 compliant) riguardanti le entitàusecase.comment Package contenente la logica relativa ai commentiusecase.vote Package contenente la logica relativa ai voti -
-
Uses of CommentExists in model.validation
Methods in model.validation with parameters of type CommentExists Modifier and Type Method Description voidCommentExistsValidator. initialize(CommentExists constraintAnnotation) -
Uses of CommentExists in usecase.comment
Method parameters in usecase.comment with annotations of type CommentExists Modifier and Type Method Description voidCommentService. delete(int id)Cancella un commento dato il suo idvoidCommentService. editComment(int id, @NotBlank @Size(max=65535) String text)Modifica un commento dato il suo idCommentDTOCommentService. getComment(int id)Ritorna un commento dato il suo idMap<Integer,List<CommentDTO>>CommentService. getReplies(int commentId)Ritorna una mappa la cui chiave è l'id del commento padre e il valore una lista di CommentDTOintCommentService. newCommentReply(@NotBlank @Size(max=65535) String text, int parentCommentId)Crea una risposta a un commento e ne restituisce l'id -
Uses of CommentExists in usecase.vote
Method parameters in usecase.vote with annotations of type CommentExists Modifier and Type Method Description voidVoteService. downvoteComment(int id)Aggiunge un voto negativo ad un commentovoidVoteService. unvoteComment(int id)Rimuove il voto ad un commentovoidVoteService. upvoteComment(int id)Aggiunge un voto positivo ad un commento
-