217
|
1 |
<#--
|
|
2 |
============================================================================
|
|
3 |
Name : macro.ftl
|
|
4 |
Part of : Helium
|
|
5 |
|
|
6 |
Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
7 |
All rights reserved.
|
|
8 |
This component and the accompanying materials are made available
|
|
9 |
under the terms of the License "Eclipse Public License v1.0"
|
|
10 |
which accompanies this distribution, and is available
|
|
11 |
at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
12 |
|
|
13 |
Initial Contributors:
|
|
14 |
Nokia Corporation - initial contribution.
|
|
15 |
|
|
16 |
Contributors:
|
|
17 |
|
|
18 |
Description:
|
|
19 |
|
|
20 |
============================================================================
|
|
21 |
-->
|
|
22 |
<#include "diamonds_header.ftl">
|
|
23 |
|
|
24 |
<#setting number_format="0">
|
|
25 |
|
|
26 |
<#assign table_info = pp.loadData('com.nokia.helium.metadata.ORMFMPPLoader',
|
|
27 |
"${dbPath}") >
|
|
28 |
<#assign convertedLogPath = "${logpath}"?replace("\\","/") >
|
|
29 |
<#assign logfile = table_info['jpasingle']['select l from LogFile l where LOWER(l.path) like \'%${convertedLogPath?lower_case}\''][0]>
|
|
30 |
<faults>
|
|
31 |
<total severity="error">${table_info['jpasingle']['select Count(m.id) from MetadataEntry m JOIN m.priority as p where m.logPathId=${logfile.id} and p.priority like \'%ERROR%\''][0]}</total>
|
|
32 |
<total severity="warning">${table_info['jpasingle']['select Count(m.id) from MetadataEntry m JOIN m.priority as p where m.logPathId=${logfile.id} and UPPER(p.priority) like \'%WARNING%\''][0]}</total>
|
|
33 |
<total severity="warning_rvct_other">${table_info['jpasingle']['select Count(m.id) from MetadataEntry m JOIN m.priority as p where m.logPathId=${logfile.id} and UPPER(p.priority) like \'%WARNING%\''][0]}</total>
|
|
34 |
<!-- todo update to calculate the correct value -->
|
|
35 |
<total severity="warning_rvct_bad">${table_info['jpasingle']['select Count(m.id) from MetadataEntry m JOIN m.priority as p where m.logPathId = ${logfile.id} and UPPER(p.priority) like \'%REMARK%\''][0]}</total>
|
|
36 |
<#list table_info['jpa']['select c from Component c where c.logPathID=${logfile.id} ORDER BY c.component'] as component>
|
|
37 |
<component>
|
|
38 |
<name>${component.component}</name>
|
|
39 |
<total severity="error">${table_info['jpasingle']['select Count(m.id) from MetadataEntry m JOIN m.priority as p where UPPER(p.priority) like \'%ERROR%\' and m.componentId = ${component.id}'][0]}</total>
|
|
40 |
<total severity="warning">${table_info['jpasingle']['select Count(m.id) from MetadataEntry m JOIN m.priority as p where UPPER(p.priority) like \'%WARNING%\' and m.componentId = ${component.id}'][0]}</total>
|
|
41 |
<total severity="critical">${table_info['jpasingle']['select Count(m.id) from MetadataEntry m JOIN m.priority as p where UPPER(p.priority) like \'%REMARK%\' and m.componentId = ${component.id}'][0]}</total>
|
|
42 |
</component>
|
|
43 |
</#list>
|
|
44 |
</faults>
|
|
45 |
<components>
|
|
46 |
<#list table_info['jpa']['select c from Component c where c.logPathID=${logfile.id}'] as component>
|
|
47 |
<!-- all components -->
|
|
48 |
<component>${component.component}</component>
|
|
49 |
</#list>
|
|
50 |
</components>
|
|
51 |
<#include "diamonds_footer.ftl"> |