From 7342b1f3850299264b571d1d63778173c9a30703 Mon Sep 17 00:00:00 2001
From: ulrich <not disclosed>
Date: Mon, 20 Feb 2017 10:53:46 +0000
Subject: [PATCH] list in Arbeit

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

diff --git a/web/WEB-INF/web.xml b/web/WEB-INF/web.xml
index dc82706..d3d1747 100644
--- a/web/WEB-INF/web.xml
+++ b/web/WEB-INF/web.xml
@@ -6,6 +6,10 @@
         <param-name>fileBase</param-name>
         <param-value>daten</param-value>
     </context-param>
+    <listener>
+        <description>Der Initialiser setzt globale Variable fuer die Dateiverwaltung</description>
+        <listener-class>de.uhilger.filecms.web.Initialiser</listener-class>
+    </listener>
     <servlet>
         <servlet-name>TransitRS</servlet-name>
         <servlet-class>de.uhilger.transit.web.TransitServletRS</servlet-class>
@@ -14,9 +18,33 @@
             <param-value>de.uhilger.filecms.api</param-value>
         </init-param>
     </servlet>
+    <servlet>
+        <servlet-name>Transit</servlet-name>
+        <servlet-class>de.uhilger.transit.web.TransitServlet</servlet-class>
+        <init-param>
+            <param-name>klassen</param-name>
+            <param-value>de.uhilger.filecms.api</param-value>
+        </init-param>
+    </servlet>
+    <servlet>
+        <servlet-name>PublicTransit</servlet-name>
+        <servlet-class>de.uhilger.transit.web.TransitServlet</servlet-class>
+        <init-param>
+            <param-name>klassen</param-name>
+            <param-value>de.uhilger.filecms.pub</param-value>
+        </init-param>
+    </servlet>
     <servlet-mapping>
         <servlet-name>TransitRS</servlet-name>
         <url-pattern>/rpc/*</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>Transit</servlet-name>
+        <url-pattern>/svc</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>PublicTransit</servlet-name>
+        <url-pattern>/pub</url-pattern>
     </servlet-mapping>
     <session-config>
         <session-timeout>
@@ -27,4 +55,42 @@
         <welcome-file>index.jsp</welcome-file>
         <welcome-file>index.html</welcome-file>
     </welcome-file-list>
+    <security-constraint>
+        <display-name>UI-Constraint</display-name>
+        <web-resource-collection>
+            <web-resource-name>UI</web-resource-name>
+            <description>Bedienoberflaeche</description>
+            <url-pattern>/ui/*</url-pattern>
+        </web-resource-collection>
+        <auth-constraint>
+            <description>UI-Auth-Constraint</description>
+            <role-name>ownFileAdmin</role-name>
+        </auth-constraint>
+    </security-constraint>
+    <security-constraint>
+        <display-name>API-Constraint</display-name>
+        <web-resource-collection>
+            <web-resource-name>API</web-resource-name>
+            <description>Programmschnittstelle</description>
+            <url-pattern>/rpc/*</url-pattern>
+            <url-pattern>/svc/*</url-pattern>
+            <url-pattern>/rpc</url-pattern>
+            <url-pattern>/svc</url-pattern>
+        </web-resource-collection>
+        <auth-constraint>
+            <description>API-Auth-Constraint</description>
+            <role-name>ownFileAdmin</role-name>
+        </auth-constraint>
+    </security-constraint>
+    <login-config>
+        <auth-method>FORM</auth-method>
+        <form-login-config>
+            <form-login-page>/login_form.html</form-login-page>
+            <form-error-page>/login_error.jsp</form-error-page>
+        </form-login-config>
+    </login-config>
+    <security-role>
+        <description/>
+        <role-name>ownFileAdmin</role-name>
+    </security-role>
 </web-app>

--
Gitblit v1.9.3