List of usage examples for com.liferay.portal.kernel.util WebKeys JOURNAL_RECENT_ARTICLES
String JOURNAL_RECENT_ARTICLES
To view the source code for com.liferay.portal.kernel.util WebKeys JOURNAL_RECENT_ARTICLES.
Click Source Link
From source file:com.liferay.journal.util.impl.JournalUtil.java
License:Open Source License
public static Stack<JournalArticle> getRecentArticles(PortletRequest portletRequest) { PortletSession portletSession = portletRequest.getPortletSession(); Stack<JournalArticle> recentArticles = (Stack<JournalArticle>) portletSession .getAttribute(WebKeys.JOURNAL_RECENT_ARTICLES); if (recentArticles == null) { recentArticles = new FiniteUniqueStack<>(MAX_STACK_SIZE); portletSession.setAttribute(WebKeys.JOURNAL_RECENT_ARTICLES, recentArticles); }/*from w w w. j a v a 2 s . c o m*/ return recentArticles; }