Source Code Cross Referenced for LeadRuleWebEventProcessor.java in  » ERP-CRM-Financial » SourceTap-CRM » com » sourcetap » sfa » lead » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » SourceTap CRM » com.sourcetap.sfa.lead 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * 
003:         * Copyright (c) 2004 SourceTap - www.sourcetap.com
004:         *
005:         *  The contents of this file are subject to the SourceTap Public License 
006:         * ("License"); You may not use this file except in compliance with the 
007:         * License. You may obtain a copy of the License at http://www.sourcetap.com/license.htm
008:         * Software distributed under the License is distributed on an  "AS IS"  basis,
009:         * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
010:         * the specific language governing rights and limitations under the License.
011:         *
012:         * The above copyright notice and this permission notice shall be included
013:         * in all copies or substantial portions of the Software.
014:         *
015:         */
016:
017:        package com.sourcetap.sfa.lead;
018:
019:        import java.util.HashMap;
020:
021:        import javax.servlet.http.HttpServletRequest;
022:        import javax.servlet.http.HttpServletResponse;
023:
024:        import org.ofbiz.entity.GenericDelegator;
025:        import org.ofbiz.entity.GenericValue;
026:        import org.ofbiz.entity.model.ModelEntity;
027:
028:        import com.sourcetap.sfa.event.DataMatrix;
029:        import com.sourcetap.sfa.event.GenericEventProcessor;
030:        import com.sourcetap.sfa.event.GenericWebEventProcessor;
031:        import com.sourcetap.sfa.ui.UICache;
032:        import com.sourcetap.sfa.ui.UIWebScreenSection;
033:        import com.sourcetap.sfa.util.UserInfo;
034:
035:        /**
036:         * DOCUMENT ME!
037:         *
038:         */
039:        public class LeadRuleWebEventProcessor extends GenericWebEventProcessor {
040:            public static final String module = LeadRuleCriteriaWebEventProcessor.class
041:                    .getName();
042:
043:            /**
044:             * DOCUMENT ME!
045:             *
046:             * @param delegator 
047:             */
048:            protected void clearRuleCache(GenericDelegator delegator) {
049:                LeadHelper leadHelper = LeadHelper.getInstance(delegator);
050:                leadHelper.clearCache();
051:            }
052:
053:            /**
054:             * DOCUMENT ME!
055:             *
056:             * @param userInfo 
057:             * @param uiWebScreenSection 
058:             * @param request 
059:             * @param response 
060:             * @param delegator 
061:             * @param eventProcessor 
062:             * @param dataMatrix 
063:             * @param uiCache 
064:             *
065:             * @return 
066:             */
067:            protected int postUpdate(UserInfo userInfo,
068:                    UIWebScreenSection uiWebScreenSection,
069:                    HttpServletRequest request, HttpServletResponse response,
070:                    GenericDelegator delegator,
071:                    GenericEventProcessor eventProcessor,
072:                    DataMatrix dataMatrix, UICache uiCache) {
073:
074:                // Clear the entire UI cache so all users' copies of screen sections will be refreshed.
075:                clearRuleCache(delegator);
076:
077:                return STATUS_CONTINUE;
078:            }
079:
080:            /**
081:             * DOCUMENT ME!
082:             *
083:             * @param userInfo 
084:             * @param uiWebScreenSection 
085:             * @param request 
086:             * @param response 
087:             * @param delegator 
088:             * @param eventProcessor 
089:             * @param dataMatrix 
090:             * @param uiCache 
091:             *
092:             * @return 
093:             */
094:            protected int postInsert(UserInfo userInfo,
095:                    UIWebScreenSection uiWebScreenSection,
096:                    HttpServletRequest request, HttpServletResponse response,
097:                    GenericDelegator delegator,
098:                    GenericEventProcessor eventProcessor,
099:                    DataMatrix dataMatrix, UICache uiCache) {
100:                // Clear the entire UI cache so all users' copies of screen sections will be refreshed.
101:                clearRuleCache(delegator);
102:
103:                return STATUS_CONTINUE;
104:            }
105:
106:            /**
107:             * DOCUMENT ME!
108:             *
109:             * @param userInfo 
110:             * @param uiWebScreenSection 
111:             * @param request 
112:             * @param response 
113:             * @param delegator 
114:             * @param eventProcessor 
115:             * @param primaryME 
116:             * @param fields 
117:             * @param uiCache 
118:             *
119:             * @return 
120:             */
121:            protected int postDelete(UserInfo userInfo,
122:                    UIWebScreenSection uiWebScreenSection,
123:                    HttpServletRequest request, HttpServletResponse response,
124:                    GenericDelegator delegator,
125:                    GenericEventProcessor eventProcessor,
126:                    ModelEntity primaryME, HashMap fields, UICache uiCache) {
127:
128:                // Clear the entire UI cache so all users' copies of screen sections will be refreshed.
129:                clearRuleCache(delegator);
130:
131:                return STATUS_CONTINUE;
132:            }
133:
134:            /**
135:             * This function gets the application path to be used to reconstruct the URI when a
136:             * UI History record is logged.  Example: "/accounts"
137:             * @author  John Nutting
138:             * @param url The URL used to open the screen section
139:             * @return String containing the application path
140:             */
141:            protected String getUiHistoryAppPath(String url) {
142:                return "/leadRules";
143:            }
144:
145:            /**
146:             * This function gets the description to store in the UI history table.  This description
147:             * will show up in the UI History drop list.
148:             * @author  John Nutting
149:             * @param dataMatrix DataMatrix object containing the data from the screen
150:             * @param delegator Generic delegator through which the data base is accessed
151:             * @param action The action being performed on the screen
152:             * @param uiWebScreenSection The UIWebScreenSection being used to construct the screen section
153:             * @return String containing the UI History description
154:             */
155:            protected String getUiHistoryDescription(DataMatrix dataMatrix,
156:                    GenericDelegator delegator, String action,
157:                    UIWebScreenSection uiWebScreenSection) {
158:                GenericValue primaryGV = dataMatrix.getCurrentBuffer()
159:                        .getGenericValue(0, 0);
160:
161:                return "LeadRule: " + primaryGV.getString("name");
162:            }
163:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.