FITXA D'ALTS CÀRRECS
S'ha produït un error en processar la plantilla.
Method public static com.liferay.portlet.journal.model.JournalArticle com.liferay.portlet.journal.service.JournalArticleLocalServiceUtil.getArticle(long,java.lang.String) throws com.liferay.portal.kernel.exception.PortalException,com.liferay.portal.kernel.exception.SystemException threw an exception
1<#assign journalArticleLocalService = staticUtil["com.liferay.portlet.journal.service.JournalArticleLocalServiceUtil"] />
2
3<#-- Get article id from the request URL -->
4<#assign serviceContext = staticUtil["com.liferay.portal.service.ServiceContextThreadLocal"].getServiceContext() />
5<#assign httpServletRequest = serviceContext.getRequest() />
6
7<#-- Get ThemeDisplay object, instead of the available $request.theme-display map -->
8<#assign objThemeDisplay = httpServletRequest.getAttribute("THEME_DISPLAY") />
9
10<#if request?? && request.attributes?? >
11
12 <#assign current_url = request.attributes.CURRENT_URL />
13
14 <#assign paramName = "articleId"
15 auxArticleId = httpUtil.getParameter(current_url, paramName)
16 />
17
18 <#assign paramName = "presidentId"
19 presidentId = paramUtil.getString(httpServletRequest, paramName)
20 />
21
22</#if>
23
24<#if auxArticleId == "" && presidentId == "" >
25 <#assign varArticleId = articleId.getData() />
26<#elseif auxArticleId != "" >
27 <#assign varArticleId = auxArticleId />
28<#elseif presidentId != "" >
29 <#assign varArticleId = presidentId />
30</#if>
31
32<#assign article = journalArticleLocalService.getArticle(getterUtil.getLong(groupId), varArticleId) />
33
34<#assign articleContent = journalArticleLocalService.getArticleContent(article, templateId.getData(), "", locale, objThemeDisplay) />
35
36${articleContent}