Auditoria Interna Auditoria Interna

Um erro ocorreu enquanto processava o modelo.
Unable to parse Velocity template
1<style type="text/css"> 
2    .bs-example { 
3        margin: 20px; 
4
5 
6    .aui .collapse.in.collapsed { 
7        display: block; 
8
9 
10    .aui .collapse.collapsed { 
11        display: none; 
12
13 
14    .panel-title .glyphicon { 
15        font-size: 14px; 
16
17</style> 
18 
19#set($folderLocalService=$serviceLocator.findService("com.liferay.portlet.documentlibrary.service.DLFolderLocalService")) 
20#set($fileLocalService = $serviceLocator.findService("com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService")) 
21 
22#set($metadata2 = $serviceLocator.findService("com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService")) 
23#set($type = $serviceLocator.findService("com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService")) 
24#set($gid = $getterUtil.getLong($request.get("theme-display").get("scope-group-id")))  
25 
26##set($gid = $getterUtil.getLong($groupId)) 
27#set($fid = $getterUtil.getLong($folderID.getData()))  
28#set($subFolders = $folderLocalService.getFolders($gid,$fid)) 
29##PASTA1-ARQUIVO1-PASTA2-ARQUIVO2 
30<tools> 
31    <toolbox scope="application"> 
32        <tool class="org.apache.velocity.tools.generic.SortTool"/> 
33    </toolbox> 
34</tools> 
35#if ($ordem) 
36    #set($o = "name:" + $ordem.getData()) 
37#else 
38    #set($o = "name:asc") 
39#end 
40#set($i = 1) 
41 
42<hr style="margin-top:-10px"/> 
43<div > 
44    #set($arquivos = $getterUtil.getLong(0)) 
45    #set($filesCount = $fileLocalService.getFileEntriesCount($gid, $fid)) 
46    #set($f = $folderLocalService.getFolder($fid)) 
47 
48    #if (!$ordem.getSiblings().isEmpty()) 
49        #set($ordemDesejada = 1) ##PASTA 
50        #set($i = 1) 
51        #set($o = "asc") 
52        #foreach ($cur_ordem in $ordem.getSiblings()) 
53            #if($i == $ordemDesejada) 
54                #if ($getterUtil.getBoolean($cur_ordem.getData())) 
55                    #set($o = "desc") 
56                #end 
57            #end 
58            #set($i = $i + 1) 
59        #end 
60    #end  
61    #foreach($sub in $sortTool.sort($subFolders,["name:$o"]) ) ##foreach($sub in $subFolders) 
62        #if($sub.getName().substring(0,1) != "/") 
63            #set($arquivos = $arquivos + 1) 
64            <div class="panel panel-default"> 
65                <div class="panel-heading"> 
66                    <h4 class="panel-title" data-toggle="tooltip" data-placement="top" title="por $sub.getUserName()"> 
67                        <a data-toggle="collapse" href="#collapse$velocityCount"> 
68                            <span class="glyphicon glyphicon-plus"></span> 
69                            $sub.getName()</a> 
70                    </h4> 
71                </div> 
72 
73                <div style="padding:10px" id="collapse$velocityCount" class="panel-collapse collapse collapsed"> 
74                    #if ($sub.description != "") 
75                        $sub.description<br><br> 
76                    #end 
77                    #set($filesCount = $fileLocalService.getFileEntriesCount($gid, $sub.getFolderId())) 
78                    #if ($filesCount > 0) 
79                        <br/> 
80                        #set($files = $fileLocalService.getFileEntries($gid, $sub.getFolderId())) 
81                        <ul style="padding-left: 20px"> 
82 
83                            #if (!$ordem.getSiblings().isEmpty()) 
84                                #set($ordemDesejada = 2) ##ARQUIVO 
85                                #set($i = 1) 
86                                #set($o = "asc") 
87                                #foreach ($cur_ordem in $ordem.getSiblings()) 
88                                    #if($i == $ordemDesejada) 
89                                        #if ($getterUtil.getBoolean($cur_ordem.getData())) 
90                                            #set($o = "desc") 
91                                        #end 
92                                    #end 
93                                    #set($i = $i + 1) 
94                                #end 
95                            #end  
96 
97                            #foreach($doc in $sortTool.sort($files,["title:$o"]) ) 
98                                #if($doc.getTitle().substring(0,1) != "/") 
99                                    #set($uet = $httpUtil.encodeURL($htmlUtil.unescape($doc.getTitle()))) 
100                                    <li style="line-height: 1.5em"> 
101                                        <a 
102                                            href="/documents/$gid/$sub.getFolderId()/$uet" 
103                                            data-toggle="tooltip" 
104                                            data-placement="top" 
105                                            title="por $doc.getUserName(), em $dateTool.format('d-M-yyyy H:m:s', $doc.getModifiedDate())" 
106                                            target="_blank">$doc.getTitle()</a> 
107                                        #if ($doc.description != "") 
108                                            <small style="font-weight: 100">$doc.description</small> 
109                                        #end 
110                                    </li> 
111                                #end 
112                            #end 
113                        </ul> 
114                    #end  
115 
116                    #set($subFolders2 = $folderLocalService.getFolders($gid,$sub.getFolderId())) 
117                    #if (!$ordem.getSiblings().isEmpty()) 
118                        #set($ordemDesejada = 3) ##PASTA 
119                        #set($i = 1) 
120                        #set($o = "asc") 
121                        #foreach ($cur_ordem in $ordem.getSiblings()) 
122                            #if($i == $ordemDesejada) 
123                                #if ($getterUtil.getBoolean($cur_ordem.getData())) 
124                                    #set($o = "desc") 
125                                #end 
126                            #end 
127                            #set($i = $i + 1) 
128                        #end 
129                    #end  
130                    #foreach($sub2 in $sortTool.sort($subFolders2,["name:$o"]) )  
131                        #if($sub2.getName().substring(0,1) != "/") 
132                            #set($filesCount = $fileLocalService.getFileEntriesCount($gid, $sub2.getFolderId())) 
133                            <strong>$sub2.getName()</strong><br/> 
134                            #if ($sub2.description != "") 
135                                <small>$sub2.description</small> 
136                                <br/> 
137                            #end 
138                            #if ($filesCount > 0)  
139                                #set($files = $fileLocalService.getFileEntries($gid, $sub2.getFolderId()))  
140                                <ul> 
141                                    #if (!$ordem.getSiblings().isEmpty()) 
142                                        #set($ordemDesejada = 4) ##ARQUIVO 
143                                        #set($i = 1) 
144                                        #set($o = "asc") 
145                                        #foreach ($cur_ordem in $ordem.getSiblings()) 
146                                            #if($i == $ordemDesejada) 
147                                                #if ($getterUtil.getBoolean($cur_ordem.getData())) 
148                                                    #set($o = "desc") 
149                                                #end 
150                                            #end 
151                                            #set($i = $i + 1) 
152                                        #end 
153                                    #end  
154                                    #foreach($doc in $sortTool.sort($files,["title:$o"]) ) 
155                                        #if($doc.getTitle().substring(0,1) != "/") 
156                                            #set($uet = $httpUtil.encodeURL($htmlUtil.unescape($doc.getTitle()))) 
157                                            <li style="line-height: 1.5em"> 
158                                              #if ($doc.getMimeType() != "application/octet-stream") 
159                                                <a 
160                                                    href="/documents/$gid/$sub2.getFolderId()/$uet" 
161                                                    data-toggle="tooltip" 
162                                                    data-placement="top" 
163                                                    title="PDF por $doc.getUserName() em $dateTool.format('d-M-yyyy H:m:s', $doc.getModifiedDate())" 
164                                                    target="_blank">$doc.getTitle()</a> 
165                                                #if ($doc.description != "") 
166                                                    <small style="font-weight: 100">$doc.description</small> 
167                                                #end 
168                                              #else 
169                                                <a 
170                                                    href="/documents/$gid/$sub2.getFolderId()/$uet" 
171                                                    data-toggle="tooltip" 
172                                                    data-placement="top" 
173                                                    title="LINK por $doc.getUserName() em $dateTool.format('d-M-yyyy H:m:s', $doc.getModifiedDate())" 
174                                                    target="_blank"> 
175                                                    $doc.getTitle() </a> 
176                                                    <br/><br/>  
177                                                     
178                                                    DOC  $doc <br/><br/> 
179                                                    ##UET Nome do Arquivo  $uet <br/><br/> 
180                                                    ##Doc.uuid $doc.getUuid() <br/><br/> 
181                                                     
182                                                    ##Doc.groupId $doc.getGroupId() <br/><br/> 
183                                                     
184                                                    ##set($uuuid = $doc.getUuid()) 
185                                                    ##set($ggroupId = $doc.getGroupId()) 
186                                                     
187                                                     
188                                                    ##set($fileEntry = $doc.getFileEntryId())  
189                                                     
190                                                     
191                                                    #set($fileEntry = $doc.getFolder())  
192                                                    <br/><br/> 
193                                                    File $fileEntry 
194                                                     
195                                                    #set ($ddmStructures = $fileEntry.getFileEntryType.getDDMStructures()) 
196 
197 #foreach ($ddmStructure in $ddmStructures)  
198 #set($dlFileEntryMetadata = $metadata2.getFileEntryMetadata($ddmStructure.getStructureId(), $fileEntry.getLatestFileVersion(true).getFileVersionId())) 
199 
200 
201 
202 
203 
204                                                     
205                                                    <br/><br/> 
206                                                    #set($fileEntryTypeId = $fileEntry.getFileEntryTypeId()) 
207                                                    <br/><br/> 
208                                                    ##FileEntryType $doc.getFileEntryTypeId() 
209 
210 
211 
212                                                    ##FileEntryTypeId $fileEntryTypeId 
213                                                     
214                                                    ##set ($dlFileEntryType = $type.getFileEntryType($fileEntryTypeId))  
215                                                     
216                                                    ##set($dlFileEntryType = $type.getFileEntryType($fileEntryType))  
217                                                    <br/><br/> 
218                                                    ##FileEntryType $dlFileEntryType 
219                                                     
220                                                     
221                                                     
222                                                    ##set ($ddmStructures = $dlFileEntryType.getDDMStructures()) 
223                                                     
224                                                     
225                                                     
226                                                     
227                                                    ##foreach ($ddmStructure in $ddmStructures)  
228                                           ##set($dlFileEntryMetadata = $metadata2.getFileEntryMetadata($ddmStructure.getStructureId(), $fileEntry.getLatestFileVersion(true).getFileVersionId())) 
229                                               
230                                                    <br/><br/> 
231                                                    ##Exibindo: <br/> 
232                                                    ##$dlFileEntryMetadata    
233 
234                                                     
235                                              #end 
236                                            </li> 
237                                        #end 
238                                    #end 
239                                </ul> 
240                            #else 
241                                <small>Nenhum arquivo encontrado nesta pasta</small><br /><br /> 
242                            #end  
243                        #end 
244                    #end 
245 
246                </div> 
247            </div> 
248 
249        #end 
250    #end 
251    #if ($arquivos == 0) 
252        <small style="padding-left: 15px; color: #ccc">- Nenhum arquivo ou pasta encontrado -</small><br /><br /> 
253    #end 
254</div> 
255<script> 
256    $(document).ready(function () { 
257        $('[data-toggle="tooltip"]').tooltip(); 
258    }); 
259 
260    $(document).ready(function () { 
261        // Add minus icon for collapse element which is open by default 
262        $(".collapse.in").each(function () { 
263            $(this) 
264                .siblings(".panel-heading") 
265                .find(".glyphicon") 
266                .addClass("glyphicon-minus") 
267                .removeClass("glyphicon-plus"); 
268        }); 
269 
270        // Toggle plus minus icon on show hide of collapse element 
271        $(".collapse") 
272            .on('show.bs.collapse', function () { 
273                $(this) 
274                    .parent() 
275                    .find(".glyphicon") 
276                    .removeClass("glyphicon-plus") 
277                    .addClass("glyphicon-minus"); 
278            }) 
279            .on('hide.bs.collapse', function () { 
280                $(this) 
281                    .parent() 
282                    .find(".glyphicon") 
283                    .removeClass("glyphicon-minus") 
284                    .addClass("glyphicon-plus"); 
285            }); 
286    }); 
287</script>