Energiemanagement - Dyckerhoff Germany
An error occurred while processing the template.
Java method "com.sun.proxy.$Proxy127.getFileEntryByUuidAndGroupId(String, long)" threw an exception when invoked on com.sun.proxy.$Proxy127 object "it.ariadne.buzzi.dlFileEntryServiceWrapper.DlFileEntryServiceWrapper@24352209"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign dlDocument = dlAppService.get... [in template "20116#20152#56374" at line 45, column 32] ----
1<#include "${templatesPath}/SOCIAL-SHARE-MACRO" />
2<#assign dlAppService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppService") />
3<#assign SPACE_KB = 1024 />
4<#assign SPACE_MB = SPACE_KB?int * 1024 />
5<#assign SPACE_GB = SPACE_MB?int * 1024 />
6<#assign SPACE_TB = SPACE_GB?int * 1024 />
7
8<#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext() />
9<#assign themeDisplay = serviceContext.getThemeDisplay() />
10<#assign url = themeDisplay.getPortalURL() + themeDisplay.getURLCurrent() />
11
12<#assign portletPreferences = themeDisplay.getPortletDisplay().getPortletSetup() />
13<#assign preferencesMap = portletPreferences.getMap() />
14<#assign enableOpenGraph = "false" >
15<#if preferencesMap["enableOpenGraph"]??>
16 <#assign enableOpenGraphMap = preferencesMap["enableOpenGraph"] />
17 <#assign enableOpenGraph = enableOpenGraphMap[0] />
18</#if>
19<#assign
20 imageWidth = 600
21 imageHeight = 600
22/>
23
24<article class="webcontent">
25
26 <div class="webcontent__text">
27 <#if Paragraph.getSiblings()?has_content >
28
29 <#list Paragraph.getSiblings() as p>
30
31 <h2>${p.ParagraphTitle.data}</h2>
32
33 <p> ${p.ParagraphBody.data} </p>
34
35 <#if p.ParagraphFile.getSiblings()?has_content >
36
37 <div class="file-list">
38
39 <#list p.ParagraphFile.getSiblings() as file>
40
41 <#if file?? && validator.isNotNull(file.data) >
42 <#assign urlSplitted = file.data?split("/") />
43 <#assign indexToken = urlSplitted?size - 1 />
44 <#assign uuid = urlSplitted[indexToken]?split("?")[0] />
45 <#assign dlDocument = dlAppService.getFileEntryByUuidAndGroupId(uuid,groupId) />
46 <#assign dlDocumentSize = dlDocument.size?int />
47
48 <#if dlDocumentSize lt SPACE_KB>
49 <#assign dlDocumentSize = dlDocumentSize?round?string + " Byte" />
50 <#elseif dlDocumentSize lt SPACE_MB>
51 <#assign dlDocumentSize = dlDocumentSize / SPACE_KB />
52 <#assign dlDocumentSize = dlDocumentSize?round?string + " KB" />
53 <#elseif dlDocumentSize lt SPACE_GB >
54 <#assign dlDocumentSize = dlDocumentSize / SPACE_MB />
55 <#assign dlDocumentSize = dlDocumentSize?round?string + " MB" />
56 <#elseif dlDocumentSize lt SPACE_TB>
57 <#assign dlDocumentSize = dlDocumentSize / SPACE_GB />
58 <#assign dlDocumentSize = dlDocumentSize?round?string + " GB" />
59 <#else>
60 <#assign dlDocumentSize = dlDocumentSize / SPACE_TB />
61 <#assign dlDocumentSize = dlDocumentSize?round?string + " TB" />
62 </#if>
63
64 <div class="file has-icon">
65 <i class="fa fa-file-pdf-o" aria-hidden="true"></i>
66 <div class="file__name">
67 <#assign fileTitleSplit= dlDocument.getTitle()?split(".pdf") />
68 <a href="${file.data}" title="${dlDocument.getTitle()}" class="file__link" target="_blank">${fileTitleSplit[0]}
69 </a>
70 </div>
71 <div class="file__info">(${dlDocument.extension?upper_case} ${dlDocumentSize})</div>
72 </div>
73
74 </#if>
75
76 </#list>
77
78 </div>
79 </#if>
80 </#list>
81
82 <#if enableOpenGraph == "true">
83 <@shareContent title="${Paragraph.getSiblings()[0].ParagraphTitle.data}" summary="${Paragraph.getSiblings()[0].ParagraphBody.data}" detailURL="${url}" imageURL=""/>
84 </#if>
85 </#if>
86
87 </div>
88 <#include "${templatesPath}/SLIDER_MASTER" />
89</article>
90
91<#if LinkToPage?? && validator.isNotNull(LinkToPage.data)>
92 <div class="webcontent__link">
93 <a href="${LinkToPage.data}" title="${LinkLabel.data}" class="btn-link">${LinkLabel.data}</a>
94 </div>
95</#if>