Source Code Cross Referenced for StrutsTriggerLogicImpl.java in  » UML » AndroMDA-3.2 » org » andromda » cartridges » bpm4struts » metafacades » 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 » UML » AndroMDA 3.2 » org.andromda.cartridges.bpm4struts.metafacades 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package org.andromda.cartridges.bpm4struts.metafacades;
002:
003:        import org.andromda.cartridges.bpm4struts.Bpm4StrutsGlobals;
004:        import org.andromda.utils.StringUtilsHelper;
005:        import org.andromda.metafacades.uml.TransitionFacade;
006:
007:        /**
008:         * MetafacadeLogic implementation.
009:         *
010:         * @see org.andromda.cartridges.bpm4struts.metafacades.StrutsTrigger
011:         */
012:        public class StrutsTriggerLogicImpl extends StrutsTriggerLogic {
013:            public StrutsTriggerLogicImpl(java.lang.Object metaObject,
014:                    java.lang.String context) {
015:                super (metaObject, context);
016:            }
017:
018:            /**
019:             * @see org.andromda.cartridges.bpm4struts.metafacades.StrutsTrigger#getNotAllowedTitleKey()()
020:             */
021:            protected java.lang.String handleGetNotAllowedTitleKey() {
022:                return getTitleKey() + ".notallowed";
023:            }
024:
025:            /**
026:             * @see org.andromda.cartridges.bpm4struts.metafacades.StrutsTrigger#getTitleKey()()
027:             */
028:            protected java.lang.String handleGetTitleKey() {
029:                return getTriggerKey() + ".title";
030:            }
031:
032:            /**
033:             * @see org.andromda.cartridges.bpm4struts.metafacades.StrutsTrigger#getResetTitleKey()()
034:             */
035:            protected java.lang.String handleGetResetTitleKey() {
036:                return getTitleKey() + ".reset";
037:            }
038:
039:            protected java.lang.String handleGetResetMessageKey() {
040:                return getResetTitleKey() + ".message";
041:            }
042:
043:            /**
044:             * @see org.andromda.cartridges.bpm4struts.metafacades.StrutsTrigger#getResetNotAllowedTitleKey()()
045:             */
046:            protected java.lang.String handleGetResetNotAllowedTitleKey() {
047:                return getResetTitleKey() + ".not.allowed";
048:            }
049:
050:            /**
051:             * @see org.andromda.cartridges.bpm4struts.metafacades.StrutsTrigger#getTriggerKey()()
052:             */
053:            protected java.lang.String handleGetTriggerKey() {
054:                String triggerKey = StringUtilsHelper
055:                        .toResourceMessageKey(getName());
056:
057:                if (!normalizeMessages()) {
058:                    final StrutsAction action = getStrutsAction();
059:                    if (action != null) {
060:                        final StrutsJsp page = action.getInput();
061:                        if (page != null) {
062:                            triggerKey = page.getMessageKey() + '.'
063:                                    + triggerKey;
064:                        }
065:                    }
066:                }
067:
068:                return triggerKey;
069:            }
070:
071:            protected java.lang.String handleGetTriggerValue() {
072:                return StringUtilsHelper.toPhrase(getName());
073:            }
074:
075:            protected java.lang.String handleGetTitleValue() {
076:                return getTriggerValue();
077:            }
078:
079:            protected java.lang.String handleGetResetTitleValue() {
080:                return "Reset";
081:            }
082:
083:            protected java.lang.String handleGetResetMessageValue() {
084:                return "Reset";
085:            }
086:
087:            protected java.lang.String handleGetResetNotAllowedTitleValue() {
088:                return "You are not allowed to reset";
089:            }
090:
091:            protected java.lang.String handleGetNotAllowedTitleValue() {
092:                return "You are not allowed to call this action";
093:            }
094:
095:            protected boolean handleIsActionTrigger() {
096:                return this .getStrutsAction() != null;
097:            }
098:
099:            protected Object handleGetStrutsAction() {
100:                StrutsAction triggerAction = null;
101:
102:                TransitionFacade transition = getTransition();
103:                if (transition instanceof  StrutsAction) {
104:                    triggerAction = (StrutsAction) transition;
105:                }
106:                return triggerAction;
107:            }
108:
109:            private boolean normalizeMessages() {
110:                final String normalizeMessages = (String) getConfiguredProperty(Bpm4StrutsGlobals.PROPERTY_NORMALIZE_MESSAGES);
111:                return Boolean.valueOf(normalizeMessages).booleanValue();
112:            }
113:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.