angle-left Ausschreibung Bundesfreiwilligendienst
Fehler bei der Verarbeitung der Vorlage.
Java method "com.sun.proxy.$Proxy133.getFileEntryByUuidAndGroupId(String, long)" threw an exception when invoked on com.sun.proxy.$Proxy133 object "com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl@6c0ef640"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign Datei = DLAppServiceUtil.getF...  [in template "20116#20152#34305" at line 158, column 21]
----
1<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
2<#assign groupService = serviceLocator.findService("com.liferay.portal.kernel.service.GroupLocalService") /> 
3 
4<#assign groupObj = groupService.getGroup(groupId) /> 
5<#assign groupName = groupObj.getDescriptiveName(locale) /> 
6 
7<#assign layoutSet = groupObj.getPublicLayoutSet() /> 
8<#assign hostname = layoutSet.getVirtualHostname()/> 
9 
10<#assign DatumText = "" /> 
11<#assign Datum_Data = getterUtil.getString(Datum.getData())> 
12<#if validator.isNotNull(Datum_Data)> 
13    <#assign Datum_DateObj = dateUtil.parseDate("yyyy-MM-dd", Datum_Data, locale)> 
14    <#assign DatumText = dateUtil.getDate(Datum_DateObj, "dd.MM.yyyy", locale) /> 
15</#if> 
16 
17<#if viewMode != "view"> 
18    <div class="print-header"> 
19        ${groupName} - https://${hostname} 
20    </div> 
21</#if> 
22 
23<div class="artikel pressemitteilung"> 
24 
25<#if Spitzmarke.getData()!=""> 
26    <h2 class="spitzmarke">${Spitzmarke.getData()}</h2> 
27</#if> 
28    <span class="info pull-right">${DatumText}</span> 
29    <div class="green-line"></div> 
30 
31    <h1 class="h1--large h1">${Ueberschrift.getData()}</h1> 
32 
33<#if BildMitBildunterschrift??> 
34 
35    <#if BildMitBildunterschrift.getSiblings()?has_content> 
36 
37        <#if (BildMitBildunterschrift.getSiblings()?size>1)> 
38            <@imageTextSlider/> 
39        <#else> 
40            <#list BildMitBildunterschrift.getSiblings() as cur_Bild> 
41                <#if cur_Bild.Bild.getData()?has_content> 
42                    <div class="teaser-image"> 
43                        <@createImageTag imageUrl="${cur_Bild.Bild.getData()}" bildunterschrift="${cur_Bild.Bildunterschrift.getData()}"/> 
44                    </div> 
45                </#if> 
46            </#list> 
47 
48        </#if> 
49 
50    </#if> 
51</#if> 
52 
53 
54    <div class="teaser-content"> 
55 
56        <p>${Inhalt.getData()}</p> 
57 
58 
59 
60    <#assign layoutService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService") /> 
61 
62    <#if (WeitereInformationen.getSiblings()?has_content)  && 
63    (WeitereInformationen.getSiblings()?size>0) && 
64    ((WeitereInformationen.getSiblings()[0].Linktext.getData()?has_content) || 
65    (WeitereInformationen.getSiblings()[0].InternerLink.getFriendlyUrl()?has_content)) || 
66    ( (WeitereInformationen.getSiblings()[0].article?? && WeitereInformationen.getSiblings()[0].article.data?has_content) )> 
67 
68        <#assign weitereInformationenListe=WeitereInformationen.getSiblings()/> 
69    <#--  checkbox means now: Schriftzug_WeitereInformationen_ausblenden --> 
70        <#if weitereInformationenListe?size gt 0 > 
71        <div class="more-info"> 
72            <h2 class="h2">Weitere Informationen </h2> 
73        </#if> 
74 
75 
76        <#list weitereInformationenListe as cur_WeitereInformationen> 
77 
78            <#assign tlink=""/> 
79 
80        <#-- if internal link, use page name as default link text --> 
81            <#if (cur_WeitereInformationen.InternerLink??) && 
82            (cur_WeitereInformationen.InternerLink.getFriendlyUrl()?has_content)> 
83 
84                <#assign tlink = cur_WeitereInformationen.InternerLink.getFriendlyUrl()> 
85 
86            <#-- always use relative URL --> 
87                <#if tlink?starts_with("http")> 
88                    <#assign tlink = "/"+tlink?split("/")[3]> 
89                </#if> 
90 
91            <#-- page might have been deleted --> 
92                <#assign tlink_text="Mehr erfahren"> 
93 
94 
95                <#if (layoutService.fetchLayoutByFriendlyURL( getterUtil.getLong(groupId), getterUtil.getBoolean(false), tlink)??)> 
96                    <#assign layout = layoutService.fetchLayoutByFriendlyURL( getterUtil.getLong(groupId), getterUtil.getBoolean(false), tlink) /> 
97                    <#assign tlink_text = layout.getName(locale)/> 
98                </#if> 
99 
100            </#if> 
101 
102            <#assign linktarget=""> 
103 
104            <#if ! tlink?has_content> 
105                <#assign tlink = cur_WeitereInformationen.ExternerLink.getData()> 
106                <#assign linktarget="_blank"> 
107            </#if> 
108 
109            <#if ! tlink?has_content> 
110                <#if (cur_WeitereInformationen.article?? && cur_WeitereInformationen.article.data?has_content)> 
111                    <#assign 
112                    entryInfo = cur_WeitereInformationen.article.data?eval 
113                    entryClassPK = getterUtil.getLong(entryInfo.classPK) 
114                    article = journalArticleLocalService.fetchLatestArticle(entryClassPK) 
115                    tlink = "/-/" + article.urlTitle 
116                    linktarget = "" 
117                    tlink_text = article.getTitle(locale) 
118                    /> 
119                </#if> 
120            </#if> 
121 
122        <#-- overwrite linktext, if editor has set it manually --> 
123            <#if (cur_WeitereInformationen.Linktext.getData()?has_content)> 
124                <#assign tlink_text = cur_WeitereInformationen.Linktext.getData()> 
125            </#if> 
126 
127 
128            <div class="weiterer-link"> 
129 
130                <a class="mehr-link" href="${tlink}" target="${linktarget}" alt="${tlink_text}" 
131                   title="${tlink_text}">${tlink_text}</a> 
132 
133            </div> 
134 
135 
136        </#list> 
137 
138</div> 
139    </#if> 
140 
141    <#if ZumHerunterladen??> 
142 
143        <#if (ZumHerunterladen.PdfDatei.getSiblings()?has_content) && 
144        (ZumHerunterladen.PdfDatei.getSiblings()?size>0) && 
145        (ZumHerunterladen.PdfDatei.getSiblings()[0].getData()?has_content)> 
146 
147 
148       <div class="downloads"> 
149           <h2 class="h2">Zum Herunterladen</h2> 
150 
151            <#list  ZumHerunterladen.PdfDatei.getSiblings() as cur_Datei> 
152                <#if cur_Datei.getData()?has_content> 
153 
154                    <#assign fileUrl = getterUtil.getString(cur_Datei.getData())> 
155                    <#assign fileUid = stringUtil.extractLast(fileUrl, "/")> 
156 
157                    <#assign DLAppServiceUtil = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppService")> 
158                    <#assign Datei = DLAppServiceUtil.getFileEntryByUuidAndGroupId(fileUid,groupId)> 
159 
160                    <#assign downloadURL = fileUrl?substring(0, fileUrl?last_index_of("/")) /> 
161                    <#assign downloadURL = downloadURL?substring(0, downloadURL?last_index_of("/")) /> 
162                    <#assign downloadURL = downloadURL + "/" + htmlUtil.escapeURL(Datei.getTitle()) /> 
163 
164                    <#if (Datei.getDescription()?has_content)> 
165                        <#assign dateiText=Datei.getDescription()> 
166                    <#else> 
167                        <#assign dateiText=Datei.getTitle()> 
168                    </#if> 
169 
170                <#-- Add the filesize to linktext --> 
171                    <#if Datei??> 
172                        <#assign fileSize = ((Datei.getSize()/1024)?round)/> 
173                        <#assign unit="KB"/> 
174 
175                        <#if (fileSize > 1000) > 
176                            <#setting locale="de_DE"> 
177                            <#assign fileSize = (fileSize / 1024)?string["0.#"]/> 
178                            <#assign unit="MB"/> 
179                        </#if> 
180 
181                        <#assign dateiGroesse="["+fileSize+" "+unit+ getAccessibilityInformation(fileUid,groupId) +"]"/> 
182                        <#assign dateiText+= " " + dateiGroesse> 
183                    </#if> 
184 
185                    <div class="weiterer-link"> 
186                        <a href="${downloadURL}" target="_blank" alt="${dateiText}" 
187                           title="${dateiText}">${dateiText}</a><br/> 
188                    </div> 
189 
190                </#if> 
191            </#list> 
192       </div> 
193        </#if> 
194    </#if> 
195 
196 
197 
198    </div> 
199</div> 
200 
201 
202 
203 
204<#-- image text slider --> 
205 
206 
207<#macro imageTextSlider> 
208 
209 
210<section class="carousel-container slider-articlepage"> 
211    <div class="carousel slide carousel-fade" data-ride="carousel" id="carousel"> 
212        <div class="indicators-wrapper"> 
213            <button class="ctrlTogglePlay playing">&nbsp;</button> 
214            <ol class="carousel-indicators"> 
215                <#list BildMitBildunterschrift.getSiblings() as cur_images> 
216                    <li class="${(cur_images?counter == 1)?then('active', '')}" 
217                        data-slide-to="${(cur_images?counter == 1)?then(0, (cur_images?counter - 1))}" 
218                        data-target='#carousel'></li> 
219                </#list> 
220            </ol> 
221        </div> 
222        <a class="left carousel-control" href='#carousel' role="button" data-slide="prev"> 
223            <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span> 
224            <span class="sr-only">Previous</span> 
225        </a> 
226 
227 
228        <a class="right carousel-control" href='#carousel' role="button" data-slide="next"> 
229            <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span> 
230            <span class="sr-only">Next</span> 
231        </a> 
232 
233 
234        <div class="carousel-inner" role="listbox"> 
235            <#list BildMitBildunterschrift.getSiblings() as cur_images> 
236                <div class="${(cur_images?counter == 1)?then('active', '')} item" role="option"> 
237                    <div class="teaser-image"> 
238                        <@createImageTag imageUrl="${cur_images.Bild.getData()}" bildunterschrift="${cur_images.Bildunterschrift.getData()}"/> 
239                    </div> 
240                </div> 
241            </#list> 
242        </div> 
243    </div> 
244</section> 
245 
246 
247<script> 
248    $(document).ready(function () { 
249 
250        $('.ctrlTogglePlay').on('click', function () { 
251 
252            if($(this).hasClass('playing')) { 
253                $('.carousel').carousel('pause'); 
254                // console.log('stop'); 
255            }else { 
256                $('.carousel').carousel('cycle'); 
257                //  console.log('play'); 
258
259 
260            $(this).toggleClass('playing') 
261 
262        }); 
263 
264        $('.carousel').carousel({ 
265            interval: 5000, 
266            pause: "false" 
267        }); 
268    }); 
269</script> 
270 
271 
272</#macro> 
273 
274 
275 
276<#macro createImageTag imageUrl bildunterschrift> 
277 
278    <#assign altTag="alt-tag"> 
279    <#assign bildnachweis=""> 
280 
281    <#assign imageFileUid = stringUtil.extractLast(imageUrl, "/")> 
282 
283    <#if (stringUtil.extractFirst(imageFileUid, "t")??)> 
284 
285        <#assign imageFileUid = stringUtil.extractFirst(imageFileUid, "t")/> 
286        <#assign imageFileUid= imageFileUid?substring(0,imageFileUid?length-1)/> 
287 
288 
289    </#if> 
290 
291 
292    <#assign dlimageFileEntryService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")> 
293 
294    <#assign dlimageFileEntryTypeService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryTypeLocalService")> 
295 
296    <#assign dlFileVersionService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileVersionLocalService")> 
297 
298    <#assign DLAppServiceUtil = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppService")> 
299    <#assign Datei = DLAppServiceUtil.getFileEntryByUuidAndGroupId(imageFileUid,groupId)> 
300 
301    <#assign imageFileEntry = dlimageFileEntryService.getFileEntryByUuidAndGroupId(Datei.getUuid() , Datei.getGroupId() ) /> 
302 
303 
304 
305    <#assign imageFileEntryTypeId = imageFileEntry.getFileEntryTypeId() /> 
306 
307    <#if imageFileEntryTypeId gt 0 > 
308        <#assign imageFileEntryType = dlimageFileEntryTypeService.getDLFileEntryType(imageFileEntryTypeId) /> 
309        <#assign dlFileVersion = dlFileVersionService.getLatestFileVersion(imageFileEntry.getUserId(), imageFileEntry.getFileEntryId()) /> 
310        <#assign fieldsMap = imageFileEntry.getDDMFormValuesMap(dlFileVersion.getFileVersionId()) /> 
311 
312        <#list fieldsMap?keys as ddmFormKey> 
313 
314            <#assign ddmForm = fieldsMap[ddmFormKey]/> 
315 
316            <#list ddmForm.getDDMFormFieldValues() as formField> 
317            <#--name= ${formField.getName()}  value= ${formField.getValue().getString(locale)}<br/>--> 
318 
319                <#if formField.getName() == 'AltTag'> 
320                    <#assign altTag = formField.getValue().getString(locale) /> 
321                </#if> 
322 
323                <#if formField.getName() == 'Bildnachweis'> 
324                    <#assign bildnachweis = formField.getValue().getString(locale) /> 
325                </#if> 
326 
327            </#list> 
328 
329        </#list> 
330 
331 
332    </#if> 
333 
334    <img src="${imageUrl}" alt="${altTag}" title="${altTag}"/> 
335 
336<div class="bildunterschrift">${bildunterschrift}</div> 
337    <#if validator.isNotNull(bildnachweis)> 
338       <div class="bildnachweis">Quelle: ${bildnachweis}</div> 
339    </#if> 
340 
341</#macro> 
342 
343<#function getAccessibilityInformation fileUid,groupId> 
344    <#assign DLAppServiceUtil = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppService")> 
345    <#assign dlFileEntryLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")> 
346    <#assign dlFileEntryTypeLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryTypeLocalService")> 
347    <#assign dlFileVersionLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileVersionLocalService")> 
348 
349    <#assign Datei = dlFileEntryLocalService.getFileEntryByUuidAndGroupId(fileUid,groupId) /> 
350 
351    <#assign fileEntryTypeId = Datei.getFileEntryTypeId() /> 
352 
353    <#if fileEntryTypeId gt 0 > 
354        <#assign imageFileEntryType = dlFileEntryTypeLocalService.getDLFileEntryType(fileEntryTypeId) /> 
355        <#assign dlFileVersion = dlFileVersionLocalService.getLatestFileVersion(Datei.getUserId(), Datei.getFileEntryId()) /> 
356        <#assign fieldsMap = Datei.getDDMFormValuesMap(dlFileVersion.getFileVersionId()) /> 
357 
358        <#list fieldsMap?keys as ddmFormKey> 
359            <#assign ddmForm = fieldsMap[ddmFormKey]/> 
360 
361            <#list ddmForm.getDDMFormFieldValues() as formField> 
362                <#if formField.getName() == 'notAccessible'> 
363                    <#assign notAccessbile = formField.getValue().getString(locale) /> 
364                    <#if getterUtil.getBoolean(notAccessbile)> 
365                        <#return "; nicht barrierefrei" /> 
366                    </#if> 
367                </#if> 
368 
369            </#list> 
370 
371        </#list> 
372    </#if> 
373 
374    <#return "" /> 
375</#function>