svn commit: r809582 - in /ofbiz/trunk/specialpurpose/googlebase: config/GoogleBaseUiLabels.xml servicedef/services.xml webapp/googlebase/WEB-INF/controller.xml widget/GoogleBaseForms.xml widget/GoogleBaseMenus.xml widget/GoogleBaseScreens.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r809582 - in /ofbiz/trunk/specialpurpose/googlebase: config/GoogleBaseUiLabels.xml servicedef/services.xml webapp/googlebase/WEB-INF/controller.xml widget/GoogleBaseForms.xml widget/GoogleBaseMenus.xml widget/GoogleBaseScreens.xml

ashish-18
Author: ashish
Date: Mon Aug 31 13:31:27 2009
New Revision: 809582

URL: http://svn.apache.org/viewvc?rev=809582&view=rev
Log:
Added GUI for GoogleBaseConfig entity - CRUD Operations.

Modified:
    ofbiz/trunk/specialpurpose/googlebase/config/GoogleBaseUiLabels.xml
    ofbiz/trunk/specialpurpose/googlebase/servicedef/services.xml
    ofbiz/trunk/specialpurpose/googlebase/webapp/googlebase/WEB-INF/controller.xml
    ofbiz/trunk/specialpurpose/googlebase/widget/GoogleBaseForms.xml
    ofbiz/trunk/specialpurpose/googlebase/widget/GoogleBaseMenus.xml
    ofbiz/trunk/specialpurpose/googlebase/widget/GoogleBaseScreens.xml

Modified: ofbiz/trunk/specialpurpose/googlebase/config/GoogleBaseUiLabels.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/googlebase/config/GoogleBaseUiLabels.xml?rev=809582&r1=809581&r2=809582&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/googlebase/config/GoogleBaseUiLabels.xml (original)
+++ ofbiz/trunk/specialpurpose/googlebase/config/GoogleBaseUiLabels.xml Mon Aug 31 13:31:27 2009
@@ -61,6 +61,9 @@
         <value xml:lang="th">Web Site Url</value>
         <value xml:lang="zh">网站网址</value>
     </property>
+    <property key="GoogleBaseAddGoogleBaseConfiguration">
+        <value xml:lang="en">Add Google Base Configuration</value>
+    </property>
     <property key="GoogleBaseApplication">
         <value xml:lang="en">Google Base Integration</value>
         <value xml:lang="fr">Intégration de Google Base</value>
@@ -74,6 +77,9 @@
         <value xml:lang="it">Ofbiz</value>
         <value xml:lang="th">Ofbiz</value>
     </property>
+    <property key="GoogleBaseConfiguration">
+        <value xml:lang="en">Google Base Configurations</value>
+    </property>
     <property key="GoogleBaseExportCountryCode">
         <value xml:lang="en">Select your country destination</value>
         <value xml:lang="fr">Sélectionner votre pays de destination</value>

Modified: ofbiz/trunk/specialpurpose/googlebase/servicedef/services.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/googlebase/servicedef/services.xml?rev=809582&r1=809581&r2=809582&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/googlebase/servicedef/services.xml (original)
+++ ofbiz/trunk/specialpurpose/googlebase/servicedef/services.xml Mon Aug 31 13:31:27 2009
@@ -46,4 +46,21 @@
         <attribute type="String" mode="IN" name="webSiteUrl" optional="false"/>
         <attribute type="String" mode="IN" name="imageUrl" optional="true"/>
     </service>
+    
+    <!-- Start configuration services -->
+    <service name="createGoogleBaseConfig" default-entity-name="GoogleBaseConfig" engine="entity-auto" invoke="create" auth="true">
+        <description>Create a GoogleBaseConfig</description>
+        <auto-attributes include="pk" mode="IN" optional="false"/>
+        <auto-attributes include="nonpk" mode="IN" optional="true"/>
+    </service>
+    <service name="updateGoogleBaseConfig" default-entity-name="GoogleBaseConfig" engine="entity-auto" invoke="update" auth="true">
+        <description>Update a GoogleBaseConfig</description>
+        <auto-attributes include="pk" mode="IN" optional="false"/>
+        <auto-attributes include="nonpk" mode="IN" optional="true"/>
+    </service>
+    <service name="deleteGoogleBaseConfig" default-entity-name="GoogleBaseConfig" engine="entity-auto" invoke="delete" auth="true">
+        <description>Delete a GoogleBaseConfig</description>
+        <auto-attributes include="pk" mode="IN" optional="false"/>
+    </service>
+    
 </services>

