date = c1.getTime();
entry.setPublishedDate(date);
// date of last change to Item
entry.setUpdatedDate(dataBean.getDate());
SyndContent desc = new SyndContentImpl();
desc.setType("text/html");
String tmpMessage = "";
tmpMessage += MessageFormat
.format(localize(msgs, MSG_ENTRY_DESCRIPTION, freq,
type, AStatComponentService._SELECTED_OBJECT,
"view"), dataBean.getPeriodSelectedView(),
dataBean.getTotalSelectedView());
if (dataBean.isShowSelectedObjectDownload())
{
tmpMessage += MessageFormat.format(
localize(msgs, MSG_ENTRY_DESCRIPTION, freq, type,
AStatComponentService._SELECTED_OBJECT,
"download"), dataBean
.getPeriodSelectedDownload(), dataBean
.getTotalSelectedDownload());
}
for (String key : dataBean.getPeriodAndTotalTopView().keySet())
{
if (dataBean.getPeriodAndTotalTopView().get(key) != null)
{
if (dataBean.getPeriodAndTotalTopView().get(key).size() > 0)
{
tmpMessage += MessageFormat.format(
localize(msgs, MSG_ENTRY_DESCRIPTION, freq,
type, key, "view"), dataBean
.getPeriodAndTotalTopView()
.get(key).get(0), dataBean
.getPeriodAndTotalTopView()
.get(key).get(1));
}
if (dataBean.getPeriodAndTotalTopDownload().get(key) != null)
{
if (dataBean.getPeriodAndTotalTopDownload()
.get(key).size() > 0)
{
tmpMessage += MessageFormat.format(
localize(msgs, MSG_ENTRY_DESCRIPTION,
freq, type, key, "download"),
dataBean.getPeriodAndTotalTopDownload()
.get(key).get(0), dataBean
.getPeriodAndTotalTopDownload()
.get(key).get(1));
}
}
}
}
String message = MessageFormat.format(
localize(msgs, MSG_ENTRY_DESCRIPTION, freq, type, null,
null), bean.getObjectName(),
dataBean.getDate(), tmpMessage);
desc.setValue(message);
entry.setDescription(desc);
entry.setAuthor(ConfigurationManager
.getProperty("webui.feed.stats.authors"));
}