Hiba jelentkezett a sablon feldolgozása során.
Java method "com.sun.proxy.$Proxy80.getFolder(long)" threw an exception when invoked on com.sun.proxy.$Proxy80 object "com.liferay.portlet.documentlibrary.service.impl.DLFolderLocalServiceImpl@6808d575"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign f = folderLocalService.getFol... [in template "20155#20195#1419196" at line 85, column 1] ----
1<!-- -->
2<style >
3.bs-example{
4 margin: 20px;
5}
6
7.bs-callout {
8 padding: 20px;
9 margin: 20px 0;
10 border: 1px solid #eee;
11 border-left-width: 5px;
12 border-radius: 3px;
13}
14.bs-callout h4 {
15 margin-top: 0;
16 margin-bottom: 5px;
17}
18.bs-callout p:last-child {
19 margin-bottom: 0;
20}
21.bs-callout code {
22 border-radius: 3px;
23}
24.bs-callout+.bs-callout {
25 margin-top: -5px;
26}
27.bs-callout-default {
28 border-left-color: #777;
29}
30.bs-callout-default h4 {
31 color: #777;
32}
33.bs-callout-primary {
34 border-left-color: #428bca;
35}
36.bs-callout-primary h4 {
37 color: #428bca;
38}
39.bs-callout-success {
40 border-left-color: #5cb85c;
41}
42.bs-callout-success h4 {
43 color: #5cb85c;
44}
45.bs-callout-danger {
46 border-left-color: #d9534f;
47}
48.bs-callout-danger h4 {
49 color: #d9534f;
50}
51.bs-callout-warning {
52 border-left-color: #f0ad4e;
53}
54.bs-callout-warning h4 {
55 color: #f0ad4e;
56}
57.bs-callout-info {
58 border-left-color: #5bc0de;
59}
60.bs-callout-info h4 {
61 color: #5bc0de;
62}
63
64.mb-0 button {
65 color: black;
66 font-size: 14px;
67}
68
69.card {
70 margin-bottom: 0.5rem;
71}
72
73.card-header {
74 padding: 0;
75}
76.btn:focus {
77 box-shadow: none;
78}
79</style>
80
81<#assign folderLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFolderLocalService")>
82<#assign fileLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")>
83<#assign gid = getterUtil.getLong(groupId)>
84<#assign fid = getterUtil.getLong(folderID.getData())>
85<#assign f = folderLocalService.getFolder(fid)>
86<#assign subFolders = folderLocalService.getFolders(gid,fid)>
87
88<#if ordem.getSiblings()?has_content>
89 <#assign o = "">
90 <#list ordem.getSiblings() as cur_ordem>
91 <#if getterUtil.getBoolean(cur_ordem.getData())>
92 <#assign o = "${o}desc/">
93 <#else>
94 <#assign o = "${o}asc/">
95 </#if>
96 </#list>
97</#if>
98
99
100 <#if (f.description != "")>
101 <b>${f.description}</b>
102 </#if>
103<div class="bs-example">
104 <div class="accordion" id="accordion">
105 <#list o?split("/") as x>
106 <#assign ordem = x>
107 <#if x_index == 0>
108 <#break>
109 </#if>
110 </#list>
111 <#if ordem == "desc">
112 <#assign ordenado = subFolders?sort_by("name")?reverse>
113 <#elseif ordem == "asc">
114 <#assign ordenado = subFolders?sort_by("name")>
115 <#else>
116 <#assign ordenado = subFolders>
117 </#if>
118
119 <#list ordenado as sub>
120 <#if !sub.getName()?starts_with("/")>
121 <div id="conteudo" class="card">
122 <div class="card-header" id="headind${fid}${sub_index}">
123 <h2 class="mb-0">
124 <#if sub.getDescription() != "">
125 <button type="button" class="btn" data-toggle="collapse" data-target="#collapse${fid}${sub_index}" alt="${sub.getName()}">
126 ${sub.getDescription()}
127 </button>
128 <#else>
129 <button type="button" class="btn" data-toggle="collapse" data-target="#collapse${fid}${sub_index}" alt="${sub.getName()}">
130 ${sub.getName()}
131 </button>
132 </#if>
133 </h2>
134 </div>
135 <div id="collapse${fid}${sub_index}" class="collapse" arial-labelledby="headind${fid}${sub_index}" data-parent="#accordion">
136 <div class="card-body">
137 <ul class="list-group">
138 <li class="list-group-item">
139 <#assign files = fileLocalService.getFileEntries(gid, sub.getFolderId())>
140
141 <#list o?split("/") as x>
142 <#assign ordem = x>
143 <#if x_index == 1>
144 <#break>
145 </#if>
146 </#list>
147 <#if ordem == "desc">
148 <#assign ordenado1 = files?sort_by("name")?reverse>
149 <#elseif ordem == "asc">
150 <#assign ordenado1 = files?sort_by("name")>
151 <#else>
152 <#assign ordenado1 = files>
153 </#if>
154
155 <#list ordenado1 as doc>
156 <#if !doc.getTitle()?starts_with("/")>
157 <#assign uet = urlCodec.encodeURL(htmlUtil.unescape(doc.getTitle()))>
158 <#if doc.getDescription() != "">
159 <a href="/documents/${gid}/${sub.getFolderId()}/${uet}" target="_blank" alt="${doc.getDescription()}">${doc.getTitle()}</a>
160 <#else>
161 <a href="/documents/${gid}/${sub.getFolderId()}/${uet}" target="_blank" alt="${doc.getTitle()}">${doc.getTitle()}</a>
162 </#if>
163 <br/>
164 </#if>
165 </#list>
166 <#assign subFoldersa = folderLocalService.getFolders(gid, sub.getFolderId())>
167
168 <#list o?split("/") as x>
169 <#assign ordem = x>
170 <#if x_index == 2>
171 <#break>
172 </#if>
173 </#list>
174 <#if ordem == "desc">
175 <#assign ordenado1 = subFoldersa?sort_by("name")?reverse>
176 <#elseif ordem == "asc">
177 <#assign ordenado1 = subFoldersa?sort_by("name")>
178 <#else>
179 <#assign ordenado1 = subFoldersa>
180 </#if>
181
182 <#list ordenado1 as suba>
183 <#if !suba.getName()?starts_with("/")>
184 <#if (suba_index == 0)>
185 <b>${suba.getName()}</b>
186 <#else>
187 <br/>
188 <b>${suba.getName()}</b>
189 </#if>
190 <#assign files = fileLocalService.getFileEntries(gid, suba.getFolderId())>
191
192 <#list o?split("/") as x>
193 <#assign ordem = x>
194 <#if x_index == 2>
195 <#break>
196 </#if>
197 </#list>
198 <#if ordem == "desc">
199 <#assign ordenado2 = files?sort_by("name")?reverse>
200 <#elseif ordem == "asc">
201 <#assign ordenado2 = files?sort_by("name")>
202 <#else>
203 <#assign ordenado2 = files>
204 </#if>
205
206 <#list ordenado2 as doc>
207 <#if !doc.getTitle()?starts_with("/")>
208 <#assign uet = urlCodec.encodeURL(htmlUtil.unescape(doc.getTitle()))>
209 <br/>     <a href="/documents/${gid}/${suba.getFolderId()}/${uet}" target="_blank">${doc.getTitle()}</a>
210 </#if>
211 </#list>
212 </#if>
213 </#list>
214 </li>
215 </ul>
216 </div>
217 </div>
218 </div>
219 </#if>
220 </#list>
221 </div>
222</div>
Csomópont: liferay-app-56f567f5dc-hcdlw:8080