Class CommentService
java.lang.Object
fr.paris.lutece.plugins.appointment.service.CommentService
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<CommentDTO>buildCommentDTO(List<Comment> listComment) static CommentcreateAndNotifyMailingList(Comment comment, int idMailingList, Locale locale) Create an instance of the comment class and notify the mailing listfindListCommentsInclusive(Date startingDate, Date endingDate, int nIdForm) fin List Comments between two datesfinListComments(Date startingDate, Date endingDate, int nIdForm) fin List Comments between two datesstatic voidremoveAndNotifyMailingList(int nKey, int idMailingList, Locale locale) Remove the comment whose identifier is specified in parameter and notify the mailing liststatic voidsendNotification(Comment comment, int idMailingList, CommentNotificationConfig.NotificationType type, Locale locale) static CommentupdateAndNotifyMailingList(Comment comment, int idMailingList, Locale locale) Update of the comment which is specified in parameter and notify the mailing list
-
Method Details
-
finListComments
fin List Comments between two dates- Parameters:
startingDate- the date startendingDate- the date end
-
findListCommentsInclusive
public static List<Comment> findListCommentsInclusive(Date startingDate, Date endingDate, int nIdForm) fin List Comments between two dates- Parameters:
startingDate- the date startendingDate- the date end
-
createAndNotifyMailingList
Create an instance of the comment class and notify the mailing list- Parameters:
comment- The instance of the Comment which contains the informations to storeidMailingList- the mailing list id to notify- Returns:
- The instance of comment which has been created with its primary key.
-
updateAndNotifyMailingList
Update of the comment which is specified in parameter and notify the mailing list- Parameters:
comment- The instance of the Comment which contains the data to storeidMailingList- the mailing list id to notify- Returns:
- The instance of the comment which has been updated
-
removeAndNotifyMailingList
Remove the comment whose identifier is specified in parameter and notify the mailing list- Parameters:
nKey- The comment IdidMailingList- the mailing list id to notify
-
sendNotification
public static void sendNotification(Comment comment, int idMailingList, CommentNotificationConfig.NotificationType type, Locale locale) - Parameters:
comment-idMailingList- the mailing list id to notifylocale-
-
buildCommentDTO
-