[vlma-devel] commit: High level MVC stuffs which I don' t understand to add web pages for streamChannel support. (Adrien Maglo )

git version control git at videolan.org
Tue May 20 14:38:05 CEST 2008


vlma | branch: master | Adrien Maglo <magsoft at videolan.org> | Tue May 20 14:34:50 2008 +0200| [e12687db20e7b7d9698c6ac5ae8a627dfc14e979]

High level MVC stuffs which I don't understand to add web pages for streamChannel support.
Ask jpountz for more details. ;-)

> http://git.videolan.org/gitweb.cgi/vlma.git/?a=commit;h=e12687db20e7b7d9698c6ac5ae8a627dfc14e979
---

 .../src/main/webapp/WEB-INF/VLMa-servlet.xml       |   32 ++++++++++++++++++++
 .../src/main/webapp/WEB-INF/defs/templates.xml     |   21 +++++++++++++
 2 files changed, 53 insertions(+), 0 deletions(-)

diff --git a/vlma-webapp/src/main/webapp/WEB-INF/VLMa-servlet.xml b/vlma-webapp/src/main/webapp/WEB-INF/VLMa-servlet.xml
index 798938a..bf50fd6 100644
--- a/vlma-webapp/src/main/webapp/WEB-INF/VLMa-servlet.xml
+++ b/vlma-webapp/src/main/webapp/WEB-INF/VLMa-servlet.xml
@@ -127,6 +127,35 @@
     </bean>
 
 
+    <!-- Streams beans -->
+
+    <bean id="streamChannelsListController" class="org.videolan.vlma.web.streams.StreamChannelsListController">
+        <property name="data" ref="dataImporter" />
+    </bean>
+
+    <bean id="streamChannelsAddValidator" class="org.videolan.vlma.web.streams.StreamChannelsAddValidator" />
+    <bean id="streamChannelsAddController" class="org.videolan.vlma.web.streams.StreamChannelsAddController">
+        <property name="data" ref="dataImporter" />
+        <property name="sessionForm" value="true" />
+        <property name="commandName" value="streamChannelsAdd" />
+        <property name="commandClass" value="org.videolan.vlma.web.streams.StreamChannelsAdd" />
+        <property name="validator" ref="streamChannelsAddValidator" />
+        <property name="formView" value="streamchannelsadd" />
+        <property name="successView" value="streamchannelslist.htm" />
+    </bean>
+
+    <bean id="streamChannelsEditValidator" class="org.videolan.vlma.web.streams.StreamChannelsEditValidator" />
+    <bean id="streamChannelsEditController" class="org.videolan.vlma.web.streams.StreamChannelsEditController">
+        <property name="data" ref="dataImporter" />
+        <property name="sessionForm" value="true" />
+        <property name="commandName" value="streamChannelsAdd" />
+        <property name="commandClass" value="org.videolan.vlma.web.streams.StreamChannelsAdd" />
+        <property name="validator" ref="streamChannelsEditValidator" />
+        <property name="formView" value="streamchannelsedit" />
+        <property name="successView" value="streamchannelslist.htm" />
+    </bean>
+
+
     <!-- Medias beans -->
 
     <bean id="mediasListController" class="org.videolan.vlma.web.media.MediasListController">
@@ -156,6 +185,7 @@
         <property name="formView" value="mediasprogramadd" />
         <property name="successViewMedias" value="mediaslist.htm" />
         <property name="successViewFiles" value="fileschannelslist.htm" />
+		<property name="successViewStream" value="streamchannelslist.htm" />
     </bean>
 
     <bean id="mediasProgramRemoveValidator" class="org.videolan.vlma.web.media.MediasProgramRemoveValidator" />
@@ -168,6 +198,7 @@
         <property name="formView" value="mediasprogramremove" />
         <property name="successViewMedias" value="mediaslist.htm" />
         <property name="successViewFiles" value="fileschannelslist.htm" />
+		<property name="successViewStream" value="streamchannelslist.htm" />
     </bean>
 
     <bean id="tNTChannelAddValidator" class="org.videolan.vlma.web.media.TNTChannelAddValidator" />
@@ -191,6 +222,7 @@
         <property name="formView" value="tntchannelremove" />
         <property name="successViewMedias" value="mediaslist.htm" />
         <property name="successViewFiles" value="fileschannelslist.htm" />
+		<property name="successViewStream" value="streamchannelslist.htm" />
     </bean>
 
 
diff --git a/vlma-webapp/src/main/webapp/WEB-INF/defs/templates.xml b/vlma-webapp/src/main/webapp/WEB-INF/defs/templates.xml
index d882088..ba07f62 100644
--- a/vlma-webapp/src/main/webapp/WEB-INF/defs/templates.xml
+++ b/vlma-webapp/src/main/webapp/WEB-INF/defs/templates.xml
@@ -57,6 +57,27 @@
         <put-attribute name="right" value="/WEB-INF/jsp/files/fileschannelsadd_right.jsp" />
     </definition>
 
+    <!-- streams -->
+
+    <definition name="streams-parent" extends="vlma">
+        <put-attribute name="title" type="string" value="streams.title" />
+        <put-attribute name="subheader_left" type="string" value="quicklinks.streams" />
+        <put-attribute name="subheader_right" value="/WEB-INF/jsp/streams/quicklinks.jsp" />
+        <put-attribute name="left" value="/WEB-INF/jsp/streams/stream_left.jsp" />
+    </definition>
+
+    <definition name="streamchannelslist" extends="streams-parent">
+        <put-attribute name="right" value="/WEB-INF/jsp/streams/streamchannelslist_right.jsp" />
+    </definition>
+
+    <definition name="streamchannelsedit" extends="streams-parent">
+        <put-attribute name="right" value="/WEB-INF/jsp/streams/streamchannelsedit_right.jsp" />
+    </definition>
+
+    <definition name="streamchannelsadd" extends="streams-parent">
+        <put-attribute name="right" value="/WEB-INF/jsp/streams/streamchannelsadd_right.jsp" />
+    </definition>
+
     <!-- medias -->
 
     <definition name="medias-parent" extends="vlma">



More information about the vlma-devel mailing list