public class CommentService extends Object
| Modifier and Type | Method and Description |
|---|---|
static List<CommentDTO> |
buildCommentDTO(List<Comment> listComment) |
static Comment |
createAndNotifyMailingList(Comment comment,
int idMailingList,
Locale locale)
Create an instance of the comment class and notify the mailing list
|
static List<Comment> |
findListCommentsInclusive(Date startingDate,
Date endingDate,
int nIdForm)
fin List Comments between two dates
|
static List<Comment> |
finListComments(Date startingDate,
Date endingDate,
int nIdForm)
fin List Comments between two dates
|
static void |
removeAndNotifyMailingList(int nKey,
int idMailingList,
Locale locale)
Remove the comment whose identifier is specified in parameter and notify the mailing list
|
static void |
sendNotification(Comment comment,
int idMailingList,
CommentNotificationConfig.NotificationType type,
Locale locale) |
static Comment |
updateAndNotifyMailingList(Comment comment,
int idMailingList,
Locale locale)
Update of the comment which is specified in parameter and notify the mailing list
|
public static List<Comment> finListComments(Date startingDate, Date endingDate, int nIdForm)
startingDate - the date startendingDate - the date endpublic static List<Comment> findListCommentsInclusive(Date startingDate, Date endingDate, int nIdForm)
startingDate - the date startendingDate - the date endpublic static Comment createAndNotifyMailingList(Comment comment, int idMailingList, Locale locale)
comment - The instance of the Comment which contains the informations to storeidMailingList - the mailing list id to notifypublic static Comment updateAndNotifyMailingList(Comment comment, int idMailingList, Locale locale)
comment - The instance of the Comment which contains the data to storeidMailingList - the mailing list id to notifypublic static void removeAndNotifyMailingList(int nKey,
int idMailingList,
Locale locale)
nKey - The comment IdidMailingList - the mailing list id to notifypublic static void sendNotification(Comment comment, int idMailingList, CommentNotificationConfig.NotificationType type, Locale locale)
comment - idMailingList - the mailing list id to notifylocale - public static List<CommentDTO> buildCommentDTO(List<Comment> listComment)
Copyright © 2021 City of Paris. All rights reserved.