Java method "com.liferay.portlet.documentlibrary.model.impl.DLFileEntryImpl.getContentStream()" threw an exception when invoked on com.liferay.portlet.documentlibrary.model.impl.DLFileEntryImpl object "{\"mvccVersion\": 0, \"ctCollectionId\": 0, \"uuid\": \"a4a5c8ea-3b3b-1431-f226-ef592673918f\", \"fileEntryId\": 147114, \"groupId\": 33627, \"companyId\": 20116, \"userId\": 37443, \"userName\": \"Nawal Hahad\", \"createDate\": \"Fri Apr 12 09:05:16 CEST 2019\", \"modifiedDate\": \"Thu Sep 24 07:06:28 CEST 2020\", \"classNameId\": 0, \"classPK\": 0, \"repositoryId\": 33627, \"folderId\": 750365, \"treePath\": \"/677511/750365/\", \"name\": \"4164\", \"fileName\": \"SDGs-englisch-1320x730.png\", \"extension\": \"png\", \"mimeType\": \"image/png\", \"title\": \"SDGs-englisch-1320x730.png\", \"description\": \"\", \"extraSettings\": \"\", \"fileEntryTypeId\": 0, \"version\": \"1.1\", \"size\": 110657, \"smallImageId\": 0, \"largeImageId\": 0, \"custom1ImageId\": 0, \"custom2ImageId\": 0, \"manualCheckInRequired\": false, \"lastPublishDate\": null}"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: tmpImageBag = ImageToolUtil.read(file... [in template "20116#20152#BKS-INFO-GRAPHIC" in function "getImageData" at line 90, column 25] ----
1<#assign
2 DLFileEntryService = serviceLocator.findService('com.liferay.document.library.kernel.service.DLFileEntryService')
3 ImageToolUtil = serviceLocator.findService('com.liferay.portal.kernel.image.ImageToolUtil')
4 ImageService = serviceLocator.findService('com.liferay.portal.kernel.service.ImageService')
5/>
6
7${Content.getData()}
8
9<#if Image.getData()?? && Image.getData() != "">
10
11 <#assign
12 pswpGalleryId = "pswp-gallery" + randomNamespace
13
14 altText = Image.getAttribute("alt")
15
16 imageData = getImageData(Image)
17
18 <#-- linkText = imageData["title"]
19 linkTitle = languageUtil.format(locale, "download-x", linkText, false)
20 linkSubText = ' <span class="file-info">(' + imageData["fileType"]?upper_case + ' - ' + formatFilesize(imageData["fileSize"]?number) + ')</span>' -->
21
22 imageSize = imageData["width"] + 'x' + imageData["height"]
23 />
24 <#if !Image.getAttribute("alt")?? || Image.getAttribute("alt") == "">
25 <#assign
26 altText = imageData["description"]
27 />
28 </#if>
29
30 <div id="${pswpGalleryId}" class="pswp-gallery" itemscope itemtype="http://schema.org/ImageGallery">
31 <figure class="pspw-gallery-item content-media-element media-element-info" itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject">
32 <a href="${Image.getData()}" title="<@liferay.language key="show-image" />" itemprop="contentUrl" data-size="${imageSize}">
33 <img data-fileentryid="${Image.getAttribute("fileEntryId")}" alt="${altText}" src="${Image.getData()}" itemprop="thumbnail" />
34 </a>
35 <figcaption class="sr-only" itemprop="caption description">${altText}</figcaption>
36 </figure>
37 </div>
38 <#--
39 <p>
40 <a class="link-icon link-download" href="${Image.getData()}" title="${linkTitle}" download target="_blank">${linkText} ${linkSubText}</a>
41 </p>
42 -->
43
44 <script>
45 Liferay.Loader.require([
46 'bks-main-theme-js-modules@2.0.0/photoswipe/photoswipe.min',
47 'bks-main-theme-js-modules@2.0.0/photoswipe/photoswipe-ui-default.min',
48 'bks-main-theme-js-modules@2.0.0/photoswipe/photoswipe-from-dom'
49 ],
50 function( PhotoSwipe, PhotoSwipeUI_Default, PhotoSwipeFromDOM) {
51 PhotoSwipeFromDOM(".pswp-gallery", PhotoSwipe, PhotoSwipeUI_Default);
52 },
53 function(error) {
54 console.error(error);
55 }
56 );
57 </script>
58</#if>
59
60<#function getImageData Image>
61 <#assign imageData = {
62 "image" : "",
63 "title" : "",
64 "description" : "",
65 "fileType" : "",
66 "fileSize" : 0,
67 "width" : 0,
68 "height" : 0
69 }
70 />
71 <#if Image.getAttribute("id")?? && Image.getAttribute("id") != "">
72 <#assign
73 tmpImage = ImageService.getImage(Image.getAttribute("id")?number)
74
75 imageData = {
76 "image" : tmpImage,
77 "title" : Image.getAttribute("title"),
78 "description" : "",
79 "fileType" : tmpImage.getType(),
80 "fileSize" : tmpImage.getSize(),
81 "width" : tmpImage.getWidth(),
82 "height" : tmpImage.getHeight()
83 }
84 >
85 <#else>
86 <#assign fileEntry = getDLFileEntry(Image)>
87
88 <#assign
89 <#-- It's necessary to convert into ImageBag first to prevent authorization issue caused by company id beein 0/null on image -->
90 tmpImageBag = ImageToolUtil.read(fileEntry.getContentStream())
91 tmpImage = tmpImageBag.getRenderedImage()
92
93 imageData = {
94 "image" : tmpImage,
95 "title" : fileEntry.getTitle(),
96 "description" : fileEntry.getDescription(),
97 "fileType" : fileEntry.getExtension(),
98 "fileSize" : fileEntry.getSize(),
99 "width" : tmpImage.getWidth(),
100 "height" : tmpImage.getHeight()
101 }
102 >
103 </#if>
104
105 <#return imageData>
106</#function>
107
108<#function getDLFileEntry fileEntry>
109 <#assign dlFileEntry = ''>
110 <#if fileEntry.getAttribute("fileEntryId")?? && fileEntry.getAttribute("fileEntryId") != "">
111 <#assign
112 dlFileEntry = DLFileEntryService.getFileEntry(fileEntry.getAttribute("fileEntryId")?number)
113 />
114 <#else>
115 <#assign
116 dlFileEntry = getDLFileEntryFromUrl(fileEntry.getData())
117 />
118 </#if>
119 <#return dlFileEntry>
120</#function>
121
122<#function getDLFileEntryFromUrl fileUrl>
123 <#assign counter = 0 >
124 <#list "${fileUrl}"?split("/") as pathSegemtent>
125 <#if counter == 2>
126 <#assign groupId = pathSegemtent?number >
127 </#if>
128 <#if counter == 5>
129 <#assign subCounter = 0 >
130 <#list "${pathSegemtent}"?split("?") as subSegemtent>
131 <#if subCounter == 0>
132 <#assign uuId = subSegemtent >
133 </#if>
134 <#assign subCounter = subCounter+1 >
135 </#list>
136 </#if>
137 <#assign counter = counter+1 >
138 </#list>
139
140 <#assign dlFileEntry = DLFileEntryService.getFileEntryByUuidAndGroupId(uuId,groupId) >
141
142 <#return dlFileEntry>
143</#function>
144
145<#function formatFilesize fileSize>
146 <#assign GB = 1000000000 />
147 <#assign MB = 1000000 />
148 <#assign KB = 1000 />
149
150 <#if fileSize < MB >
151 <#assign val = fileSize / 1000 />
152 <#return val?string("###,##0.#")+'KB' >
153 <#elseif fileSize < GB >
154 <#assign val = fileSize / 1000000 />
155 <#return val?string("###,##0.#")+'MB' >
156 <#else>
157 <#assign val = fileSize />
158 <#return val?string("###,##0.#")+'B' >
159 </#if>
160</#function>

