-
Notifications
You must be signed in to change notification settings - Fork 128
/
ejb.ftl
175 lines (156 loc) · 7.04 KB
/
ejb.ftl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<!DOCTYPE html>
<html lang="en">
<#assign applicationReportIndexModel = reportModel.applicationReportIndexModel>
<#macro mdbRenderer mdb>
<tr>
<td><@render_link model=mdb.ejbDeploymentDescriptor project=reportModel.projectModel text=mdb.beanName/></td>
<td>
<@render_link model=mdb.ejbClass project=reportModel.projectModel/>
</td>
<td>${(mdb.destination.jndiLocation)!}</td>
</tr>
</#macro>
<#macro ejbRenderer ejb>
<tr>
<td>
<@render_link model=ejb.ejbDeploymentDescriptor project=reportModel.projectModel text=ejb.beanName/>
</td>
<td style="text-align:center">
<#if ejb.ejbLocal??>
<@render_link model=ejb.ejbLocal project=reportModel.projectModel text="Local" class="btn btn-xxs btn-success"/><#t>
<#else>
<a style="visibility:hidden" class="btn btn-xxs btn-default disabled">Local</a><#t>
</#if>
<#if ejb.ejbRemote??>
<@render_link model=ejb.ejbRemote project=reportModel.projectModel text="Remote" class="btn btn-xxs btn-danger"/><#t>
<#else>
<a style="visibility:hidden" class="btn btn-xxs btn-default disabled">Remote</a><#t>
</#if>
</td>
<td>
<@render_link model=ejb.ejbClass project=reportModel.projectModel/>
</td>
<td>
${(ejb.jndiReference.jndiLocation)!}
</td>
</tr>
</#macro>
<#macro entityRenderer ejb>
<tr>
<td>
<@render_link model=ejb.ejbDeploymentDescriptor project=reportModel.projectModel text=ejb.beanName />
</td>
<td>
<@render_link model=ejb.ejbClass project=reportModel.projectModel/>
</td>
<td>${ejb.tableName!""}</td>
<td>${ejb.persistenceType!""}</td>
</tr>
</#macro>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>${reportModel.projectModel.name} - EJB Report</title>
<link href="resources/css/bootstrap.min.css" rel="stylesheet">
<link href="resources/css/windup.css" rel="stylesheet" media="screen">
<link href="resources/img/rhamt-icon-128.png" rel="shortcut icon" type="image/x-icon"/>
</head>
<body role="document">
<div id="main-navbar" class="navbar navbar-default navbar-fixed-top">
<div class="wu-navbar-header navbar-header">
<#include "include/navheader.ftl">
</div>
<div class="navbar-collapse collapse navbar-responsive-collapse">
<#include "include/navbar.ftl">
</div><!-- /.nav-collapse -->
</div>
<div class="container-fluid" role="main">
<div class="row">
<div class="page-header page-header-no-border">
<h1>
<div class="main">EJB Report</div>
<div class="path">${reportModel.projectModel.rootFileModel.fileName}</div>
</h1>
<div class="desc">This report lists the Java EE EJB beans with their JNDI address - stateless and statefull beans, message driven beans, and entity beans.</div>
</div>
</div>
<div class="row">
<div class="container-fluid theme-showcase" role="main">
<#if !reportModel.relatedResources.mdb?has_content && !reportModel.relatedResources.stateless?has_content && !reportModel.relatedResources.stateful?has_content && !reportModel.relatedResources.entity?has_content>
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">EJB Report</h3>
</div>
<div class="panel-body">
<h3 class="panel-title">No EJBs found to report</h3>
</div>
</div>
</#if>
<#list reportModel.relatedResources.mdb>
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">Message Driven Beans</h3>
</div>
<table class="table table-striped table-bordered" id="mdbTable">
<tr>
<th class="col-md-2">MDB Name</th><th>Class</th><th class="col-md-3">JMS Destination</th>
</tr>
<#items as mdb>
<@mdbRenderer mdb />
</#items>
</table>
</div>
</#list>
<#list reportModel.relatedResources.stateless>
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">Stateless Session Beans</h3>
</div>
<table class="table table-striped table-bordered" id="statelessTable">
<tr>
<th class="col-md-2">Bean Name</th><th style="width:130px">Interface</th><th>Implementation</th><th class="col-md-3">JNDI Location</th>
</tr>
<#items as statelessBean>
<@ejbRenderer statelessBean/>
</#items>
</table>
</div>
</#list>
<#list reportModel.relatedResources.stateful>
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">Stateful Session Beans</h3>
</div>
<table class="table table-striped table-bordered" id="statefulTable">
<tr>
<th class="col-md-2">Bean Name</th><th style="width:130px">Interface</th><th>Implementation</th><th class="col-md-3">JNDI Location</th>
</tr>
<#items as statefulBean>
<@ejbRenderer statefulBean/>
</#items>
</table>
</div>
</#list>
<#list reportModel.relatedResources.entity>
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">Entity Beans</h3>
</div>
<table class="table table-striped table-bordered" id="entityTable">
<tr>
<th class="col-md-2">Bean Name</th><th>Class</th><th class="col-md-2">Table</th><th class="col-md-1">Persistence Type</th>
</tr>
<#items as entityBean>
<@entityRenderer entityBean/>
</#items>
</table>
</div>
</#list>
</div> <!-- /container -->
</div> <!-- /row-->
<#include "include/timestamp.ftl">
</div><!-- /container main-->
<script src="resources/js/jquery-1.10.1.min.js"></script>
<script src="resources/js/bootstrap.min.js"></script>
</body>
</html>