show-service.xhtml 8.9 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
<!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="#{showServiceBean.id}"/>
		<f:event type="javax.faces.event.PreRenderViewEvent"
            listener="#{showServiceBean.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.service}: #{showServiceBean.entity.name}"/></h2>

		<p:messages id="messageBox" showDetail="true" />

		<div id="panelInline">
			<p:panel header="#{messages.service}">
				<p:panelGrid id="baseData" columns="2">

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

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

					<h:outputText value="#{messages.short_name}:" />
					<h:outputText value="#{showServiceBean.entity.shortName}" />

42
43
44
45
46
47
					<h:outputText value="#{messages.parent_service}:" />
					<h:outputText value="#{showServiceBean.entity.parentService.name}"
						rendered="#{showServiceBean.entity.parentService != null}"/>
					<h:outputText value="#{messages.no_parent_service}"
						rendered="#{showServiceBean.entity.parentService == null}"/>

michael.simon's avatar
michael.simon committed
48
49
50
51
52
53
					<h:outputText value="#{messages.approver_role}:" />
					<h:outputText value="#{showServiceBean.entity.approverRole.name}"
						rendered="#{showServiceBean.entity.approverRole != null}"/>
					<h:outputText value="#{messages.undefined} / #{messages.no_approval}"
						rendered="#{showServiceBean.entity.approverRole == null}"/>

54
55
56
57
58
59
					<h:outputText value="#{messages.sshkey_approver_role}:" />
					<h:outputText value="#{showServiceBean.entity.sshPubKeyApproverRole.name}"
						rendered="#{showServiceBean.entity.sshPubKeyApproverRole != null}"/>
					<h:outputText value="#{messages.undefined} / #{messages.no_approval}"
						rendered="#{showServiceBean.entity.sshPubKeyApproverRole == null}"/>

michael.simon's avatar
michael.simon committed
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
					<h:outputText value="#{messages.admin_role}:" />
					<h:outputText value="#{showServiceBean.entity.adminRole.name}"
						rendered="#{showServiceBean.entity.adminRole != null}"/>
					<h:outputText value="#{messages.undefined}"
						rendered="#{showServiceBean.entity.adminRole == null}"/>

					<h:outputText value="#{messages.hotline_role}:" />
					<h:outputText value="#{showServiceBean.entity.hotlineRole.name}"
						rendered="#{showServiceBean.entity.hotlineRole != null}"/>
					<h:outputText value="#{messages.undefined}"
						rendered="#{showServiceBean.entity.hotlineRole == null}"/>

					<h:outputText value="#{messages.group_admin_role}:" />
					<h:outputText value="#{showServiceBean.entity.groupAdminRole.name}"
						rendered="#{showServiceBean.entity.groupAdminRole != null}"/>
					<h:outputText value="#{messages.undefined}"
						rendered="#{showServiceBean.entity.groupAdminRole == null}"/>

					<h:outputText value="#{messages.register_bean}:" />
					<h:outputText value="#{showServiceBean.entity.registerBean}" />

					<h:outputText value="#{messages.access_rule}:" />
					<h:outputText value="#{showServiceBean.entity.accessRule.name}" 
						rendered="#{showServiceBean.entity.accessRule != null}"/>
					<h:outputText value="#{messages.no_access_rule}" 
						rendered="#{showServiceBean.entity.accessRule == null}"/>

87
					<h:outputText value="#{messages.mandatory_values_rule}:" />
88
89
90
91
92
					<h:outputText value="#{showServiceBean.entity.mandatoryValueRulePackage.knowledgeBaseName}" 
						rendered="#{showServiceBean.entity.mandatoryValueRulePackage != null}"/>
					<h:outputText value="#{messages.no_mandatory_value_rule}" 
						rendered="#{showServiceBean.entity.mandatoryValueRulePackage == null}"/>

michael.simon's avatar
michael.simon committed
93
94
95
96
97
98
99
100
101
					<h:outputText value="#{messages.group_filter_rule}:" />
					<h:outputText value="#{showServiceBean.entity.groupFilterRulePackage.knowledgeBaseName}" 
						rendered="#{showServiceBean.entity.groupFilterRulePackage != null}"/>
					<h:outputText value="#{messages.no_group_filter_rule}" 
						rendered="#{showServiceBean.entity.groupFilterRulePackage == null}"/>

					<h:outputText value="#{messages.published}:" />
					<h:outputText value="#{showServiceBean.entity.published ? messages.yes : messages.no}" />

102
103
104
					<h:outputText value="#{messages.hidden}:" />
					<h:outputText value="#{showServiceBean.entity.hidden ? messages.yes : messages.no}" />

