Commit 6aee8cf3 authored by michael.simon's avatar michael.simon
Browse files

show more user details on my data panel

parent cae646b6
......@@ -122,6 +122,11 @@ add_admin_role=Adminrolle hinzuf\u00FCgen
add_approver_role=Approverrolle hinzuf\u00FCgen
edit_service_desc=Service Beschreibung bearbeiten
my_data=Meine Daten
my_data_explanation=Hier k\u00F6nnen Sie alle Daten einsehen, die \u00FCber Sie gespeichert sind. Sollten diese Daten fehlerhaft sein k\u00F6nnen Sie eine Korrektur bei der Organisation veranlassen, von der die Daten geliefert werden.
data_from=Daten von
my_data_from_saml=Diese Daten wurde aus folgender SAML Datenlieferung von Ihrem Shibboleth Identity Provider erzeugt. Die letzt Aktualisierung erfolgte am
my_data_groups=Mitgliedschaften in den folgenden Gruppen wurde aus den vorhandenen Daten berechnet:
shibboleth=Shibboleth
loglo_username=Dienstlokaler Benutzername
loglo_uid=Dienstlokaler UID
pending_text=Dieser Service steht im Status PENDING, d.h. ein Administrator dieses Dienstes muss die Nutzung genehmigen und Ihren Account freischalten. Dies geschieht in der Regel innerhalb von einer Woche.
......
......@@ -68,7 +68,7 @@ welcome_disco=In order to use bwServices at KIT you need a valid user account wi
confirm=Confirm
registered_services=Registered services
available_services=Available services
user_properties=User Properties
user_properties=User properties
user=User
no_registered_services=No service registered yet.
from=From
......@@ -122,6 +122,11 @@ add_admin_role=Adminrolle hinzuf\u00FCgen
add_approver_role=Approverrolle hinzuf\u00FCgen
edit_service_desc=Service Beschreibung bearbeiten
my_data=Personal Data
my_data_explanation=You can see all personal data which is stored. If this data is wrong, please contact the organisation which provided this data.
data_from=Data from
my_data_from_saml=This data is derived from a SAML Assertion from your Shibboleth Identity Provider. Last update was
my_data_groups=The following group memberships are calculated for your account:
shibboleth=Shibboleth
loglo_username=Dienstlokaler Benutzername
loglo_uid=Dienstlokaler UID
pending_text=This service has the status PENDING, ie. a administrator must approve the usage of this service. This should be accomplished within one week.
......
......@@ -26,36 +26,64 @@
<h:form>
<div class="panel">
<p:panel header="#{messages.my_data}">
<p:panelGrid id="baseData" columns="2">
<bw:outputText label="#{messages.name}" value="#{userPropertiesBean.user.surName}, #{userPropertiesBean.user.givenName}"/>
<bw:outputText label="#{messages.email}" value="#{userPropertiesBean.user.email}"/>
<bw:outputText label="#{messages.eppn}" value="#{userPropertiesBean.user.eppn}"/>
<bw:outputText label="#{messages.persistent_id}" value="#{userPropertiesBean.user.persistentId}"/>
<bw:outputText label="#{messages.uid_number}" value="#{userPropertiesBean.user.uidNumber}"/>
<bw:outputText label="#{messages.primary_group}" value="#{userPropertiesBean.user.primaryGroup.name} (#{userPropertiesBean.user.primaryGroup.gidNumber})"/>
<bw:outputText label="#{messages.home_org}" value="#{userPropertiesBean.idpEntity.orgName}"
rendered="#{not empty userPropertiesBean.idpEntity.orgName}"/>
<bw:outputText label="#{messages.idp}" value="#{userPropertiesBean.idpEntity.displayName}"
rendered="#{not empty userPropertiesBean.idpEntity.displayName}"/>
<bw:outputText label="#{messages.last_account_update}"
value="#{of:formatDate(userPropertiesBean.user.lastUpdate, 'dd.MM.yyyy HH:mm')}"/>
<bw:outputPanelGroup label="#{messages.roles}">
<ui:repeat var="role" value="#{userPropertiesBean.roleList}">
<h:outputText value="#{role.name}" styleClass="value_normal" /><br/>
</ui:repeat>
</bw:outputPanelGroup>
<p:tabView id="tabVw" dynamic="true" cache="true">
<p:tab id="tab1" title="#{messages.my_data}">
<div class="panel">#{messages.my_data_explanation}</div>
<div class="panel">#{messages.data_from}: <b>#{userPropertiesBean.idpEntity.orgName}</b></div>
<p:panelGrid id="baseData" columns="2">
<bw:outputText label="#{messages.name}" value="#{userPropertiesBean.user.surName}, #{userPropertiesBean.user.givenName}"/>
<bw:outputText label="#{messages.email}" value="#{userPropertiesBean.user.email}"/>
<bw:outputText label="#{messages.eppn}" value="#{userPropertiesBean.user.eppn}"/>
<bw:outputText label="#{messages.persistent_id}" value="#{userPropertiesBean.user.persistentId}"/>
<bw:outputText label="#{messages.uid_number}" value="#{userPropertiesBean.user.uidNumber}"/>
<bw:outputText label="#{messages.primary_group}" value="#{userPropertiesBean.user.primaryGroup.name} (#{userPropertiesBean.user.primaryGroup.gidNumber})"/>
<bw:outputText label="#{messages.idp}" value="#{userPropertiesBean.idpEntity.displayName}"
rendered="#{not empty userPropertiesBean.idpEntity.displayName}"/>
</p:panelGrid>
</p:tab>
<bw:outputPanelGroup label="#{messages.entitlement}" rendered="#{not empty userPropertiesBean.user.attributeStore.get('urn:oid:1.3.6.1.4.1.5923.1.1.1.7')}">
<ui:repeat var="ent" value="#{userPropertiesBean.user.attributeStore.get('urn:oid:1.3.6.1.4.1.5923.1.1.1.7').split(';')}">
<h:outputText value="#{ent}" styleClass="value_normal" /><br/>
</ui:repeat>
</bw:outputPanelGroup>
<p:tab id="tab2" title="#{messages.shibboleth}">
<div class="panel">#{messages.my_data_from_saml} #{of:formatDate(userPropertiesBean.user.lastUpdate, 'dd.MM.yyyy HH:mm')}</div>
<p:dataTable id="attrData" style="min-width: 500px;"
value="#{userPropertiesBean.user.attributeStore.keySet().toArray()}" var="key">
<p:column>
<f:facet name="header">
<h:outputText value="#{messages.name}" />
</f:facet>
<h:outputText value="#{key}" style="font-size: 80%;" />
</p:column>
<p:column>
<f:facet name="header">
<h:outputText value="#{messages.value}" />
</f:facet>
<h:outputText value="#{userPropertiesBean.user.attributeStore.get(key)}" />
</p:column>
</p:dataTable>
</p:tab>
</p:panelGrid>
</p:panel>
<p:tab id="tab3" title="#{messages.groups}">
<div class="panel">#{messages.my_data_groups}</div>
<p:dataTable id="secGroupData" style="min-width: 500px;"
value="#{userPropertiesBean.groupList}" var="group">
<p:column>
<f:facet name="header">
<h:outputText value="#{messages.name}" />
</f:facet>
<h:outputText value="#{group.class.simpleName}: #{group.name} " />
<h:outputText value="(#{group.prefix})" rendered="#{group.class.simpleName == 'HomeOrgGroupEntity'}" />
</p:column>
<p:column>
<f:facet name="header">
<h:outputText value="#{messages.id}" />
</f:facet>
<h:outputText value="#{group.gidNumber}" />
</p:column>
</p:dataTable>
</p:tab>
</p:tabView>
</div>
</h:form>
</ui:define>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment