An error occurred while processing the template.
Method public static com.liferay.portlet.documentlibrary.model.DLFileEntry com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil.getFileEntryByUuidAndGroupId(java.lang.String,long) throws com.liferay.portal.kernel.exception.PortalException,com.liferay.portal.kernel.exception.SystemException threw an exception
1<#function si num> 
2    <#assign order = num?round?c?length /> 
3    <#assign thousands = ((order - 1) / 3)?floor /> 
4    <#if (thousands < 0)><#assign thousands = 0 /></#if> 
5    <#assign siMap = [ {"factor": 1, "unit": ""}, {"factor": 1000, "unit": " KB"}, {"factor": 1000000, "unit": " MB"}, {"factor": 1000000000, "unit":" GB"}, {"factor": 1000000000000, "unit": " TB"} ]/> 
6    <#assign siStr = (num / (siMap[thousands].factor))?string("0.#") + siMap[thousands].unit /> 
7    <#return siStr /> 
8</#function> 
9 
10<#function getFile path> 
11	<#assign counter = 0 > 
12		<#list path?split("/") as x> 
13			<#if counter == 2> 
14				<#assign groupId = x?number > 
15			</#if> 
16			<#if counter == 5> 
17				<#assign uuid = x?substring(0,36)> 
18			</#if> 
19			<#assign counter = counter+1 > 
20		</#list> 
21	<#assign fileEntry = staticUtil["com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil"]> 
22	<#assign file = fileEntry.getFileEntryByUuidAndGroupId(uuid,groupId)> 
23	<#return file /> 
24</#function> 
25 
26<div class="em_container_colored"> 
27	<div class="em_main-content"> 
28	    <#if headerDC?has_content && headerDC.data?has_content> 
29		    <h1>${headerDC.data}</h1> 
30		</#if> 
31		<#if descDC?has_content && descDC.data?has_content> 
32		<p>${descDC.data}</div> 
33		</#if> 
34</div> 
35 
36<div class="module download-list "> 
37	<div class="row-fluid"> 
38    	<div class="span12"> 
39        	<div class="em_download_list_menu_accordeon">Auswahl</div> 
40            <!-- MENU --> 
41			<div class="span4 em_download_list_menu"> 
42				<#assign bavMenuCounter=0> 
43				<#assign emDlcCounter=0> 
44				<#if leftMenu.getSiblings()?has_content> 
45				<#list leftMenu.getSiblings() as cur_leftMenuTitle> 
46				<div class="left-menu-title">${cur_leftMenuTitle.getData()}</div> 
47					<#if cur_leftMenuTitle["leftMenuLink"].getSiblings()?has_content  && cur_leftMenuTitle["leftMenuLink"].data?has_content> 
48					<#list cur_leftMenuTitle["leftMenuLink"].getSiblings() as cur_leftMenuLink> 
49						<#assign bavMenuCounter = bavMenuCounter + 1> 
50						<#assign emDlcCounter = emDlcCounter + 1> 
51						<!-- left menu link--> 
52							<div id="bavLeftMenu_${bavMenuCounter}" data-toggle="em_dlc_0${emDlcCounter}" class="menu-left-link"> ${cur_leftMenuLink.getData()}</div> 
53						<!-- end left menu link --> 
54					</#list> 
55					</#if> 
56		    	</#list> 
57				</#if> 
58			</div> 
59			<!-- END MENU --> 
60			<!-- CONTENT --> 
61			<div class="span8 em_download_list_content"> 
62				<#assign emDlcCounter=0> 
63				<#assign dlaCounter=0> 
64				<#assign bavIdCounter=0> 
65				<#if leftMenu.getSiblings()?has_content> 
66					<#list leftMenu.getSiblings() as cur_leftMenuTitle> 
67						<#if cur_leftMenuTitle["leftMenuLink"].getSiblings()?has_content  && cur_leftMenuTitle["leftMenuLink"].data?has_content> 
68							<#list cur_leftMenuTitle["leftMenuLink"].getSiblings() as cur_leftMenuLink> 
69								<!-- start right menu--> 
70								<#assign emDlcCounter = emDlcCounter + 1> 
71								<div id="em_dlc_0${emDlcCounter}"> 
72									<#if cur_leftMenuLink["rightMenuHeader"].getSiblings()?has_content && cur_leftMenuLink["rightMenuHeader"].data?has_content> 
73										<#list cur_leftMenuLink["rightMenuHeader"].getSiblings() as cur_rightMenuHeader> 
74											 <!-- right menu header--> 
75												<div class="right-menu-header">${cur_rightMenuHeader.getData()}</div> 
76												<!-- right menu desc --> 
77												<#if cur_leftMenuLink["rightMenuDesc"].getSiblings()?has_content> 
78													<#list cur_leftMenuLink["rightMenuDesc"].getSiblings() as rightMenuDesc> 
79														<div class="right-menu-desc">${rightMenuDesc.data}</div> 
80													</#list> 
81												</#if> 
82												<#assign dlaCounter = dlaCounter + 1> 
83												<!-- start accordion --> 
84												<#assign accordionSize = cur_leftMenuLink["menuTitle"].getSiblings()?size> 
85												<#assign emClass = ''> 
86												<#assign accordionBodyClass = 'collapse'> 
87												<#if accordionSize == 1> 
88													<#assign emClass = 'em_accordion_single'> 
89													<#assign accordionBodyClass = ''> 
90												</#if> 
91												<div class="accordion ${emClass}" id="dla_${dlaCounter}"> 
92													<#if cur_leftMenuLink["menuTitle"].getSiblings()?has_content> 
93													<#list cur_leftMenuLink["menuTitle"].getSiblings() as cur_menuTitle> 
94														<#assign bavIdCounter = bavIdCounter + 1> 
95											    			<div class="accordion-group"> 
96											    				<#if accordionSize != 1> 
97											    				<div class="accordion-heading"> 
98																	<a class="accordion-toggle" data-toggle="collapse" data-parent="#dla_${dlaCounter}" href="#bavMenu_${bavIdCounter}"> ${cur_menuTitle.getData()}</a> 
99																		<svg class="svgicon svgicon--chevron"></svg> 
100																</div> 
101																</#if> 
102																<div id="bavMenu_${bavIdCounter}" class="accordion-body ${accordionBodyClass}"> 
103																			<div class="accordion-inner"> 
104																				<#if cur_menuTitle["documentDescription"]?has_content> 
105																					<#if cur_menuTitle["documentDescription"].getSiblings()?has_content> 
106																						<#list cur_menuTitle["documentDescription"].getSiblings() as cur_documents> 
107																							<div class="row-fluid accordion__item"> 
108																									<div class="span6"> 
109																									 <span class="dla__file--title"> 
110																										<strong>${cur_documents.getData()}</strong> 
111																									 </span> 
112																									</div> 
113																									<#if cur_documents["documentPdf"].getSiblings()?has_content> 
114																										<#list cur_documents["documentPdf"].getSiblings() as pdf> 
115																											<#if pdf.getData()?has_content> 
116																												<div class="span2 ta-right"> 
117 
118																													<#assign file = getFile(pdf.getData())> 
119																													<#assign size = si(file.getSize())> 
120 
121																													<a href="${pdf.getData()}" target="_blank"><svg class="svgicon svgicon--download"> 
122																														<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-download"></use></svg> 
123																														<span class="dla__file--format">PDF<span> 
124																														<span class="dla__file--size">${size}</span> 
125																													</a> 
126																												</div> 
127																											</#if> 
128																										</#list> 
129																									</#if> 
130																									<#if cur_documents["documentDoc"].getSiblings()?has_content> 
131																											<#list cur_documents["documentDoc"].getSiblings() as doc> 
132																												<#if doc.getData()?has_content> 
133 
134																												<#assign file = getFile(doc.getData())> 
135																												<#assign size = si(file.getSize())> 
136																													<div class="span2 ta-right"> 
137																														<a href="${doc.getData()}" target="_blank"><svg class="svgicon svgicon--download"> 
138																														 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-download"></use></svg> 
139																														 <span class="dla__file--format">DOC</span> 
140																														 <span class="dla__file--size">${size}</span> 
141																														</a> 
142																													</div> 
143																												</#if> 
144																											</#list> 
145																									</#if> 
146																									<#if cur_documents["documentPpt"].getSiblings()?has_content> 
147																											<#list cur_documents["documentPpt"].getSiblings() as ppt> 
148 
149																												<#if ppt.getData()?has_content> 
150 
151																												<#assign file = getFile(ppt.getData())> 
152																												<#assign size = si(file.getSize())> 
153 
154																													<div class="span2 ta-right"> 
155																														<a href="${ppt.getData()}" target="_blank"><svg class="svgicon svgicon--download"> 
156																														 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-download"></use></svg> 
157																														 <span class="dla__file--format">PPT</span> 
158																														 <span class="dla__file--size">${size}</span> 
159																														</a> 
160																													</div> 
161																												</#if> 
162																											</#list> 
163																									</#if> 
164																								</div> 
165																					</#list> 
166																				</#if> 
167																			</#if> 
168																 
169								                            	         </div> 
170								                            	       </div> 
171								                            	    </div> 
172																</#list> 
173															</#if> 
174													</div> 
175 
176												<!-- end accordion --> 
177										</#list> 
178									</#if> 
179								</div> 
180							    <!-- end right menu --> 
181							</#list> 
182						</#if> 
183					</#list> 
184				</#if> 
185			</div> 
186			<!-- END CONTENT --> 
187		</div> 
188	</div> 
189</div>