105
106
107
					<h:outputText value="#{messages.ssh_pub_key_capable}:" />
					<h:outputText value="#{showServiceBean.entity.sshPubKeyCapable ? messages.yes : messages.no}" />

michael.simon's avatar
michael.simon committed
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
					<h:outputText value="#{messages.image}:" />
					<h:panelGroup rendered="#{showServiceBean.entity.image != null}">
						<p:graphicImage style="vertical-align:middle" 
							value="#{request.contextPath}/rest/image/icon/#{showServiceBean.entity.image.id}" />
						<h:outputText value="(#{showServiceBean.entity.image.name})" />
					</h:panelGroup>
					<h:outputText value="#{messages.no_image}" 
						rendered="#{showServiceBean.entity.image == null}"/>
					
				</p:panelGrid>
				<h:link outcome="edit-service.xhtml" value="#{messages.edit}">
					<f:param name="id" value="#{showServiceBean.entity.id}" />
				</h:link>
				<br/>
				<h:link outcome="edit-service-event.xhtml" value="#{messages.edit_service_event}">
					<f:param name="id" value="#{showServiceBean.entity.id}" />
				</h:link>
			</p:panel>
		</div>

		<div id="panelInline">
			<p:panel header="#{messages.properties}">
				<p:dataTable id="propTable" var="key" style="min-width: 400px;"
					value="#{showServiceBean.entity.serviceProps.keySet().toArray()}">
					<p:column>
						<f:facet name="header"> 
							<h:outputText value="#{messages.key}" />
						</f:facet>
						<h:outputText value="#{key}" />
					</p:column>
					<p:column>
						<f:facet name="header">
							<h:outputText value="#{messages.value}" />
						</f:facet>
						<h:outputText value="#{showServiceBean.entity.serviceProps[key]}" />
					</p:column>
				</p:dataTable>
			</p:panel>
		</div>			

 		<div id="panelInline">
			<p:panel header="#{messages.service_desc}">
				<h:panelGrid id="descData" columns="2" columnClasses="labelColumn, elementColumn">
				
					<p:outputLabel for="descShortText" value="#{messages.service_desc_short}"/>
					<h:outputText id="descShortText" value="#{showServiceBean.entity.shortDescription}" />
		
					<p:outputLabel for="descText" value="#{messages.service_desc}"/>
					<h:outputText id="descText" value="#{showServiceBean.serviceDescBB}" />
		
158
159
160
					<p:outputLabel for="deregText" value="#{messages.deregister_text}"/>
					<h:outputText id="deregText" value="#{showServiceBean.deregisterTextBB}" />
		
michael.simon's avatar
michael.simon committed
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
				</h:panelGrid>
			</p:panel>
		</div>				

 		<div id="panelInline">
			<p:panel header="#{messages.policies}">
		    	<p:dataTable id="policyTable" var="policy" style="min-width: 400px;"
		    		value="#{showServiceBean.entity.policies.toArray()}">
					<p:column>
						<f:facet name="header">
							<h:outputText value="#{messages.id}" />
						</f:facet>
						<h:outputText value="#{policy.id}" />
					</p:column>
					<p:column>
						<f:facet name="header">
							<h:outputText value="#{messages.name}" />
						</f:facet>
						<h:link outcome="show-policy.xhtml" value="#{policy.name}">
		      				<f:param name="id" value="#{policy.id}"/>
		    			</h:link>
					</p:column>			    	
		    	</p:dataTable>	
	
				<h:link outcome="add-policy.xhtml" value="#{messages.add_policy}">
					<f:param name="serviceId" value="#{showServiceBean.entity.id}"/>
				</h:link>
			</p:panel>
		</div>
		
 		<div id="panelInline">
			<p:panel header="#{messages.tools}">
193
194
195
196
197
198
199
200
				<div>
			        <p:commandButton id="recon1" action="#{showServiceBean.startRecon(false, false, true)}" value="#{messages.reconsiliation}"
			        	ajax="false"/>					
			        <p:commandButton id="recon2" action="#{showServiceBean.startRecon(true, false, true)}" value="#{messages.full_reconsiliation}"
			        	ajax="false"/>					
			        <p:commandButton id="recon3" action="#{showServiceBean.startRecon(true, true, true)}" value="#{messages.full_reconsiliation_with_groups}"
			        	ajax="false"/>	
				</div>
201
				<div>				
202
203
204
205
					<h:link outcome="compare-child-registries.xhtml" value="#{messages.compare_child_registries}">
						<f:param name="id" value="#{showServiceBean.entity.id}" />
					</h:link>
		        </div>				
michael.simon's avatar
michael.simon committed
206
207
208
209
210
211
212
213
214
			</p:panel>
		</div>		
	</h:form>

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