Modified: ofbiz/trunk/specialpurpose/googlebase/webapp/googlebase/WEB-INF/controller.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/googlebase/webapp/googlebase/WEB-INF/controller.xml?rev=809582&r1=809581&r2=809582&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/googlebase/webapp/googlebase/WEB-INF/controller.xml (original)
+++ ofbiz/trunk/specialpurpose/googlebase/webapp/googlebase/WEB-INF/controller.xml Mon Aug 31 13:31:27 2009
@@ -47,6 +47,30 @@
         <response name="success" type="view" value="ProductsExportToGoogle"/>
         <response name="error" type="view" value="ProductsExportToGoogle"/>
     </request-map>
+    
+    <!-- Request entries for GoogleBaseConfig UI -->
+    <request-map uri="EditGoogleBaseConfigs">
+        <security https="true" auth="true"/>
+        <response name="success" type="view" value="EditGoogleBaseConfigs"/>
+    </request-map>
+    <request-map uri="createGoogleBaseConfig">
+        <security https="true" auth="true"/>
+        <event type="service" invoke="createGoogleBaseConfig"/>
+        <response name="success" type="view" value="EditGoogleBaseConfigs"/>
+        <response name="error" type="view" value="EditGoogleBaseConfigs"/>
+    </request-map>
+    <request-map uri="updateGoogleBaseConfig">
+        <security https="true" auth="true"/>
+        <event type="service" invoke="updateGoogleBaseConfig"/>
+        <response name="success" type="view" value="EditGoogleBaseConfigs"/>
+        <response name="error" type="view" value="EditGoogleBaseConfigs"/>
+    </request-map>
+    <request-map uri="deleteGoogleBaseConfig">
+        <security https="true" auth="true"/>
+        <event type="service" invoke="deleteGoogleBaseConfig"/>
+        <response name="success" type="view" value="EditGoogleBaseConfigs"/>
+        <response name="error" type="view" value="EditGoogleBaseConfigs"/>
+    </request-map>
 
     <!-- end of request mappings -->
 
@@ -56,5 +80,6 @@
     <view-map name="keywordsearch" type="screen" page="component://googlebase/widget/GoogleBaseScreens.xml#keywordsearch"/>
     <view-map name="EditProduct" type="screen" page="component://googlebase/widget/GoogleBaseScreens.xml#EditProduct"/>
     <view-map name="ProductsExportToGoogle" type="screen" page="component://googlebase/widget/GoogleBaseScreens.xml#ProductsExportToGoogle"/>
+    <view-map name="EditGoogleBaseConfigs" type="screen" page="component://googlebase/widget/GoogleBaseScreens.xml#EditGoogleBaseConfigs"/>
     <!-- end of view mappings -->
 </site-conf>

Modified: ofbiz/trunk/specialpurpose/googlebase/widget/GoogleBaseForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/googlebase/widget/GoogleBaseForms.xml?rev=809582&r1=809581&r2=809582&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/googlebase/widget/GoogleBaseForms.xml (original)
+++ ofbiz/trunk/specialpurpose/googlebase/widget/GoogleBaseForms.xml Mon Aug 31 13:31:27 2009
@@ -66,4 +66,37 @@
         </field>
         <field name="submitButton" title="${uiLabelMap.GoogleBaseExportToGoogle}"><submit button-type="button"/></field>
     </form>
