svn commit: r634143 - in /ofbiz/trunk/applications/marketing: ./ config/ webapp/sfa/ webapp/sfa/WEB-INF/ widget/sfa/

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

svn commit: r634143 - in /ofbiz/trunk/applications/marketing: ./ config/ webapp/sfa/ webapp/sfa/WEB-INF/ widget/sfa/

apatel-2
Author: apatel
Date: Wed Mar  5 19:41:57 2008
New Revision: 634143

URL: http://svn.apache.org/viewvc?rev=634143&view=rev
Log:
Initial webapp for coming up SFA app. Menu items are not active yet. Thanks to Sumit Pandit, Saurabh Nayak, Awdesh Parihar and others for working on implementation.

Added:
    ofbiz/trunk/applications/marketing/webapp/sfa/
    ofbiz/trunk/applications/marketing/webapp/sfa/WEB-INF/
    ofbiz/trunk/applications/marketing/webapp/sfa/WEB-INF/controller.xml   (with props)
    ofbiz/trunk/applications/marketing/webapp/sfa/WEB-INF/web.xml   (with props)
    ofbiz/trunk/applications/marketing/webapp/sfa/index.jsp   (with props)
    ofbiz/trunk/applications/marketing/widget/sfa/
    ofbiz/trunk/applications/marketing/widget/sfa/CommonScreens.xml   (with props)
    ofbiz/trunk/applications/marketing/widget/sfa/SfaMenus.xml   (with props)
Modified:
    ofbiz/trunk/applications/marketing/config/MarketingUiLabels.xml
    ofbiz/trunk/applications/marketing/ofbiz-component.xml

Modified: ofbiz/trunk/applications/marketing/config/MarketingUiLabels.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/marketing/config/MarketingUiLabels.xml?rev=634143&r1=634142&r2=634143&view=diff
==============================================================================
--- ofbiz/trunk/applications/marketing/config/MarketingUiLabels.xml (original)
+++ ofbiz/trunk/applications/marketing/config/MarketingUiLabels.xml Wed Mar  5 19:41:57 2008
@@ -1086,6 +1086,36 @@
         <value xml:lang="th">รหัสประเภทของกลุ่ม</value>
         <value xml:lang="zh">分区组类型标识</value>
     </property>
+    <property key="SfaAcccountTeams">
+        <value xml:lang="en">Account and Account Teams</value>
+    </property>
+    <property key="SfaCompanyName">
+        <value xml:lang="en">OFBiz: SFA Manager</value>
+    </property>
+    <property key="SfaCompetitors">
+        <value xml:lang="en">Competitors &amp; Partners </value>
+    </property>
+    <property key="SfaDocuments">
+        <value xml:lang="en">Documents</value>
+    </property>
+    <property key="SfaEvents">
+        <value xml:lang="en">Events</value>
+    </property>
+    <property key="SfaForecasts">
+        <value xml:lang="en">Forecast</value>
+    </property>
+    <property key="SfaOpportunities">
+        <value xml:lang="en">Opportunities</value>
+    </property>
+    <property key="SfaLeads">
+        <value xml:lang="en">Leads</value>
+    </property>
+    <property key="SfaManagerApplication">
+        <value xml:lang="en">SFA Manager Application</value>
+    </property>
+    <property key="SfaManagerWelcome">
+        <value xml:lang="en">Welcome to the SFA Manager Application</value>
+    </property>
     <property key="Tracking">
         <value xml:lang="en">Tracking</value>
         <value xml:lang="es">Seguimiento</value>

Modified: ofbiz/trunk/applications/marketing/ofbiz-component.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/marketing/ofbiz-component.xml?rev=634143&r1=634142&r2=634143&view=diff
==============================================================================
--- ofbiz/trunk/applications/marketing/ofbiz-component.xml (original)
+++ ofbiz/trunk/applications/marketing/ofbiz-component.xml Wed Mar  5 19:41:57 2008
@@ -37,5 +37,11 @@
         location="webapp/marketing"
         base-permission="OFBTOOLS,MARKETING"
         mount-point="/marketing"/>
