Questo sito o gli strumenti terzi da questo utilizzati si avvalgono di cookie necessari al funzionamento ed utili alle finalità illustrate nella sezione note legali.
Chiudendo questo banner, scorrendo questa pagina, cliccando su un link o proseguendo la navigazione in altra maniera, si acconsente all’uso dei cookie.

Si è verificato un errore nell'elaborarazione del modello.
Error on line 88, column 97 in 20155#20195#36705
dlFileEntryLocalService.getFileEntryByUuidAndGroupId(uuid,groupId) is undefined.
It cannot be assigned to file
1<#setting locale="it_IT"> <#-- Just to having comma in file weight --> 
2 
3<#-- -----Importing services----- --> 
4<#assign dlFileEntryLocalService = serviceLocator.findService("com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService") /> 
5<#assign AssetEntryLocalService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetEntryLocalService") /> 
6<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.portlet.journal.service.JournalArticleLocalService") /> 
7<#assign AssetLinkLocalService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetLinkLocalService") /> 
8<#assign ClassNameLocalService = serviceLocator.findService("com.liferay.portal.service.ClassNameLocalService") /> 
9<#assign LayoutLocalService = serviceLocator.findService("com.liferay.portal.service.LayoutLocalService") /> 
10<#assign GroupLocalService = serviceLocator.findService("com.liferay.portal.service.GroupLocalService") /> 
11 
12<#-- -----Getting the path to file type icons----- --> 
13<#assign themeDisplayValue = true /> 
14<#function getFileTypeIconImage extension> 
15	<#attempt> 
16		<#assign themeImages = request['theme-display']['path-theme-images'] />  
17		<#assign fileTypeIconPath = themeImages + "/icons/file-type/" /> 
18		<#assign fileTypeIconImage = fileTypeIconPath + getFileTypeIcon(extension) /> 
19		<#assign themeDisplayValue = true /> 
20	<#recover> 
21	 
22		<#assign fileTypeIconImage=""/> 
23		<#assign themeDisplayValue = false /> 
24	</#attempt> 
25	<#return fileTypeIconImage> 
26</#function> 
27 
28<#-- -----Input: the extension of the file, Output: his correct file type icon----- --> 
29<#function getFileTypeIcon extension> 
30     
31    <#-- -----File types----- --> 
32    <#assign images = ["png", "jpg", "jpeg", "gif", "svg"] /> 
33    <#assign doc = ["doc", "docx"] /> 
34    <#assign pdf = ["pdf"] /> 
35    <#assign excel = ["xls","xlsx"] /> 
36 
37    <#assign fileTypeIcon = "ico_doc.png" /> 
38 
39    <#if images?seq_contains(extension) > 
40        <#assign fileTypeIcon = "ico_image2.png" /> 
41    <#elseif doc?seq_contains(extension)> 
42    	<#assign fileTypeIcon = "ico_word.png" /> 
43    <#elseif pdf?seq_contains(extension)> 
44    	<#assign fileTypeIcon = "ico_pdf.png" /> 
45    <#elseif excel?seq_contains(extension)> 
46    	<#assign fileTypeIcon = "ico_excel.png" /> 
47    </#if> 
48     
49    <#return fileTypeIcon> 
50</#function> 
51 
52<div class="with-separator"> 
53	<h3>${.vars['reserved-article-title'].data}</h3> 
54            <div class="text-justify"> 
55                ${content.getData()} 
56            </div> 
57    <div> 
58        <#if section_title?? && section_title.getSiblings()?has_content> 
59          <#list section_title.getSiblings() as cur_section_title> 
60    			<#if cur_section_title.anchor_name?? && cur_section_title.anchor_name.getData()?has_content> 
61    				<a name="${cur_section_title.anchor_name.getData()}" id="${cur_section_title.anchor_name.getData()}" ></a> 
62    			</#if> 
63    	        <h4>${cur_section_title.getData()}</h4> 
64		        <div class="text-justify">  
65		            ${cur_section_title.section_content.getData()} 
66		        </div> 
67		        <br/> 
68		        <#assign showAttachSection = cur_section_title.attachment_sezione?? && cur_section_title.attachment_sezione.getData()?has_content /> 
69        		<#if showAttachSection> 
70        	 			<div> 
71        				<#if cur_section_title.attachment_sezione?? && cur_section_title.attachment_sezione.getData()?has_content> 
72        							 	<#list cur_section_title.attachment_sezione.getSiblings() as attached > 
73        											<#assign url = attached.getData()/> 
74        											<#assign counter = 0 /> 
75        											<#list url?split("/") as x > 
76        													<#if counter == 5 > 
77        															<#assign uuId1 = x /> 
78        													</#if> 
79        													<#assign counter = counter+1 /> 
80        											</#list> 
81        											<#assign c=0 /> 
82        											<#list uuId1?split("?") as y> 
83        													<#if c == 0> 
84        															<#assign uuid = y /> 
85        													</#if> 
86        													<#assign c = c + 1 /> 
87        											</#list> 
88        											<#assign file = dlFileEntryLocalService.getFileEntryByUuidAndGroupId(uuid,groupId)/> 
89        											<#assign extension = file.getExtension() /> 
90        												 
91        											<p> 
92        													<#if themeDisplayValue==true> 
93        															<img alt="file ${file.getTitle()}" src="${getFileTypeIconImage(extension)}" class="csm-icon" /> 
94        													</#if> 
95        													<a href="${attached.getData()}" class="dark" target="_blank">${file.getTitle()}</a> 
96        													<small>(${(file.getSize()?number/1000)?string["0.#"]} kB)</small> 
97        											</p> 
98        							 	</#list> 
99        				</#if> 
100              </div> 
101              </br> 
102            </#if> 
103          </#list> 
104        </#if> 
105    </div> 
106     
107    	<#-- -----External link and Attachment----- --> 
108		<#assign showLink = getterUtil.getBoolean(external_link.show_link.getData()) && link_page.getSiblings()?has_content/> 
109		<#assign showAttach = attachment?? && attachment.getData()?has_content /> 
110		<#if showAttach || showLink> 
111	 		<div class="well well-inverse"> 
112				<#if attachment?? && attachment.getData()?has_content> 
113						<h3>${languageUtil.get(locale, "attachments")}</h3> 
114							 	<#list attachment.getSiblings() as attached > 
115							 	   <#if attached.getData()?has_content> 
116    									<#assign url = attached.getData()/> 
117    									<#assign counter = 0 /> 
118    									<#list url?split("/") as x > 
119    											<#if counter == 5 > 
120    													<#assign uuId1 = x /> 
121    											</#if> 
122    											<#assign counter = counter+1 /> 
123    									</#list> 
124    									<#assign c=0 /> 
125    									<#list uuId1?split("?") as y> 
126    											<#if c == 0> 
127    													<#assign uuid = y /> 
128    											</#if> 
129    											<#assign c = c + 1 /> 
130    									</#list> 
131    									<#assign file = dlFileEntryLocalService.getFileEntryByUuidAndGroupId(uuid,groupId)/> 
132    									<#assign extension = file.getExtension() /> 
133    										 
134    									<p> 
135    											<#if themeDisplayValue==true> 
136    													<img alt="${extension}" src="${getFileTypeIconImage(extension)}" class="csm-icon" /> 
137    											</#if> 
138    											<a href="${attached.getData()}" class="dark" target="_blank">${file.getTitle()}</a> 
139    											<small>(${(file.getSize()?number/1000)?string["0.#"]} kB)</small> 
140    									</p>  
141									</#if> 
142							 	</#list> 
143				</#if> 
144				<#if showLink && showAttach> 
145							<div class="with-separator"></div> 
146				</#if> 
147				 
148				<#if showLink> 
149						<h3>${languageUtil.get(locale, "related-link")}</h3> 
150						<#list link_page.getSiblings() as cur_link_page> 
151								<#if cur_link_page.getFriendlyUrl()?has_content || (cur_link_page.link_external?? && cur_link_page.link_external.getData()?has_content) > 
152										<#if cur_link_page.getFriendlyUrl()?has_content> 
153									 			<#assign destinationUrl = cur_link_page.getFriendlyUrl() /> 
154									 			<#assign destinationTarget = "_self" /> 
155									 			<#assign docXml = saxReaderUtil.read(xmlRequest) /> 
156											  <#-- assign redirectUrl = docXml.valueOf("//attribute[name=\"view.jsp-fullContentRedirect\"]/value") / --> 
157											  <#assign redirectUrl = docXml.valueOf("//render-url/text()") /> 
158											  <#-- assign redirectUrl = redirectUrl[0..(redirectUrl?index_of("?")-1)] / --> 
159											  <#if cur_link_page.base_inner_structure_article?? && cur_link_page.base_inner_structure_article.getData()?has_content > 
160														<#assign destArticleInList = cur_link_page.base_inner_structure_article.getData() /> 
161														<#assign destinationUrl =httpUtil.decodeURL(httpUtil.setParameter(destinationUrl,"show",true))/> 
162														<#assign destinationUrl = httpUtil.decodeURL(httpUtil.setParameter(destinationUrl,"title", destArticleInList))/> 
163														<#assign destinationUrl = httpUtil.decodeURL(httpUtil.setParameter(destinationUrl,"show_bcrumb",destArticleInList))/> 
164														<#assign destinationUrl =httpUtil.setParameter(destinationUrl,"redirect",redirectUrl) /> 
165									 			</#if> 
166											 	<#if cur_link_page.base_anchor?? && cur_link_page.base_anchor.getData()!=""> 
167														<#assign destinationUrl = destinationUrl + "#" + cur_link_page.base_anchor.getData() /> 
168											 	</#if> 
169										<#else> 
170												<#assign destinationUrl = cur_link_page.link_external.getData() /> 
171												<#assign destinationTarget = "_blank" /> 
172										</#if> 
173										<#if cur_link_page.link_description.getData()?has_content> 
174												<#assign destinationLabel = cur_link_page.link_description.getData() /> 
175										<#else> 
176												<#assign destinationLabel = destinationUrl /> 
177										</#if> 
178										<p> 
179											<a href="${destinationUrl}" target="${destinationTarget}" class="dark"> 
180												${destinationLabel} 
181											</a> 
182										</p> 
183								</#if> 
184								<#assign canAddDestinationAnchor = true /> 
185								<#assign destinationTarget = "_self" /> 
186								<#assign portalUrl = "/web"+GroupLocalService.getGroup(groupId).getFriendlyURL() /> 
187								<#if cur_link_page.link_to_related?? && getterUtil.getBoolean(cur_link_page.link_to_related.getData())> 
188										<#-- SE l'utente indica che la URL deve essere costruita partendo dai related asset  --> 
189										<#assign articleId = .vars['reserved-article-id'].data /> 
190										<#assign version = .vars['reserved-article-version'].data /> 
191										<#assign article = JournalArticleLocalService.checkArticleResourcePrimKey(groupId, articleId, version?number) /> 
192										<#assign assetEntry = AssetEntryLocalService.getEntry("com.liferay.portlet.journal.model.JournalArticle", article.getResourcePrimKey()?number) /> 
193										<#assign assetLinks = AssetLinkLocalService.getReverseLinks(assetEntry.getEntryId()?number, 0) /> 
194										<#if assetLinks?has_content > 
195												<#list assetLinks as assetLink > 
196														<#assign linkEntry = AssetEntryLocalService.getEntry(assetLink.entryId1?number) /> 
197														<#assign linkEntryClassName = ClassNameLocalService.getClassName(linkEntry.classNameId?number).value /> 
198														<#if linkEntryClassName=="com.liferay.portlet.journal.model.JournalArticle"> 
199																<#-- SE il related asset è un JournalArticle --> 
200																<#assign journalArticleDestination = JournalArticleLocalService.getLatestArticle(linkEntry.getClassPK()) /> 
201																<#assign destinationUrlTitle = journalArticleDestination.getUrlTitle() /> 
202																<#assign linkToLayout = LayoutLocalService.getFriendlyURLLayout(linkEntry.getGroupId(), false, "/dettaglio") /> 
203																<#if linkToLayout?has_content> 
204																		<#assign openInCurrentPage = false /> 
205																		<#assign allPortletsInDestination = linkToLayout.getLayoutType().getAllPortlets() /> 
206																		<#list allPortletsInDestination as portletInDestination> 
207																				<#if (portletInDestination.portletId?starts_with("101_INSTANCE_"))> 
208																						<#assign destinationAssetId = portletInDestination.portletId?replace("101_INSTANCE_","") />  
209																						<#break> 
210																				</#if> 
211																		</#list> 
212																</#if> 
213																<#assign destinationUrl = portalUrl + "/dettaglio/-/asset_publisher/" + destinationAssetId + "/content/" + destinationUrlTitle + "?redirect=" + portalUrl  />  
214																<#assign destinationLabel = linkEntry.getTitleCurrentValue() /> 
215								 
216																<p> 
217																	<a href="${destinationUrl}" target="${destinationTarget}" class="dark"> 
218																		${destinationLabel} 
219																	</a> 
220																</p> 
221														<#else> 
222																<#-- ALTRIMENTI: SE il related asset non è un JournalArticle --> 
223																<#if linkEntryClassName=="com.liferay.portlet.documentlibrary.model.DLFileEntry"> 
224																		<#-- SE il related asset è un Documento --> 
225																		<#assign destinationUrl = "/c/document_library/get_file?uuid=" + linkEntry.getClassUuid() + "&groupId=" + linkEntry.getGroupId() /> 
226																		<#assign destinationTarget = "_blank" /> 
227																		<#assign canAddDestinationAnchor = false /> 
228																		<#assign destinationLabel = linkEntry.getTitle() /> 
229																<#else> 
230																		<#if linkEntryClassName=="com.liferay.portlet.blogs.model.BlogsEntry"> 
231																				 <#assign blogViewURL = "/c/blogs/find_entry?entryId=" +linkEntry.getClassPK()?string /> 
232																				 <#assign destinationUrl = blogViewURL /> 
233																				 <#assign destinationTarget = "_self" /> 
234																				 <#assign destinationLabel = linkEntry.getTitle() /> 
235																		</#if> 
236																</#if> 
237																<p> 
238																		<a href="${destinationUrl}" target="${destinationTarget}" class="dark"> 
239																			${destinationLabel} 
240																		</a> 
241																</p> 
242									 					</#if> 
243							 					</#list>    
244					 					</#if> 
245								</#if> 
246						</#list> 
247				</#if> 
248      </div> 
249		</#if> 
250     <br/>	 
251</div> 
immagine organizzazione innovazione e statistiche organizzazione innovazione
e statistiche
immagine international corner area internazionale international corner
area internazionale