+    
+    <form name="ListGoogleBaseConfigs" type="list"  list-name="googleBaseConfigs"  target="updateGoogleBaseConfig"
+        odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
+        <actions>
+            <entity-condition entity-name="GoogleBaseConfig">
+                <order-by field-name="productStoreId"/>
+            </entity-condition>
+        </actions>
+        <auto-fields-service service-name="updateGoogleBaseConfig"/>
+        <field name="productStoreId"><display/></field>
+        <field name="deleteGoogleBaseConfig" title="" widget-style="buttontext">
+            <hyperlink target="deleteGoogleBaseConfig" description="${uiLabelMap.CommonDelete}" also-hidden="false">
+                <parameter param-name="productStoreId"/>
+            </hyperlink>
+        </field>
+        <field name="accountPassword"><password/></field>
+        <field name="submitButton" title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/></field>
+    </form>
+    
+    <form name="AddGoogleBaseConfig" type="single" target="createGoogleBaseConfig" title="">
+        <auto-fields-service service-name="createGoogleBaseConfig"/>
+        <field name="productStoreId">
+            <drop-down allow-empty="false">
+                <option key="" description="- ${uiLabelMap.CommonSelectAny} -"/>
+                <entity-options entity-name="ProductStore" description="${storeName} [${productStoreId}]">
+                    <entity-order-by field-name="storeName"/>
+                </entity-options>
+            </drop-down>
+        </field>
+        <field name="accountPassword"><password/></field>
+        <field name="submitButton" title="${uiLabelMap.CommonAdd}"><submit button-type="button"/></field>
+    </form>
+    
 </forms>
\ No newline at end of file

Modified: ofbiz/trunk/specialpurpose/googlebase/widget/GoogleBaseMenus.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/googlebase/widget/GoogleBaseMenus.xml?rev=809582&r1=809581&r2=809582&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/googlebase/widget/GoogleBaseMenus.xml (original)
+++ ofbiz/trunk/specialpurpose/googlebase/widget/GoogleBaseMenus.xml Mon Aug 31 13:31:27 2009
@@ -19,6 +19,7 @@
 -->
 <menus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-menu.xsd">
     <menu name="GoogleBaseAppBar" title="${uiLabelMap.GoogleBaseApplication}" extends="CommonAppBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
+        <menu-item name="GoogleBaseConfigs" title="${uiLabelMap.GoogleBaseConfiguration}"><link target="EditGoogleBaseConfigs"/></menu-item>
         <menu-item name="googlebase" title="${uiLabelMap.GoogleBaseExportToGoogle}"><link target="advancedsearch"/></menu-item>
     </menu>
 </menus>

Modified: ofbiz/trunk/specialpurpose/googlebase/widget/GoogleBaseScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/googlebase/widget/GoogleBaseScreens.xml?rev=809582&r1=809581&r2=809582&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/googlebase/widget/GoogleBaseScreens.xml (original)
+++ ofbiz/trunk/specialpurpose/googlebase/widget/GoogleBaseScreens.xml Mon Aug 31 13:31:27 2009
@@ -139,4 +139,24 @@
             </widgets>
         </section>
     </screen>
+
+    <screen name="EditGoogleBaseConfigs">
+        <section>
+            <actions>
+                <set field="titleProperty" value="GoogleBaseConfiguration"/>
+                <set field="headerItem" value="GoogleBaseConfigs"/>
+                <set field="productStoreId" from-field="parameters.productStoreId"/>
+            </actions>
+            <widgets>
+                <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
+                    <decorator-section name="body">
+                        <include-form name="ListGoogleBaseConfigs" location="component://googlebase/widget/GoogleBaseForms.xml"/>
+                        <screenlet id="add-gbs-configuration" title="${uiLabelMap.GoogleBaseAddGoogleBaseConfiguration}" collapsible="true">
+                            <include-form name="AddGoogleBaseConfig" location="component://googlebase/widget/GoogleBaseForms.xml"/>
+                        </screenlet>    
+                    </decorator-section>
+                </decorator-screen>
+            </widgets>
+        </section>
+    </screen>
 </screens>
\ No newline at end of file