Notificazione ai sensi dell’art 151 c.p.c. TRIBUNALE DI PADOVA - SEZ. LAVORO - ricorso RG n. 1858-2020.
Si è verificato un errore nell'elaborarazione del modello.
Java method "com.sun.proxy.$Proxy456.getArticle(long, String)" threw an exception when invoked on com.sun.proxy.$Proxy456 object "it.miur.portale.hook.listener.CustomJournalArticleServiceWrapper@1d9c36a7"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign currentArticle = JALS.getArti... [in template "20155#20195#1025975" at line 19, column 9] ----
1<#assign httpUtil = staticUtil["com.liferay.portal.kernel.util.HttpUtil"]/>
2<#assign StringUtil = staticUtil["com.liferay.portal.kernel.util.StringUtil"]/>
3<#assign portletURLFactory = serviceLocator.findService("com.liferay.portal.kernel.portlet.PortletURLFactoryUtil") />
4<#assign portalURL = '' />
5<#assign mainPath = '' />
6<#assign themePath = '' />
7<#if .vars['request']?has_content>
8 <#assign portalURL = httpUtil.getProtocol(request['attributes']['CURRENT_URL']) + "://" + getterUtil.getString(request['theme-display']['portal-url']) />
9 <#assign mainPath = request['theme-display']['path-friendly-url-public']+"/miur/-/" />
10 <#assign themePath = getterUtil.getString(request['theme-display']['path-style']) />
11</#if>
12 <#assign assetPublisherURLBaseQueryString ="?p_p_id=101&p_p_lifecycle=0&p_p_state=maximized&_101_struts_action=/asset_publisher/view_content"/>
13 <#assign redirectParam ="_101_redirect="/>
14 <#assign JALS = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService" ) />
15 <#assign ALLS = serviceLocator.findService("com.liferay.asset.kernel.service.AssetLinkLocalService" ) />
16 <#assign AELS = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService" ) />
17 <#assign DDM = serviceLocator.findService("com.liferay.dynamic.data.mapping.service.DDMStructureLocalService") />
18 <#assign getterUtil = staticUtil["com.liferay.portal.kernel.util.GetterUtil"] />
19 <#assign currentArticle = JALS.getArticle(getterUtil.getLong(groupId),.vars['reserved-article-id'].data) />
20 <#assign currentArticleResourcePrimKey = currentArticle.getResourcePrimKey() />
21 <#assign currentArticleAssetEntry = AELS.getEntry("com.liferay.journal.model.JournalArticle", currentArticleResourcePrimKey) />
22 <#assign assetRenderer = currentArticleAssetEntry.getAssetRenderer() />
23 <#assign currentArticleAssetEntryEntryId = currentArticleAssetEntry.getEntryId() />
24 <#assign currentArticleRelatedLinks = ALLS.getDirectLinks(currentArticleAssetEntryEntryId) />
25 <#setting locale=locale.toString()/>
26 <#setting locale=locale.toString()/>
27 <#if data_riferimento.getData()?has_content>
28 <#assign aDate = data_riferimento.getData()?date("yyyy-MM-dd")>
29 <#assign checkDate = "2019-03-18"?date("yyyy-MM-dd")>
30 <#if aDate < checkDate>
31 <#assign aDate = (aDate?long + 86400000)?number_to_date />
32 </#if>
33 <#assign d = aDate?string["EEEE, dd MMMM yyyy"]?cap_first>
34 <#else>
35 <#assign d = currentArticle.getCreateDate()?string["EEEE, dd MMMM yyyy"]?cap_first>
36 </#if>
37 <#assign a = currentArticleAssetEntry.getTitle(locale) />
38 <#assign b = "" />
39 <#if currentArticleAssetEntry.getDescription(locale)?has_content && ! currentArticleAssetEntry.getDescription(locale)?contains("is undefined")>
40 <#assign b = currentArticleAssetEntry.getDescription(locale) />
41 </#if>
42 <div class="post-title page-title">
43 <h2>${a}</h2><p>${b}</p>
44 </div>
45
46 <div class="post-data-print">
47 <p class="pull-left">${d}</p>
48 <div class="post-print">
49 <a href="#">
50 <img src="/o/site-theme/icons/stampa.svg" />
51 </a>
52 </div>
53 </div>
54 <div class="post-content">
55 ${testo.getData()}
56 </div>
57 <!-- Downloads -->
58 <#assign checkDownload = 0 />
59 <#list currentArticleRelatedLinks as link>
60 <#assign linkedAssetEntryId = link.getEntryId2() />
61 <#assign linkedAssetEntry = AELS.getEntry(linkedAssetEntryId) />
62 <#if linkedAssetEntry.getAssetRendererFactory().getType()=="document" >
63 <#assign aAR = linkedAssetEntry.getAssetRenderer() />
64 <#if !linkedAssetEntry.getMimeType()?starts_with("image") >
65 <#assign checkDownload = 1 />
66 </#if>
67 </#if>
68 </#list>
69 <#if checkDownload == 1>
70 <div class="post-tools">
71 <#assign fileEntry = staticUtil["com.liferay.document.library.kernel.service.DLFileEntryLocalServiceUtil"] />
72 <div class="post-tools-title">
73 <img src="/o/site-theme/icons/download.svg" />
74 Documenti Allegati
75 </div>
76
77
78 <ul>
79 <#list currentArticleRelatedLinks as link>
80 <#assign linkedAssetEntryId = link.getEntryId2() />
81 <#assign linkedAssetEntry = AELS.getEntry(linkedAssetEntryId) />
82 <#if linkedAssetEntry.getAssetRendererFactory().getType()=="document" >
83 <#assign aAR = linkedAssetEntry.getAssetRenderer() />
84 <#if !linkedAssetEntry.getMimeType()?starts_with("image") >
85 <#assign file = fileEntry.getFileEntryByUuidAndGroupId(linkedAssetEntry.getClassUuid(),linkedAssetEntry.getGroupId()) >
86 <li>
87 <p>${linkedAssetEntry.getTitle(locale)}</p>
88 <div class="files">
89 <a href="${ aAR.getURLDownload(themeDisplay) }">
90 <img src="/o/site-theme/icons/file-${file.getIcon()}.svg">
91 </a>
92 </div>
93 </li>
94 </#if>
95 </#if>
96 </#list>
97 </ul>
98 </div>
99 </#if>
100 <!-- Link esterni -->
101 <#assign checkLink = 0 />
102 <#list currentArticleRelatedLinks as link>
103 <#assign linkedAssetEntryId = link.getEntryId2() />
104 <#assign linkedAssetEntry = AELS.getEntry(linkedAssetEntryId) />
105 <#if linkedAssetEntry.getAssetRendererFactory().getType()=="bookmark">
106 <#assign checkLink = 1 />
107 </#if>
108 </#list>
109 <#if checkLink == 1>
110 <div class="post-tools">
111 <div class="post-tools-title">
112 <img src="/o/site-theme/icons/link.svg" />
113 Link esterni
114 </div>
115 <ul>
116 <#list currentArticleRelatedLinks as link>
117 <#assign linkedAssetEntryId = link.getEntryId2() />
118 <#assign linkedAssetEntry = AELS.getEntry(linkedAssetEntryId) />
119 <#if linkedAssetEntry.getAssetRendererFactory().getType()=="bookmark">
120 <#assign aAR = linkedAssetEntry.getAssetRenderer() />
121 <li>
122 <a href="${linkedAssetEntry.getUrl()}">
123 <strong>${linkedAssetEntry.getTitle(locale)}</strong>
124 </a>
125 </li>
126 </#if>
127 </#list>
128 </ul>
129 </div>
130 </#if>
131 <div class="post-details">
132 <div class="row half_base">
133 <div class="col-md-6">
134 <strong>Tag:</strong>
135 <#list currentArticleAssetEntry.getTags() as tag>
136 ${tag.name}
137 <#if tag_has_next>, </#if>
138 </#list>
139 </div>
140 <div class="col-md-6">
141 <strong>Ultimo aggiornamento:</strong>
142 <#assign dateFormat = "EEEE, dd MMMM yyyy" />
143 <p>${dateUtil.getDate(currentArticleAssetEntry.getModifiedDate(), dateFormat, locale)}</p>
144 </div>
145 </div>
146 <div class="row">
147 <div class="col-md-6">
148 <strong>Categorie:</strong>
149 <#list currentArticleAssetEntry.getCategories() as category>
150 ${category.name}
151 <#if category_has_next>, </#if>
152 </#list>
153 </div>
154 <div class="col-md-6">
155 <strong>Emessa da:</strong>
156 <#if emessa_da?has_content>
157 <#assign e = emessa_da.getData()>
158 <#else>
159 <#assign e = "MIUR">
160 </#if>
161 <p>${e}</p>
162 </div>
163 </div>
164 </div>
165 <!-- Link esterni -->
166 <#assign checkContent = 0 />
167 <#list currentArticleRelatedLinks as link>
168 <#assign linkedAssetEntryId = link.getEntryId2() />
169 <#assign linkedAssetEntry = AELS.getEntry(linkedAssetEntryId) />
170 <#if linkedAssetEntry.getAssetRendererFactory().getType()=="content" && DDM.getStructure(linkedAssetEntry.classTypeId).getName(locale)=="News">
171 <#assign checkContent = 1 />
172 </#if>
173 </#list>
174 <#if checkContent == 1>
175 <div class="post-related">
176 <div class="post-tools-title">
177 <img src="/o/site-theme/icons/correlati.svg" />
178 News correlate
179 </div>
180 <ul>
181 <#list currentArticleRelatedLinks as link>
182 <#assign linkedAssetEntryId = link.getEntryId2() />
183 <#assign linkedAssetEntry = AELS.getEntry(linkedAssetEntryId) />
184 <#if linkedAssetEntry.getAssetRendererFactory().getType()=="content" && DDM.getStructure(linkedAssetEntry.classTypeId).getName(locale)=="News">
185 <li>
186 <#assign rD = linkedAssetEntry.getCreateDate()?string["dd MMMM yyyy"]>
187 <#assign lAssetRenderer = linkedAssetEntry.getAssetRenderer() />
188 <p>${rD}</p>
189 <a href="${portalURL}${mainPath}${lAssetRenderer.getUrlTitle()}">
190 <strong>${linkedAssetEntry.getTitle(locale)}</strong>
191 </a>
192 </li>
193 </#if>
194 </#list>
195 </ul>
196 </div>
197 </#if>