Bandi di concorso

Bandi di concorso

Aggregatore Risorse

angle-left Bando di concorso per n. 23 Istruttori a tempo determinato
Si è verificato un errore nell'elaborarazione del modello.
Java method "com.sun.proxy.$Proxy112.getDLFileEntryByUuidAndGroupId(String, long)" threw an exception when invoked on com.sun.proxy.$Proxy112 object "com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl@16db9f5d"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #local file = dLFileEntryLocalService...  [in template "20116#20160#65672" in function "formatAttachment" at line 75, column 9]
	- Reached through: #local attachment = formatAttachment(...  [in template "20116#20160#65672" in macro "displayAttachmentList" at line 98, column 17]
	- Reached through: @displayAttachmentList attachmentList...  [in template "20116#20160#65672" at line 54, column 17]
----
1<#assign layoutLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService")> 
2<#assign dLFileEntryLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")> 
3 
4<#-- Ultimo aggiornamento --> 
5<#assign lastUpdate_Data = getterUtil.getString(lastUpdate.getData())> 
6<#if validator.isNotNull(lastUpdate_Data)> 
7	<#assign lastUpdate_DateObj = dateUtil.parseDate("yyyy-MM-dd", lastUpdate_Data, locale)> 
8    <#assign lastUpdate = dateUtil.getDate(lastUpdate_DateObj, "dd/MM/yyyy", locale)> 
9<#else> 
10    <#assign lastUpdate = ""> 
11</#if> 
12 
13<#-- Immagine --> 
14<#if fullImage.getData()?? && fullImage.getData() != ""> 
15    <#assign imageSrc = fullImage.getData() 
16             imageAlt = fullImage.getAttribute("alt") 
17    />          
18<#else> 
19    <#assign imageSrc = "" 
20             imageAlt = "" 
21    /> 
22</#if> 
23 
24<#-- Labels --> 
25<#assign attachLabel = "Allegati"> 
26<#assign relatedLabel = "Link Correlati"> 
27 
28<#compress> 
29 
30<div class="u-layout-wide u-layoutCenter u-layout-withGutter u-padding-r-top u-padding-bottom-xxl"> 
31    <h2 class="u-text-h2"> 
32        ${title.getData()} 
33    </h2> 
34    <div class="Grid Grid--withGutter"> 
35        <div class="Grid-cell u-md-size8of12 u-lg-size8of12"> 
36            <article class="Prose u-layout-prose"> 
37                <#-- IMMAGINE --> 
38                <#if imageSrc != ""> 
39                <figure> 
40                    <img src="${imageSrc}" alt="${imageAlt}"> 
41                    <figcaption>${imageAlt}</figcaption> 
42                </figure> 
43                </#if> 
44                
45                <#-- MAIN BODY --> 
46                <#if (content?has_content && content.getData() != "")> 
47                    ${content.getData()} 
48                </#if> 
49                
50                <#-- LINK CORRELATI --> 
51                <@displayRelatedLinkList relatedLinkList = relatedLinks/> 
52                 
53                <#-- ALLEGATI --> 
54                <@displayAttachmentList attachmentList = attachments/> 
55         
56                <#-- DATA DI ULTIMO AGGIORNAMENTO--> 
57                <#if lastUpdate != ""> 
58                    <div class="last-update"> 
59                        Ultimo aggiornamento del ${lastUpdate} 
60                    </div> 
61                </#if> 
62            </article> 
63        </div> 
64    </div> 
65</div> 
66</#compress> 
67 
68<#-- FUNZIONI E MACRO --> 
69 
70<#function formatAttachment element> 
71    <#local attachment = {"attachPath":"","attachText":""} /> 
72    <#if element?? && element?has_content && element.getData() != ""> 
73        <#local fileNameElements = element.getData()?split("/")> 
74        <#local dlFileEntryuuid = fileNameElements[fileNameElements?size - 1]> 
75        <#local file = dLFileEntryLocalService.getDLFileEntryByUuidAndGroupId(dlFileEntryuuid, getterUtil.getLong(groupId))> 
76         
77        <#if (element.getChildren()?size > 0)> 
78            <#local fileLabel = element.getChild("attachText").getData() /> 
79        <#else> 
80            <#local fileLabel = file.getFileName() > 
81            <#if file.getDescription() != ""> 
82                <#local fileLabel = file.getDescription() > 
83            </#if> 
84        </#if> 
85        <#local attachment = {"attachPath":element.getData(),"attachText":fileLabel} />     
86    </#if> 
87    <#return attachment> 
88</#function> 
89 
90<#macro displayAttachmentList attachmentList> 
91    <#if attachmentList.getSiblings()?has_content> 
92    	<#list attachmentList.getSiblings() as element> 
93            <#if element.getData() != ""> 
94                <#if element_index == 0> 
95                    <h4>${attachLabel}</h4> 
96                    <ul class="attach-list"> 
97                </#if> 
98                <#local attachment = formatAttachment(element)> 
99        	    <li> 
100                    <a href="${attachment.attachPath}" title="Scarica ${attachment.attachText}"> 
101        		        <span class="fa fa-download"></span> 
102                    	${attachment.attachText} 
103                    </a> 
104        		</li> 
105            	<#if element_index == attachmentList.getSiblings()?size - 1> 
106                    </ul>	 
107                </#if> 
108            </#if> 
109    	</#list> 
110    </#if> 
111</#macro> 
112 
113<#macro displayRelatedLinkList relatedLinkList> 
114    <#if relatedLinks.getSiblings()?has_content> 
115    	<#list relatedLinks.getSiblings() as cur_relatedLinks> 
116            <#if cur_relatedLinks.getData() != ""> 
117                <#if cur_relatedLinks_index == 0> 
118                    <h4>${relatedLabel}</h4> 
119                    <ul class="link-list"> 
120                </#if> 
121        	    <#assign currentLayout = layoutLocalService.getLayout(getterUtil.getLong(groupId),false,getterUtil.getLong(cur_relatedLinks.getData()))> 
122                <#assign pageTitle = currentLayout.getHTMLTitle(locale)> 
123                <li> 
124                    <#assign relatedLinkFriendlyUrl = "" /> 
125                    <#if cur_relatedLinks.getFriendlyUrl()??> 
126                        <#assign relatedLinkFriendlyUrl = cur_relatedLinks.getFriendlyUrl() /> 
127                    </#if> 
128                	<a href="${relatedLinkFriendlyUrl}"> 
129                		<span class="fa fa-link"></span> 
130                		${pageTitle} 
131                	</a> 
132                </li> 
133                <#if cur_relatedLinks_index == (relatedLinks.getSiblings()?size - 1)> 
134                    </ul> 
135                </#if> 
136            </#if> 
137    	</#list> 
138    </#if> 
139</#macro> 

Menù di Navigazione