content admin
authoridfx <idfx>
Sat, 20 Dec 2003 20:20:10 +0000 (20:20 +0000)
committeridfx <idfx>
Sat, 20 Dec 2003 20:20:10 +0000 (20:20 +0000)
etc/hibernate.cfg.xml [deleted file]
etc/struts-config-admin.xml

diff --git a/etc/hibernate.cfg.xml b/etc/hibernate.cfg.xml
deleted file mode 100755 (executable)
index 78baefe..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version='1.0' encoding='utf-8'?>
-<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN"
-                                         "http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd">
-
-<hibernate-configuration>
-
-    <session-factory>
-
-        <property name="connection.url">jdbc:postgresql:mir</property>
-        <property name="connection.driver_class">org.postgresql.Driver</property>
-        <property name="connection.username">postgres</property>
-        <property name="connection.password"></property>
-        <property name="connection.pool_size">10</property>
-        <property name="statement_cache.size">100</property>
-        <property name="show_sql">true</property>
-        <property name="use_outer_join">true</property>
-        <property name="dialect">net.sf.hibernate.dialect.PostgreSQLDialect</property>
-        
-        <!-- Mapping files -->
-        <mapping resource="mir/core/model/ArticleType.hbm.xml"/>
-        <mapping resource="mir/core/model/Breaking.hbm.xml"/>
-        <mapping resource="mir/core/model/Comment.hbm.xml"/>
-        <mapping resource="mir/core/model/Content.hbm.xml"/>
-        <mapping resource="mir/core/model/CommentStatus.hbm.xml"/>
-        <!--
-        <mapping resource="mir/core/model/Feature.hbm.xml"/>
-        -->
-        <mapping resource="mir/core/model/Language.hbm.xml"/>
-        <mapping resource="mir/core/model/Media.hbm.xml"/>
-        <mapping resource="mir/core/model/MediaFolder.hbm.xml"/>
-        <mapping resource="mir/core/model/MediaType.hbm.xml"/>
-        <mapping resource="mir/core/model/Message.hbm.xml"/>
-        <mapping resource="mir/core/model/Rights.hbm.xml"/>
-        <mapping resource="mir/core/model/Topic.hbm.xml"/>
-        <!--
-        <mapping resource="mir/core/model/TopicRich.hbm.xml"/>
-        -->
-        <mapping resource="mir/core/model/WebdbUser.hbm.xml"/>
-        <mapping resource="mir/core/model/UploadedMedia.hbm.xml"/>
-        <mapping resource="mir/core/model/Image.hbm.xml"/>
-        <mapping resource="mir/core/model/Audio.hbm.xml"/>
-        <mapping resource="mir/core/model/Video.hbm.xml"/>
-    </session-factory>
-
-</hibernate-configuration>
index 06154f9..795cf16 100755 (executable)
                <form-property name="creator" type="java.lang.String"/>
                <form-property name="description" type="java.lang.String"/>
         </form-bean>
+        <form-bean dynamic="true" name="contentForm" type="org.apache.struts.action.DynaActionForm">
+               <form-property name="id" type="java.lang.Integer"/>
+               <form-property name="new" type="java.lang.Boolean"/>
+               <form-property name="offset" type="java.lang.String"/>
+               <form-property name="returnurl" type="java.lang.String"/>
+               <form-property name="webdb_create" type="java.lang.String"/>
+               <form-property name="date" type="java.lang.String"/>
+               <form-property name="to_topic" type="java.lang.Integer"/>
+               <form-property name="to_article_type" type="java.lang.Integer"/>
+               <form-property name="to_language" type="java.lang.Integer"/>
+               <form-property name="title" type="java.lang.String"/>
+               <form-property name="subtitle" type="java.lang.String"/>
+               <form-property name="edittitle" type="java.lang.String"/>
+               <form-property name="source" type="java.lang.String"/>
+               <form-property name="creator" type="java.lang.String"/>
+               <form-property name="creator_email" type="java.lang.String"/>
+               <form-property name="creator_main_url" type="java.lang.String"/>
+               <form-property name="creator_address" type="java.lang.String"/>
+               <form-property name="creator_phone" type="java.lang.String"/>
+               <form-property name="is_html" type="java.lang.Integer"/>
+               <form-property name="is_published" type="java.lang.Integer"/>           
+               <form-property name="comment" type="java.lang.String"/>
+               <form-property name="content_data" type="java.lang.String"/>
+               <form-property name="description" type="java.lang.String"/>
+        </form-bean>
     </form-beans>
     
     <!-- ========== Global Exception Definitions ============================== -->
                 name="success"
                 path="/topicList.do"/>
         </action>
+        
+        <!-- Content -->
+        <action
+            parameter="list"
+            path="/contentList"
+            type="mir.core.ui.action.admin.ContentAction">
+            <forward
+                name="success"
+                path="/contentlist.shtml"/>
+        </action>
+        
+        <action
+            parameter="delete"
+            path="/contentDelete"
+            type="mir.core.ui.action.admin.ContentAction">
+            <forward
+                name="success"
+                path="/contentList.do"/>
+            <forward
+                name="failed"
+                path="/contentEdit.do"/>
+        </action>        
+        
+        <action
+            parameter="edit"
+            path="/contentEdit"
+            type="mir.core.ui.action.admin.ContentAction">
+            <forward
+                name="success"
+                path="/content.shtml"/>
+        </action>
+        
+        <action
+            parameter="add"
+            path="/contentAdd"
+            type="mir.core.ui.action.admin.ContentAction">
+            <forward
+                name="success"
+                path="/content.shtml"/>
+        </action>
+        
+        <action
+            attribute="contentForm"
+            input="/admin/content.shtml"
+            name="contentForm"
+            parameter="save"
+            path="/contentSave"
+            scope="request"
+            type="mir.core.ui.action.admin.ContentAction"
+            unknown="false"
+            validate="true">
+            <forward
+                name="failed"
+                path="/contentEdit.do"/>
+            <forward
+                name="success"
+                path="/contentList.do"/>
+        </action>
 
     </action-mappings>