Lavoro

Tutte le misure di sostegno e tutela all’occupazione e al reddito messe in campo dalla Regione per cittadini, lavoratori e imprese.
Si è verificato un errore nell'elaborarazione del modello.
Java method "static com.liferay.document.library.kernel.service.DLFileEntryLocalServiceUtil.getFileEntryByUuidAndGroupId(String, long)" threw an exception; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign fileEntry = DLFileEntryLocalS...  [in template "10154#10192#19751968" at line 358, column 61]
----
1<#setting locale="it_IT"> 
2 
3<#assign siteBaseURL = themeDisplay.getPortalURL() />  
4 
5<#assign DLFileEntryLocalServiceUtil = staticUtil["com.liferay.document.library.kernel.service.DLFileEntryLocalServiceUtil"] /> 
6<#assign AssetCategoryLocalServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetCategoryLocalServiceUtil"]> 
7 
8<#assign LayoutLocalServiceUtil = staticUtil["com.liferay.portal.kernel.service.LayoutLocalServiceUtil"] /> 
9<#assign AssetCategoryServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetCategoryServiceUtil"] /> 
10<#assign childCategoryId = 0 /> 
11<#assign parentCategoryId = 0 /> 
12<#assign values = portletPreferences['queryValues0'] /> 
13<#if values?has_content> 
14	<#list values as value> 
15		<#assign currentCat = AssetCategoryServiceUtil.getCategory(value?number) /> 
16		<#assign AssetVocabularyServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetVocabularyServiceUtil"]> 
17		<#assign assetVocabulary = AssetVocabularyServiceUtil.getVocabulary(currentCat.getVocabularyId()) /> 
18		<#if assetVocabulary.getName() == "Temi"> 
19			<#if currentCat.getParentCategory()??> 
20				<#assign childCategoryId = currentCat.getCategoryId()/> 
21				<#assign parentCategoryId = currentCat.getParentCategory().getCategoryId() /> 
22			<#else> 
23				<#assign parentCategoryId = currentCat.getCategoryId()/> 
24			</#if> 
25		</#if> 
26	</#list> 
27</#if> 
28 
29<div class="container rt-container"> 
30<div class="rt-wrapper"> 
31    <section class="rt-section rt-section--box rt-section--box-col-3" aria-label="Sezione degli aggiornamenti"> 
32        <div class="rt-section__wrapper"> 
33            <#if entries?has_content>  
34                <#list entries as curEntry> 
35                    <#assign assetRenderer = curEntry.getAssetRenderer() /> 
36                    <#assign className = assetRenderer.getClassName() /> 
37                     
38                    <#assign rendererURL = siteBaseURL + "/-/" + assetRenderer.getUrlTitle() /> 
39 
40                    <#if className = "com.liferay.journal.model.JournalArticle" > 
41                        <#assign article = assetRenderer.getArticle() />  
42                        <#if article?? > 
43                            <#assign docXml = saxReaderUtil.read(article.getContent()) /> 
44                             
45                            <#assign titleText = curEntry.getTitle(locale) /> 
46                            <#assign titleLength = titleText?length /> 
47 
48                            <#if (titleLength > 98) > 
49                                <#assign titleText = titleText?substring(0,98) /> 
50                                <#assign titleText = titleText + "..." /> 
51                            </#if> 
52                            <div class="rt-box rt-box--update"> 
53                                <div class="rt-box__header"> 
54                                    <div class="rt-box__wrapper"> 
55                                        <div class="rt-box__category"> 
56                                            <#assign categoryList = AssetCategoryLocalServiceUtil.getAssetEntryAssetCategories(curEntry.getEntryId()) /> 
57                                            <#assign temi = [] /> 
58 
59											<#list categoryList as category> 
60												<#assign AssetVocabularyServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetVocabularyServiceUtil"]> 
61												<#assign assetVocabulary = AssetVocabularyServiceUtil.getVocabulary(category.getVocabularyId()) /> 
62												<#if assetVocabulary.getName() == "Temi"> 
63													<#assign temi = temi + [category] /> 
64													<#if parentCategoryId == 0> 
65														<#if category.getParentCategory()??> 
66															<#assign childCategory = category.getName()/> 
67															<#assign parentCategory = category.getParentCategory().getName()/> 
68														<#else> 
69															<#assign parentCategory = category.getName()/> 
70														</#if> 
71													<#else> 
72														<#if category.getParentCategory()?? && (category.getParentCategory().getCategoryId() == parentCategoryId)> 
73															<#assign childCategory = category.getName()/> 
74															<#assign parentCategory = category.getParentCategory().getName()/> 
75														<#elseif category.getCategoryId() == parentCategoryId > 
76															<#assign parentCategory = category.getName()/> 
77														</#if> 
78													</#if> 
79												</#if> 
80											</#list> 
81                                            <#if parentCategory?? && parentCategory != ""> 
82                                                ${parentCategory} 
83                                            </#if> 
84                                            <#if childCategory?? && childCategory != ""> 
85                                                <i class="fas fa-circle"></i> 
86                                                ${childCategory} 
87                                            </#if> 
88                                        </div> 
89 
90                                        <div class="rt-box__title"> 
91                                            <a title="Vai all'aggiornamento ${titleText?replace('"','&quot;')}" aria-label="Vai all'aggiornamento ${titleText?replace('"','&quot;')}" href="${rendererURL}"> 
92                                                ${titleText} 
93                                            </a> 
94                                        </div> 
95                                    </div> 
96 
97                                    <div class="rt-box__icon"> 
98                                         
99                                         
100 
101                                        <#assign TipologiaAggiornamento = docXml.valueOf("//dynamic-element[@name='TipologiaAggiornamento']/dynamic-content/text()") /> 
102                                         
103                                        <#if TipologiaAggiornamento?? && TipologiaAggiornamento != ""> 
104 
105                                            <#if TipologiaAggiornamento?? && TipologiaAggiornamento != "" && TipologiaAggiornamento?upper_case == 'GENERICO'> 
106                                                <div class="rt-box__icon"> 
107                                                    <div class="rt-box__icon-label"></div> 
108                                                     
109                                                    <#assign immagineCopertina = docXml.valueOf("//dynamic-element[@name='ImmagineCopertina']/dynamic-content/text()") /> 
110                                                    <#if immagineCopertina?? && immagineCopertina != ""> 
111                                                        <#assign json = jsonFactoryUtil.createJSONObject(immagineCopertina) /> 
112 
113                                                        <#assign nameImg = json.getString("name") /> 
114                                                        <#assign fileEntryId = json.getLong("fileEntryId") /> 
115                                                        <#assign altImg = json.getString("alt") /> 
116                                                        <#assign fileUrl = "" /> 
117                                                        <#assign uuiD = json.getString("uuid") /> 
118                                                        <#assign groupId = json.getLong("groupId") /> 
119                                                        <#if fileEntryId != 0> 
120                                                            <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntry(fileEntryId) />  
121                                                            <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />  
122                                                            <div class="rt-box__thumb"> 
123                                                                <img alt="${altImg}" src="${fileUrl}"> 
124                                                            </div>     
125                                                        <#else> 
126                                                            <#if groupId != 0 && uuiD != ""> 
127                                                                <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntryByUuidAndGroupId(uuiD,groupId) />  
128                                                                 
129                                                                <#if fileEntry?? > 
130                                                                    <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />  
131                                                                    <div class="rt-box__thumb"> 
132                                                                        <img alt="${altImg}" src="${fileUrl}"> 
133                                                                    </div>     
134                                                                <#else> 
135                                                                    <i aria-hidden="true" class="far fa-bell"></i> 
136                                                                </#if> 
137                                                            <#else> 
138                                                            <i aria-hidden="true" class="far fa-bell"></i> 
139                                                            </#if> 
140                                                         
141                                                        </#if> 
142                                                    <#else> 
143														<#if assetRenderer.getThumbnailPath(renderRequest)?? > 
144															<div class="rt-box__thumb" style="background-image: url('${assetRenderer.getThumbnailPath(renderRequest)}');"></div> 
145														<#else> 
146															<i aria-hidden="true" class="far fa-bell"></i> 
147														</#if> 
148													</#if> 
149                                                </div> 
150                                            </#if> 
151 
152                                            <#if TipologiaAggiornamento?? && TipologiaAggiornamento != "" && TipologiaAggiornamento?upper_case == 'AVVISO'> 
153                                                <div class="rt-box__icon"> 
154                                                    <div class="rt-box__icon-label">AVVISO</div> 
155 
156                                                    <#assign immagineCopertina = docXml.valueOf("//dynamic-element[@name='ImmagineCopertina']/dynamic-content/text()") /> 
157                                                    <#if immagineCopertina?? && immagineCopertina != ""> 
158                                                        <#assign json = jsonFactoryUtil.createJSONObject(immagineCopertina) /> 
159 
160                                                        <#assign nameImg = json.getString("name") /> 
161                                                        <#assign fileEntryId = json.getLong("fileEntryId") /> 
162                                                        <#assign altImg = json.getString("alt") /> 
163                                                        <#assign fileUrl = "" /> 
164                                                        <#assign uuiD = json.getString("uuid") /> 
165                                                        <#assign groupId = json.getLong("groupId") /> 
166                                                        <#if fileEntryId != 0> 
167                                                            <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntry(fileEntryId) />  
168                                                            <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />  
169                                                            <div class="rt-box__thumb"> 
170                                                                <img alt="${altImg}" src="${fileUrl}"> 
171                                                            </div>     
172                                                        <#else> 
173                                                            <#if groupId != 0 && uuiD != ""> 
174                                                                <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntryByUuidAndGroupId(uuiD,groupId) />  
175                                                                 
176                                                                <#if fileEntry?? > 
177                                                                    <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />  
178                                                                    <div class="rt-box__thumb"> 
179                                                                        <img alt="${altImg}" src="${fileUrl}"> 
180                                                                    </div>     
181                                                                <#else> 
182                                                                <i aria-hidden="true" class="far fa-bell"></i> 
183                                                                </#if> 
184                                                            <#else> 
185                                                                <i aria-hidden="true" class="far fa-bell"></i> 
186                                                            </#if> 
187                                                         
188                                                        </#if> 
189                                                    <#else> 
190														<#if assetRenderer.getThumbnailPath(renderRequest)?? > 
191															<div class="rt-box__thumb" style="background-image: url('${assetRenderer.getThumbnailPath(renderRequest)}');"></div> 
192														<#else> 
193															<i aria-hidden="true" class="far fa-bell"></i> 
194														</#if> 
195													</#if> 
196                                                </div> 
197                                            </#if> 
198 
199                                            <#if TipologiaAggiornamento?? && TipologiaAggiornamento != "" && TipologiaAggiornamento?upper_case == 'PROGETTO'> 
200                                                <div class="rt-box__icon"> 
201                                                    <div class="rt-box__icon-label">PROGETTO</div> 
202                                                    <#assign immagineCopertina = docXml.valueOf("//dynamic-element[@name='ImmagineCopertina']/dynamic-content/text()") /> 
203                                                    <#if immagineCopertina?? && immagineCopertina != ""> 
204                                                        <#assign json = jsonFactoryUtil.createJSONObject(immagineCopertina) /> 
205 
206                                                        <#assign nameImg = json.getString("name") /> 
207                                                        <#assign fileEntryId = json.getLong("fileEntryId") /> 
208                                                        <#assign altImg = json.getString("alt") /> 
209                                                        <#assign fileUrl = "" /> 
210                                                        <#assign uuiD = json.getString("uuid") /> 
211                                                        <#assign groupId = json.getLong("groupId") /> 
212                                                        <#if fileEntryId != 0> 
213                                                            <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntry(fileEntryId) />  
214                                                            <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />  
215                                                            <div class="rt-box__thumb"> 
216                                                                <img alt="${altImg}" src="${fileUrl}"> 
217                                                            </div>     
218                                                        <#else> 
219                                                            <#if groupId != 0 && uuiD != ""> 
220                                                                <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntryByUuidAndGroupId(uuiD,groupId) />  
221                                                                 
222                                                                <#if fileEntry?? > 
223                                                                    <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />  
224                                                                    <div class="rt-box__thumb"> 
225                                                                        <img alt="${altImg}" src="${fileUrl}"> 
226                                                                    </div>     
227                                                                <#else> 
228                                                                    <i aria-hidden="true" class="far fa-ruler-triangle"></i> 
229                                                                </#if> 
230                                                            <#else> 
231                                                                <i aria-hidden="true" class="far fa-ruler-triangle"></i> 
232                                                            </#if> 
233                                                         
234                                                        </#if> 
235                                                    <#else> 
236														<#if assetRenderer.getThumbnailPath(renderRequest)?? > 
237															<div class="rt-box__thumb" style="background-image: url('${assetRenderer.getThumbnailPath(renderRequest)}');"></div> 
238														<#else> 
239															<i aria-hidden="true" class="far fa-ruler-triangle"></i> 
240														</#if> 
241													</#if> 
242                                                     
243                                                     
244                                                </div> 
245                                            </#if> 
246 
247                                            <#if TipologiaAggiornamento?? && TipologiaAggiornamento != "" && TipologiaAggiornamento?upper_case == 'PUBBLICAZIONE'> 
248                                                <div class="rt-box__icon"> 
249                                                    <div class="rt-box__icon-label">PUBBLICAZIONE</div> 
250                                                    <#assign immagineCopertina = docXml.valueOf("//dynamic-element[@name='ImmagineCopertina']/dynamic-content/text()") /> 
251                                                    <#if immagineCopertina?? && immagineCopertina != ""> 
252                                                        <#assign json = jsonFactoryUtil.createJSONObject(immagineCopertina) /> 
253 
254                                                        <#assign nameImg = json.getString("name") /> 
255                                                        <#assign fileEntryId = json.getLong("fileEntryId") /> 
256                                                        <#assign altImg = json.getString("alt") /> 
257                                                        <#assign fileUrl = "" /> 
258                                                        <#assign uuiD = json.getString("uuid") /> 
259                                                        <#assign groupId = json.getLong("groupId") /> 
260                                                        <#if fileEntryId != 0> 
261                                                            <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntry(fileEntryId) />  
262                                                            <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />  
263                                                            <div class="rt-box__thumb"> 
264                                                                <img alt="${altImg}" src="${fileUrl}"> 
265                                                            </div>     
266                                                        <#else> 
267                                                            <#if groupId != 0 && uuiD != ""> 
268                                                                <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntryByUuidAndGroupId(uuiD,groupId) />  
269                                                                 
270                                                                <#if fileEntry?? > 
271                                                                    <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />  
272                                                                    <div class="rt-box__thumb"> 
273                                                                        <img alt="${altImg}" src="${fileUrl}"> 
274                                                                    </div>     
275                                                                <#else> 
276                                                                    <i aria-hidden="true" class="far fa-newspaper"></i> 
277                                                                </#if> 
278                                                            <#else> 
279                                                                <i aria-hidden="true" class="far fa-newspaper"></i> 
280                                                            </#if> 
281                                                         
282                                                        </#if> 
283                                                    <#else> 
284														<#if assetRenderer.getThumbnailPath(renderRequest)?? > 
285															<div class="rt-box__thumb" style="background-image: url('${assetRenderer.getThumbnailPath(renderRequest)}');"></div> 
286														<#else> 
287															<i aria-hidden="true" class="far fa-newspaper"></i> 
288														</#if> 
289                                                    </#if> 
290                                                     
291                                                </div> 
292                                            </#if> 
293 
294                                            <#if TipologiaAggiornamento?? && TipologiaAggiornamento != "" && TipologiaAggiornamento?upper_case == 'DELIBERA'> 
295                                                <div class="rt-box__icon"> 
296                                                    <div class="rt-box__icon-label">DELIBERA</div> 
297                                                    <#assign immagineCopertina = docXml.valueOf("//dynamic-element[@name='ImmagineCopertina']/dynamic-content/text()") /> 
298                                                    <#if immagineCopertina?? && immagineCopertina != ""> 
299                                                        <#assign json = jsonFactoryUtil.createJSONObject(immagineCopertina) /> 
300 
301                                                        <#assign nameImg = json.getString("name") /> 
302                                                        <#assign fileEntryId = json.getLong("fileEntryId") /> 
303                                                        <#assign altImg = json.getString("alt") /> 
304                                                        <#assign fileUrl = "" /> 
305                                                        <#assign uuiD = json.getString("uuid") /> 
306                                                        <#assign groupId = json.getLong("groupId") /> 
307                                                        <#if fileEntryId != 0> 
308                                                            <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntry(fileEntryId) />  
309                                                            <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />  
310                                                            <div class="rt-box__thumb"> 
311                                                                <img alt="${altImg}" src="${fileUrl}"> 
312                                                            </div>     
313                                                        <#else> 
314                                                            <#if groupId != 0 && uuiD != ""> 
315                                                                <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntryByUuidAndGroupId(uuiD,groupId) />  
316                                                                 
317                                                                <#if fileEntry?? > 
318                                                                    <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />  
319                                                                    <div class="rt-box__thumb"> 
320                                                                        <img alt="${altImg}" src="${fileUrl}"> 
321                                                                    </div>     
322                                                                <#else> 
323                                                                    <i aria-hidden="true" class="far fa-file-certificate"></i> 
324                                                                </#if> 
325                                                            <#else> 
326                                                                <i aria-hidden="true" class="far fa-file-certificate"></i> 
327                                                            </#if> 
328                                                         
329                                                        </#if> 
330                                                    <#else> 
331														<#if assetRenderer.getThumbnailPath(renderRequest)?? > 
332															<div class="rt-box__thumb" style="background-image: url('${assetRenderer.getThumbnailPath(renderRequest)}');"></div> 
333														<#else> 
334															<i aria-hidden="true" class="far fa-file-certificate"></i> 
335														</#if> 
336													</#if> 
337                                                     
338                                                </div> 
339                                            </#if> 
340                                        <#else> 
341                                            <div class="rt-box__icon"> 
342                                                <#assign immagineCopertina = docXml.valueOf("//dynamic-element[@name='ImmagineCopertina']/dynamic-content/text()") /> 
343                                                <#if immagineCopertina?? && immagineCopertina != ""> 
344                                                    <#assign json = jsonFactoryUtil.createJSONObject(immagineCopertina) /> 
345 
346                                                    <#assign nameImg = json.getString("name") /> 
347                                                    <#assign fileEntryId = json.getLong("fileEntryId") /> 
348                                                    <#assign altImg = json.getString("alt") /> 
349                                                    <#assign fileUrl = "" /> 
350                                                    <#assign uuiD = json.getString("uuid") /> 
351                                                    <#assign groupId = json.getLong("groupId") /> 
352                                                    <#if fileEntryId != 0> 
353                                                        <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntry(fileEntryId) />  
354                                                        <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />  
355                                                        <div class="rt-box__thumb" aria-label="${altImg}" style="background-image: url('${fileUrl}');"></div> 
356                                                    <#else> 
357                                                        <#if groupId != 0 && uuiD != ""> 
358                                                            <#assign fileEntry = DLFileEntryLocalServiceUtil.getFileEntryByUuidAndGroupId(uuiD,groupId) />  
359                                                             
360                                                            <#if fileEntry?? > 
361                                                                <#assign fileUrl = "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid() />  
362                                                                <div class="rt-box__thumb" aria-label="${altImg}" style="background-image: url('${fileUrl}');"></div> 
363                                                            </#if> 
364                                                        </#if> 
365                                                     
366                                                    </#if> 
367												<#else> 
368													<#if assetRenderer.getThumbnailPath(renderRequest)?? > 
369														<div class="rt-box__thumb" style="background-image: url('${assetRenderer.getThumbnailPath(renderRequest)}');"></div> 
370													</#if> 
371                                                </#if> 
372                                            </div> 
373                                        </#if> 
374                                    </div> 
375                                </div> 
376 
377                                <div class="rt-box__text"> 
378                                    <#assign summaryText = curEntry.getSummary(locale)?replace("&lt;/strong>","")?replace("&lt;storng>","")?replace("<strong>","")?replace("</strong>", "") /> 
379                                    <#if summaryText?? && summaryText?has_content> 
380                                        <#if (summaryText?length > 200) > 
381                                            <#assign summaryText = summaryText?substring(0,200) /> 
382                                            <#assign summaryText = summaryText + "..." /> 
383                                        </#if> 
384                                        <p>${summaryText}</p> 
385                                    <#else> 
386                                        <#assign TitoloSecondario = docXml.valueOf("//dynamic-element[@name='TitoloSecondario']/dynamic-content/text()") /> 
387                                        <#if TitoloSecondario?? && TitoloSecondario?has_content > 
388                                            <#if (TitoloSecondario?length > 200) > 
389                                                <#assign TitoloSecondario = TitoloSecondario?substring(0,200) /> 
390                                                <#assign TitoloSecondario = TitoloSecondario + "..." /> 
391                                            </#if> 
392                                            <p>${TitoloSecondario}</p> 
393                                        </#if> 
394                                    </#if> 
395                                </div> 
396 
397                                <div class="rt-box__footer"> 
398                                    <#if article.modifiedDate?? && article.modifiedDate?has_content> 
399										<div class="rt-box__date-published">Aggiornato al ${article.modifiedDate?string["dd.MM.yyyy"]}</div> 
400									</#if> 
401                                    <#if article.expirationDate?? && article.expirationDate?has_content> 
402                                        <div class="rt-box__date-expires">Scade il ${article.expirationDate?string["dd.MM.yyyy"]}</div> 
403                                    </#if> 
404                                </div> 
405                            </div> 
406                        </#if> 
407                    </#if> 
408                </#list> 
409            </#if> 
410        </div> 
411    </section> 
412</div> 
413</div>