Data
Dal
Al

Pubblicazioni

Filtri

Contenuto con Pubblicazioni Corpi Veicoli Marittimi .

Si è verificato un errore nell'elaborarazione del modello.
Java method "com.sun.proxy.$Proxy96.getDLFileEntryByUuidAndGroupId(String, long)" threw an exception when invoked on com.sun.proxy.$Proxy96 object "com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl@a6b1222"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign dlFileEntry = dlFileEntryLoca...  [in template "20099#20135#52257" at line 76, column 25]
----
1<#assign dlFileEntryLocalService = serviceLocator.findService( 
2	"com.liferay.document.library.kernel.service.DLFileEntryLocalService") /> 
3<#assign assetEntryLocalService = serviceLocator.findService( 
4	"com.liferay.asset.kernel.service.AssetEntryLocalService") /> 
5<#assign LayoutService = serviceLocator.findService( 
6	"com.liferay.portal.kernel.service.LayoutService") /> 
7<#assign dlAppLocalService = serviceLocator.findService( 
8	"com.liferay.document.library.kernel.service.DLAppLocalService") /> 
9<#assign DLUtil = 
10	staticUtil["com.liferay.document.library.kernel.util.DLUtil"] /> 
11 
12<#assign imagePathTheme = themeDisplay.getPathThemeImages() /> 
13 
14<#setting locale = themeDisplay.locale /> 
15 
16<#if !entries?has_content> 
17    <#if !themeDisplay.isSignedIn()> 
18        ${renderRequest.setAttribute("PORTLET_CONFIGURATOR_VISIBILITY", true)} 
19    </#if> 
20 
21	<div class="alert alert-info"> 
22        <@liferay_ui["message"] key="there-are-no-results" /> 
23	</div> 
24</#if> 
25 
26<div class="publication-list"> 
27    <#assign portlet_display = portletDisplay /> 
28    <#assign portlet_title = htmlUtil.escape(portlet_display.getTitle()) /> 
29    <#assign portlet_display_name = htmlUtil.escape(portlet_display.getPortletDisplayName()) /> 
30 
31    <#if portlet_title != portlet_display_name> 
32        <h3 class="section-title"> 
33            ${portlet_title} 
34        </h3> 
35    </#if> 
36	<div class="publication-list-container"> 
37		<#list entries as entry> 
38            <#assign assetRenderer = entry.assetRenderer /> 
39            <#assign entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale)) /> 
40            <#assign viewURL = assetPublisherHelper.getAssetViewURL( 
41                renderRequest, renderResponse, assetRenderer, entry, 
42                !stringUtil.equals(assetLinkBehavior, "showFullContent")) /> 
43 
44            <#assign title = "" /> 
45            <#assign date = "" /> 
46            <#assign customSummary = "" /> 
47            <#assign hashtags = ""> 
48            <#assign urlDoc = "" /> 
49            <#assign docType = "" /> 
50            <#assign doc = "" /> 
51            <#assign link = "" /> 
52 
53            <#if (entry.className = "com.liferay.journal.model.JournalArticle")> 
54                <#assign journalArticle = assetRenderer.getArticle() > 
55                <#assign document = saxReaderUtil.read(journalArticle.getContentByLocale(themeDisplay.languageId)) /> 
56                <#assign rootElement = document.getRootElement() /> 
57 
58                <#assign displayDate= journalArticle.getDisplayDate()?date /> 
59 
60                <#if validator.isNotNull(displayDate)> 
61                    <#assign dateString = getterUtil.getString(displayDate?string.long)> 
62                <#else> 
63                    <#assign dateString = ""> 
64                </#if> 
65 
66                <#assign docTypePath = "//dynamic-element[@name='documento']" /> 
67                <#if rootElement.selectSingleNode(docTypePath)?? && rootElement.selectSingleNode(docTypePath) != ""> 
68                    <#assign doc = rootElement.selectSingleNode(docTypePath).getStringValue() ! "" /> 
69                    <#if doc?trim?has_content> 
70                        <#assign doc = doc?trim /> 
71                        <#assign docJson = jsonFactoryUtil.createJSONObject(doc) /> 
72 
73                        <#assign groupId = docJson.getLong("groupId") /> 
74                        <#assign uuId = docJson.getString("uuid") /> 
75 
76                        <#assign dlFileEntry = dlFileEntryLocalService.getDLFileEntryByUuidAndGroupId( 
77                            uuId, groupId?number) /> 
78                        <#assign assetEntry = assetEntryLocalService.getEntry( 
79                            "com.liferay.document.library.kernel.model.DLFileEntry", dlFileEntry.fileEntryId) /> 
80                        <#assign assetRenderer = assetEntry.assetRenderer /> 
81                        <#assign classPK = assetEntry.getClassPK() /> 
82                        <#assign fileEntry = dlAppLocalService.getFileEntry(classPK) /> 
83                        <#assign fileVersion = fileEntry.getFileVersion() /> 
84                        <#assign urlDoc = DLUtil.getPreviewURL(fileEntry, fileVersion, themeDisplay, "") /> 
85                        <#assign docType = dlFileEntry.getExtension() /> 
86                    </#if> 
87                </#if> 
88 
89                <#assign linkPath = "//dynamic-element[@name='linkEsterno']" /> 
90                <#if rootElement.selectSingleNode(linkPath)?? && rootElement.selectSingleNode(linkPath) != ""> 
91                    <#assign link = rootElement.selectSingleNode(linkPath).getStringValue() ! "" /> 
92                <#else> 
93                    <#assign link = "" /> 
94                </#if> 
95 
96                <#assign titlePath = "//dynamic-element[@name='titolo']" /> 
97                <#if rootElement.selectSingleNode(titlePath)?? && rootElement.selectSingleNode(titlePath) != ""> 
98                    <#assign title = rootElement.selectSingleNode(titlePath).getStringValue() ! "" /> 
99                <#else> 
100                    <#assign title = "" /> 
101                </#if> 
102 
103                <#assign customSummaryPath = "//dynamic-element[@name='testo']" /> 
104                <#if rootElement.selectSingleNode(customSummaryPath)?? && rootElement.selectSingleNode(customSummaryPath) != ""> 
105                    <#assign customSummary = rootElement.selectSingleNode(customSummaryPath).getStringValue() ! ""/> 
106                <#else> 
107                    <#assign customSummary = "" /> 
108                </#if> 
109 
110                <#assign hashtagsPath = "//dynamic-element[@name='hashtag']" /> 
111                <#if rootElement.selectSingleNode(hashtagsPath)?? && rootElement.selectSingleNode(hashtagsPath)?has_content> 
112                    <#assign hashtags = (rootElement.selectNodes(hashtagsPath))! ""> 
113                <#else> 
114                    <#assign hashtags = "" /> 
115                </#if> 
116 
117	            <div class="publication-card"> 
118		            <div class="content-card"> 
119 
120                        <#if doc?? && doc?trim != ""> 
121                            <a class="card-link" target="_blank" href="${urlDoc?html}"></a> 
122 
123                            <#if docType != "pdf" && 
124	                             docType != "xls" && 
125	                             docType != "xlsx" && 
126	                             docType != "zip" && 
127	                             docType != "rar" && 
128	                             docType != "7z" 
129
130                                <#assign docType = "generic_file" /> 
131                            </#if> 
132 
133	                        <img 
134		                        alt="${docType}" 
135		                        class="media-type-icon card-icon" 
136		                        src="${imagePathTheme}/vendor/files/${docType}.svg" 
137		                        width="20" 
138	                        /> 
139                        </#if> 
140 
141                        <#if link?? && link?trim != ""> 
142                            <a class="card-link" target="_blank" href="${link?html}"></a> 
143 
144                            <img 
145                                alt="Link" 
146                                class="media-type-icon card-icon" 
147                                src="${imagePathTheme}/vendor/files/link.svg" 
148                                width="20" 
149                            /> 
150                        </#if> 
151                         
152			            <p class="card-date">${dateString}</p> 
153			            <h4 class="card-title">${title}</h4> 
154			            <div class="card-summary"> 
155				            <article> 
156					            ${customSummary} 
157				            </article> 
158			            </div> 
159		            </div> 
160		            <div class="footer-card"> 
161			            <div class="text hashtags"> 
162				            <#if hashtags?has_content> 
163                                <#list hashtags as hashtag> 
164                                    <#if (hashtag.getStringValue()?trim)!=""> 
165							            #${hashtag.getStringValue()?trim} 
166                                    </#if> 
167                                </#list> 
168				            </#if> 
169			            </div> 
170			            <div class="card-social-links"> 
171                            <@getSocialBookmarks /> 
172			            </div> 
173		            </div> 
174	            </div> 
175            </#if> 
176        </#list> 
177	</div> 
178</div> 
179 
180<#macro getSocialBookmarks> 
181    <@liferay_social_bookmarks["bookmarks"] 
182	    className=entry.getClassName() 
183	    classPK=entry.getClassPK() 
184	    displayStyle="${socialBookmarksDisplayStyle}" 
185	    target="_blank" 
186	    title=entry.getTitle(locale) 
187	    url=viewURL 
188    /> 
189</#macro>