From 8209533883044451ce7e1742f5a10c4b78679fc3 Mon Sep 17 00:00:00 2001
From: ulrich
Date: Wed, 20 Jan 2021 17:48:21 +0000
Subject: [PATCH] Upload und restliche Menuefunktionen, noch in Arbeit

---
 web/WEB-INF/web.xml |  107 ++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 105 insertions(+), 2 deletions(-)

diff --git a/web/WEB-INF/web.xml b/web/WEB-INF/web.xml
index dc82706..57248e6 100644
--- a/web/WEB-INF/web.xml
+++ b/web/WEB-INF/web.xml
@@ -3,9 +3,23 @@
     <description>Dateiverwaltung fuer die WebBox</description>
     <display-name>file-cms</display-name>
     <context-param>
-        <param-name>fileBase</param-name>
-        <param-value>daten</param-value>
+        <description>Hier kann eine feste Pfadangabe fuer das Datenverzeichnis eingetragen werden. 
+          Bleibt der Eintrag leer oder wird er ganz weggelassen, wird ein hart 
+          kodierter Pfad fuer die WebBox verwendet.</description>
+        <param-name>datenAblage</param-name>
+        <param-value> </param-value>
     </context-param>
+    <context-param>
+        <param-name>tiefe</param-name>
+        <param-value>2</param-value>
+    </context-param>
+    <context-param>
+        <param-name>datenOrdner</param-name>
+        <param-value>data/</param-value>
+    </context-param>
+    <listener>
+        <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 +28,57 @@
             <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>
+        <servlet-name>UploadeServlet</servlet-name>
+        <servlet-class>de.uhilger.filecms.web.UploadServlet</servlet-class>
+    </servlet>
+    <servlet>
+        <servlet-name>Feeder</servlet-name>
+        <servlet-class>de.uhilger.filecms.web.FeedServlet</servlet-class>
+    </servlet>
+    <servlet>
+        <servlet-name>TestServlet</servlet-name>
+        <servlet-class>de.uhilger.filecms.web.TestServlet</servlet-class>
+    </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>
+    <servlet-mapping>
+        <servlet-name>UploadeServlet</servlet-name>
+        <url-pattern>/api/upload</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>Feeder</servlet-name>
+        <url-pattern>/feed/*</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>TestServlet</servlet-name>
+        <url-pattern>/test/*</url-pattern>
     </servlet-mapping>
     <session-config>
         <session-timeout>
@@ -26,5 +88,46 @@
     <welcome-file-list>
         <welcome-file>index.jsp</welcome-file>
         <welcome-file>index.html</welcome-file>
+        <welcome-file>index.htmi</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>
+            <url-pattern>/ui2/*</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>/api/*</url-pattern>
+            <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