sergiogonzalez/liferay-portal — pull request #107 by matethurzo (2012-01-31 13:30:51+00:00)
Title: LPS-23998 Blogs future date fixes

Hi Sergio,

This is the bigger blogs portlet changes around the future date handling I was talking about. As discussed here is the pull request, and I've updated the LPS ticket with the list of the problems I've discovered.

This pull request basically contains a refactor for the future blog entries, the basic idea comes from the scheduled staging implementation. I've used the patterns from there.
I've used a quite unorthodox pattern in the code for the BlogsStatsUpdateRequest class: this is basically a POJO I'm passing to the message listener. The unusual about it is that it uses the Builder pattern, I found it useful here, and maybe customers can find it useful in their code (if they ever cross this feature). Although I do understand that it is quite unusual, and I haven't seen any other occurrences for the Builder pattern in the portal code, I just wanted to get your opinion on that, you might can advise a better one here as well, or a different way to do.

Thanks,

Máté