show-audit-entry.xhtml 4.44 KB
Newer Older
michael.simon's avatar
michael.simon committed
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:bw="http://www.scc.kit.edu/bwfacelets"
	xmlns:p="http://primefaces.org/ui">
<head>
<title></title>
</head>
<body>
<f:view>
	<f:metadata>
		<f:viewParam name="id" value="#{showAuditEntryBean.id}"/>
		<f:event type="javax.faces.event.PreRenderViewEvent"
            listener="#{showAuditEntryBean.preRenderView}" />
	</f:metadata>

<ui:composition template="/template/default-admin.xhtml">
	<ui:param name="title" value="#{messages.title}"/>

	<ui:define name="content">
	<h:form id="form">
		<h2><h:outputText value="#{messages.audit_entry}: Id #{showAuditEntryBean.entity.id}"/></h2>

		<div class="panel">
			<p:panel header="#{messages.audit_entry}">

				<p:panelGrid id="baseData2" columns="2">

					<h:outputText value="#{messages.id}:" />
					<h:outputText value="#{showAuditEntryBean.entity.id}" />

					<h:outputText value="#{messages.name}:" />
					<h:outputText value="#{showAuditEntryBean.entity.name}" />

					<h:outputText value="#{messages.executor}:" />
					<h:outputText value="#{showAuditEntryBean.entity.executor}" />

					<h:outputText value="#{messages.detail}:" />
					<h:outputText value="#{showAuditEntryBean.entity.detail}" />

					<h:outputText value="#{messages.class}:" />
					<h:outputText value="#{showAuditEntryBean.entity.class.name}" />

					<h:outputText value="#{messages.parent}:" />
					<h:outputText value="#{showAuditEntryBean.entity.parentEntry.name}" />
					
michael.simon's avatar
michael.simon committed
50
51
52
53
54
55
					<h:outputText value="#{messages.start_time}:" />
					<h:outputText value="#{showAuditEntryBean.entity.startTime}" />
					
					<h:outputText value="#{messages.end_time}:" />
					<h:outputText value="#{showAuditEntryBean.entity.endTime}" />
					
michael.simon's avatar
michael.simon committed
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
				</p:panelGrid>

				<p:panelGrid id="baseDataUser" columns="2" 
					rendered="#{(showAuditEntryBean.entity.class.simpleName == 'AuditUserCreateEntity') || 
						(showAuditEntryBean.entity.class.simpleName == 'AuditUserUpdateEntity')}">
				
					<h:outputText value="#{messages.user}:" />
					<h:outputText value="#{showAuditEntryBean.entity.user.eppn}" />

				</p:panelGrid>
		
				<p:panelGrid id="baseDataRegistry" columns="2" 
					rendered="#{showAuditEntryBean.entity.class.simpleName == 'AuditServiceRegisterEntity'}">
				
					<h:outputText value="#{messages.service}:" />
					<h:outputText value="#{showAuditEntryBean.entity.registry.service.name}" />

					<h:outputText value="#{messages.user}:" />
					<h:outputText value="#{showAuditEntryBean.entity.registry.user.eppn}" />

				</p:panelGrid>
		
			</p:panel>
			
		</div>
	
		<div class="panel">
			<p:panel header="#{messages.audit_detail}">
		
				<p:dataTable var="a" value="#{showAuditEntryBean.detailList}">
					<p:column>
						<f:facet name="header">
							<h:outputText value="#{messages.id}" />
						</f:facet>
						<h:outputText value="#{a.id}" />
					</p:column>
					<p:column>
						<f:facet name="header">
							<h:outputText value="#{messages.date}" />
						</f:facet>
						<h:link outcome="show-audit-detail.xhtml" value="#{a.endTime}">
		      				<f:param name="id" value="#{a.id}"/>
		    			</h:link>
					</p:column>
					<p:column>
						<f:facet name="header">
							<h:outputText value="#{messages.subject}" />
						</f:facet>
						<h:outputText value="#{a.subject}" />
					</p:column>			
					<p:column>
						<f:facet name="header">
							<h:outputText value="#{messages.object}" />
						</f:facet>
						<h:outputText value="#{a.object}" />
					</p:column>			
					<p:column>
						<f:facet name="header">
							<h:outputText value="#{messages.action}" />
						</f:facet>
						<h:outputText value="#{a.action}" />
					</p:column>			
					<p:column>
						<f:facet name="header">
							<h:outputText value="#{messages.log}" />
						</f:facet>
						<h:outputText value="#{a.log}" />
					</p:column>			
					<p:column>
						<f:facet name="header">
							<h:outputText value="#{messages.audit_status}" />
						</f:facet>
						<h:outputText value="#{a.auditStatus}" />
					</p:column>
					
				</p:dataTable>
		
			</p:panel>			
		</div>
	
	</h:form>

	</ui:define>
</ui:composition>
</f:view>		
</body>
</html>