Po poročilu o revščini avstrijskega statističnega urada 18 odstotkom avstrijskega prebivalstva grozi revščina. S finančnim izobraževanjem, pokojninskimi, varčevalnimi in naložbenimi produkti lahko raznoliko prispevamo k doseganju 1. cilja.

Izobraževanje, usposabljanje in doživljenjsko učenje so osnovni pogoji za preprečevanje brezposelnosti tako pri mladih kot starejših ljudeh, obenem pa tudi za krepitev gospodarske lokacije. V BKS Bank z izobraževanjem in usposabljanjem svojih zaposlenih ter financiranjem izobraževalnih ustanov in sponzoriranjem izobraževanj izvajamo ukrepe za izboljšanje finančne pismenosti prebivalstva.

V BKS Bank si prizadevamo za enakost spolov – znotraj svoje institucije smo tako denimo razvili karierni program za ženske, prav tako pa redno podpiramo projekte, ki spodbujajo enakost spolov.

Evropa je trenutno še vedno močno odvisna od fosilnih goriv. Uspešen prehod na obnovljive vire energije je ključnega pomena za doseganje ciljev sporazuma Green Deal. BKS Bank lahko ta prehod podpre tako v okviru operativne ekologije kot tudi s trajnostnim financiranjem in naložbami.

Ta cilj vpliva na celotno verigo ustvarjanja vrednosti v BKS Bank – od naših dobaviteljev in zaposlenih pa vse do naših strank – in ponuja mnogo možnosti, s katerimi je mogoče vplivati na pozitiven razvoj v naših regijah.

BKS Bank je bila prvotno ustanovljena kot banka, ki bi poslovala izključno s podjetji, zato imamo dobre odnose s številnimi industrijskimi podjetji. Pri tem cilju vidimo tudi povezavo s trajnostnim razvojem mest in lokalnih skupnosti, opredeljenem v 11. cilju, in z našimi dobavitelji komunalnih storitev.

Dostop do cenovno dosegljivih stanovanj ter podnebno nevtralna usmeritev mest in občin sta ena od osrednjih elementov 11. cilja trajnostnega razvoja, naša banka pa lahko s svojo ponudbo izdelkov prispeva k doseganju tega cilja.

Trajnostni produkti so del naše glavne dejavnosti, prav tako svetovanje v zvezi s subvencijami in investicijsko financiranje naših strank. Kot banka želimo izkoristiti priložnost, da k trajnostnemu delovanju spodbudimo tudi podjetja.

Varstvo podnebja je eden največjih izzivov današnjega časa. V BKS Bank z mnogimi ukrepi že zdaj pomembno prispevamo k doseganju cilja 2 °C. V svoji strategiji varstva podnebja smo določili cilje za prihodnja leta.