From f9d0c4a3da9d183c90bc7351f233fa67ea3c66a7 Mon Sep 17 00:00:00 2001
From: ulrich@undisclosed
Date: Mon, 11 May 2020 07:57:30 +0000
Subject: [PATCH] Auswahl in Nutzerliste

---
 web/WEB-INF/web.xml |   32 ++++++++++++++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/web/WEB-INF/web.xml b/web/WEB-INF/web.xml
index 6f037ac..21f8d44 100644
--- a/web/WEB-INF/web.xml
+++ b/web/WEB-INF/web.xml
@@ -37,6 +37,14 @@
             <param-value>de.uhilger.um.pub</param-value>
         </init-param>
     </servlet>
+    <servlet>
+        <servlet-name>ProfilDienst</servlet-name>
+        <servlet-class>de.uhilger.transit.web.TransitServlet</servlet-class>
+        <init-param>
+            <param-name>klassen</param-name>
+            <param-value>de.uhilger.um.api.Profil</param-value>
+        </init-param>
+    </servlet>
     <servlet-mapping>
         <servlet-name>TransitServlet</servlet-name>
         <url-pattern>/api</url-pattern>
@@ -45,11 +53,18 @@
         <servlet-name>PublicTransit</servlet-name>
         <url-pattern>/pub</url-pattern>
     </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>ProfilDienst</servlet-name>
+        <url-pattern>/prf</url-pattern>
+    </servlet-mapping>
     <session-config>
         <session-timeout>
             30
         </session-timeout>
     </session-config>
+    <welcome-file-list>
+        <welcome-file>index.html</welcome-file>
+    </welcome-file-list>
     <security-constraint>
         <display-name>nutzerAdminConstraint</display-name>
         <web-resource-collection>
@@ -64,6 +79,19 @@
             <role-name>nutzerAdmin</role-name>
         </auth-constraint>
     </security-constraint>
+    <security-constraint>
+        <display-name>nutzerProfilConstraint</display-name>
+        <web-resource-collection>
+            <web-resource-name>nutzerProfil</web-resource-name>
+            <description>Nutzerprofil</description>
+            <url-pattern>/prf/*</url-pattern>
+            <url-pattern>/profil/*</url-pattern>
+        </web-resource-collection>
+        <auth-constraint>
+            <description>nutzerProfilAuthContraint</description>
+            <role-name>nutzerProfil</role-name>
+        </auth-constraint>
+    </security-constraint>
     <login-config>
         <auth-method>FORM</auth-method>
         <form-login-config>
@@ -75,4 +103,8 @@
         <description/>
         <role-name>nutzerAdmin</role-name>
     </security-role>
+    <security-role>
+        <description/>
+        <role-name>nutzerProfil</role-name>
+    </security-role>
 </web-app>

--
Gitblit v1.9.3