+    <webapp name="SalesForceAutomation"
+        title="SFA"
+        server="default-server"
+        location="webapp/sfa"
+        base-permission="OFBTOOLS,MARKETING"
+        mount-point="/sfa"/>
 </ofbiz-component>
 

Added: ofbiz/trunk/applications/marketing/webapp/sfa/WEB-INF/controller.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/marketing/webapp/sfa/WEB-INF/controller.xml?rev=634143&view=auto
==============================================================================
--- ofbiz/trunk/applications/marketing/webapp/sfa/WEB-INF/controller.xml (added)
+++ ofbiz/trunk/applications/marketing/webapp/sfa/WEB-INF/controller.xml Wed Mar  5 19:41:57 2008
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<site-conf xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+        xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/site-conf.xsd">
+    <include location="component://common/webcommon/WEB-INF/common-controller.xml"/>
+    <description>SFA Manager Module Site Configuration File</description>
+    <owner>Copyright 2001-2007 The Apache Software Foundation</owner>
+        
+    <!-- Request Mappings -->
+    <request-map uri="main">
+        <security https="true" auth="true"/>
+        <response name="success" type="view" value="main"/>
+    </request-map>
+    <!-- end of request mappings -->
+    
+    <!-- View Mappings -->
+    <view-map name="main" type="screen" page="component://marketing/widget/sfa/CommonScreens.xml#main"/>
+    <!-- end of view mappings -->
+</site-conf>

Propchange: ofbiz/trunk/applications/marketing/webapp/sfa/WEB-INF/controller.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/trunk/applications/marketing/webapp/sfa/WEB-INF/controller.xml
------------------------------------------------------------------------------
    svn:keywords = Date Rev Author URL Id

Propchange: ofbiz/trunk/applications/marketing/webapp/sfa/WEB-INF/controller.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: ofbiz/trunk/applications/marketing/webapp/sfa/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/marketing/webapp/sfa/WEB-INF/web.xml?rev=634143&view=auto
==============================================================================
--- ofbiz/trunk/applications/marketing/webapp/sfa/WEB-INF/web.xml (added)
+++ ofbiz/trunk/applications/marketing/webapp/sfa/WEB-INF/web.xml Wed Mar  5 19:41:57 2008
@@ -0,0 +1,94 @@
+<?xml version="1.0"?>
+<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<web-app>
+    <display-name>Open For Business - SFA Manager</display-name>
+    <description>SFA Manager Module of the Open For Business Project</description>
+
+    <context-param>
+        <param-name>entityDelegatorName</param-name>
+        <param-value>default</param-value>
+        <description>The Name of the Entity Delegator to use, defined in entityengine.xml</description>
+    </context-param>
+    <context-param>
+        <param-name>localDispatcherName</param-name>
+        <param-value>sfa</param-value>
+        <description>A unique name used to identify/recognize the local dispatcher for the Service Engine</description>
+    </context-param>
+    <context-param>
+        <param-name>serviceReaderUrls</param-name>
+        <param-value>/WEB-INF/services.xml</param-value>
+        <description>Configuration File(s) For The Service Dispatcher</description>
+    </context-param>  
+    <filter>
+        <filter-name>ContextFilter</filter-name>
+        <display-name>ContextFilter</display-name>
+        <filter-class>org.ofbiz.webapp.control.ContextFilter</filter-class>
+        <init-param>
+            <param-name>disableContextSecurity</param-name>
+            <param-value>N</param-value>
+        </init-param>
+        <init-param>
+            <param-name>allowedPaths</param-name>
+            <param-value>/control:/select:/index.html:/index.jsp:/default.html:/default.jsp:/images:/includes/maincss.css</param-value>
+        </init-param>
+        <init-param>
+            <param-name>errorCode</param-name>
+            <param-value>403</param-value>
+        </init-param>
+        <init-param>
+            <param-name>redirectPath</param-name>
+            <param-value>/control/main</param-value>
+        </init-param>        
+    </filter>
+    <filter-mapping>
+        <filter-name>ContextFilter</filter-name>
+            <url-pattern>/*</url-pattern>
+    </filter-mapping>
+
+    <listener><listener-class>org.ofbiz.webapp.control.ControlEventListener</listener-class></listener>
+    <listener><listener-class>org.ofbiz.webapp.control.LoginEventListener</listener-class></listener>
+    <!-- NOTE: not all app servers support mounting implementations of the HttpSessionActivationListener interface -->
+    <!-- <listener><listener-class>org.ofbiz.webapp.control.ControlActivationEventListener</listener-class></listener> -->
+  
+    <servlet>
+        <servlet-name>ControlServlet</servlet-name>
+        <display-name>ControlServlet</display-name>
+        <description>Main Control Servlet</description>
+        <servlet-class>org.ofbiz.webapp.control.ControlServlet</servlet-class>
+        <load-on-startup>1</load-on-startup>
+    </servlet>
+    <servlet-mapping>
+        <servlet-name>ControlServlet</servlet-name>
+        <url-pattern>/control/*</url-pattern>
+    </servlet-mapping>
+
+    <session-config>
+        <session-timeout>60</session-timeout> <!-- in minutes -->
+    </session-config>
+
+    <welcome-file-list>
+        <welcome-file>index.jsp</welcome-file>
+        <welcome-file>index.html</welcome-file>
+        <welcome-file>index.htm</welcome-file>
+    </welcome-file-list>
+</web-app>

Propchange: ofbiz/trunk/applications/marketing/webapp/sfa/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/trunk/applications/marketing/webapp/sfa/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:keywords = Date Rev Author URL Id

Propchange: ofbiz/trunk/applications/marketing/webapp/sfa/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: ofbiz/trunk/applications/marketing/webapp/sfa/index.jsp
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/marketing/webapp/sfa/index.jsp?rev=634143&view=auto
==============================================================================
--- ofbiz/trunk/applications/marketing/webapp/sfa/index.jsp (added)
+++ ofbiz/trunk/applications/marketing/webapp/sfa/index.jsp Wed Mar  5 19:41:57 2008
@@ -0,0 +1,19 @@
+<%--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+--%>
+<%response.sendRedirect("control/main");%>

Propchange: ofbiz/trunk/applications/marketing/webapp/sfa/index.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/trunk/applications/marketing/webapp/sfa/index.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Rev Author URL Id

Propchange: ofbiz/trunk/applications/marketing/webapp/sfa/index.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: ofbiz/trunk/applications/marketing/widget/sfa/CommonScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/marketing/widget/sfa/CommonScreens.xml?rev=634143&view=auto
==============================================================================
--- ofbiz/trunk/applications/marketing/widget/sfa/CommonScreens.xml (added)
+++ ofbiz/trunk/applications/marketing/widget/sfa/CommonScreens.xml Wed Mar  5 19:41:57 2008
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+        xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
+    <screen name="main-decorator">
+        <section>
+            <actions>
+                <!-- base/top/specific map first, then more common map added for shared labels -->
+                <property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
+                <property-map resource="MarketingUiLabels" map-name="uiLabelMap" global="true"/>
+                <set field="layoutSettings.companyName" from-field="uiLabelMap.SfaCompanyName" global="true"/>
+                <set field="layoutSettings.companySubtitle" from-field="uiLabelMap.MarketingCompanySubtitle" global="true"/>
+                <set field="applicationMenuName" value="SfaAppBar" global="true"/>
+                <set field="applicationMenuLocation" value="component://marketing/widget/sfa/SfaMenus.xml" global="true"/>
+            </actions>
+            <widgets>
+                <include-screen name="GlobalDecorator" location="component://common/widget/CommonScreens.xml"/>
+            </widgets>
+        </section>
+    </screen>
+    <screen name="main">
+        <section>
+            <widgets>
+                <decorator-screen name="main-decorator" location="component://marketing/widget/sfa/CommonScreens.xml">
+                    <decorator-section name="body">
+                        <container style="screenlet">
+                            <container style="screenlet-header">
+                                <label style="boxhead" text="${uiLabelMap.SfaManagerApplication}"/>
+                            </container>
+                            <container style="screenlet-body">
+                                <container><label style="label" text="${uiLabelMap.SfaManagerWelcome}"/></container>
+                            </container>
+                        </container>
+                    </decorator-section>
+                </decorator-screen>
+            </widgets>
+        </section>
+    </screen>
+</screens>

Propchange: ofbiz/trunk/applications/marketing/widget/sfa/CommonScreens.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/trunk/applications/marketing/widget/sfa/CommonScreens.xml
------------------------------------------------------------------------------
    svn:keywords = Date Rev Author URL Id

Propchange: ofbiz/trunk/applications/marketing/widget/sfa/CommonScreens.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: ofbiz/trunk/applications/marketing/widget/sfa/SfaMenus.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/marketing/widget/sfa/SfaMenus.xml?rev=634143&view=auto
==============================================================================
--- ofbiz/trunk/applications/marketing/widget/sfa/SfaMenus.xml (added)
+++ ofbiz/trunk/applications/marketing/widget/sfa/SfaMenus.xml Wed Mar  5 19:41:57 2008
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+<menus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-menu.xsd">
+    <menu name="SfaAppBar" default-menu-item-name="main" id="app-navigation" type="simple" title="${uiLabelMap.SfaManagerApplication}"
+        default-selected-style="selected" menu-container-style="button-bar tab-bar">
+        <menu-item name="Main" title="${uiLabelMap.MarketingMainPage}"><link target=""/></menu-item>
+        <menu-item name="AccountTeams" title="${uiLabelMap.SfaAcccountTeams}"><link target=""/></menu-item>
+        <menu-item name="Contacts" title="${uiLabelMap.SfaContacts}"><link target=""/></menu-item>
+        <menu-item name="Leads" title="${uiLabelMap.SfaLeads}"><link target=""/></menu-item>
+        <menu-item name="Competitors" title="${uiLabelMap.SfaCompetitors}"><link target=""/></menu-item>
+        <menu-item name="Events" title="${uiLabelMap.SfaEvents}"><link target=""/></menu-item>
+        <menu-item name="Documents" title="${uiLabelMap.SfaDocuments}"><link target=""/></menu-item>
+        <menu-item name="Forecasts" title="${uiLabelMap.SfaForecasts}"><link target=""/></menu-item>
+        <menu-item name="Opportunities" title="${uiLabelMap.SfaOpportunities}"><link target=""/></menu-item>
+        <menu-item name="Logout" title="${uiLabelMap.CommonLogout}" align-style="col-right" selected-style="selected">
+            <condition><not><if-empty field-name="userLogin"/></not></condition>
+            <link target="logout"/>
+        </menu-item>
+        <menu-item name="Login" title="${uiLabelMap.CommonLogin}" align-style="col-right" selected-style="selected">
+            <condition><if-empty field-name="userLogin"/></condition>
+            <link target="${checkLoginUrl}"/>
+        </menu-item>
+    </menu>
+</menus>

Propchange: ofbiz/trunk/applications/marketing/widget/sfa/SfaMenus.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/trunk/applications/marketing/widget/sfa/SfaMenus.xml
------------------------------------------------------------------------------
    svn:keywords = Date Rev Author URL Id

Propchange: ofbiz/trunk/applications/marketing/widget/sfa/SfaMenus.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml