Source Code Cross Referenced for Report.java in  » Portal » Open-Portal » com » sun » portal » admin » console » ubt » bean » 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 » Portal » Open Portal » com.sun.portal.admin.console.ubt.bean 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /**
002:         * Copyright 2005 Sun Microsystems, Inc. All
003:         * rights reserved. Use of this product is subject
004:         * to license terms. Federal Acquisitions:
005:         * Commercial Software -- Government Users
006:         * Subject to Standard License Terms and
007:         * Conditions.
008:         *
009:         * Sun, Sun Microsystems, the Sun logo, and Sun ONE
010:         * are trademarks or registered trademarks of Sun Microsystems,
011:         * Inc. in the United States and other countries.
012:         */package com.sun.portal.admin.console.ubt.bean;
013:
014:        import com.sun.portal.ubt.report.client.UBTReportSaver;
015:        import com.sun.portal.admin.console.ubt.data.UBTResourceBundle;
016:
017:        /**
018:         *
019:         */
020:        public class Report {
021:            //title keys
022:            public static String PORTAL_USER_IDENTITY_KEY = "UserIdetity";
023:            public static String PORTAL_USER_CUSTOMIZATION_KEY = "CustomizationTitle";
024:            public static String PORTAL_CONTAINER_RENDER_KEY = "ContainerRenderTitle";
025:            public static String PORTAL_CHANNEL_RENDER_KEY = "ChannelRenderTitle";
026:            public static String PORTLET_RENDER_KEY = "PortletRenderTitle";
027:            public static String PORTAL_USER_LOGIN_KEY = "UserLoginTitle";
028:            public static String PORTAL_CONTAINER_CUSTOMIZATION_KEY = "ContainerCustomizationTitle";
029:            public static String PORTLET_ACTIONS_KEY = "PortletActionsTitle";
030:            //description keys
031:            public static String PORTAL_USER_IDENTITY_DESC_KEY = "PortalUserIdentityDescription";
032:            public static String PORTAL_USER_CUSTOMIZATION_DESC_KEY = "PortalUserCustomizationDescription";
033:            public static String PORTAL_CONTAINER_RENDER_DESC_KEY = "ContainerRenderDescription";
034:            public static String PORTAL_CHANNEL_RENDER_DESC_KEY = "ChannelRenderDescription";
035:            public static String PORTLET_RENDER_DESC_KEY = "PortletRenderDescription";
036:            public static String PORTAL_USER_LOGIN_DESC_KEY = "UserLoginDescription";
037:            public static String PORTAL_CONTAINER_CUSTOMIZATION_DESC_KEY = "PortalContainerCustomizationDescription";
038:            public static String PORTLET_ACTIONS_DESC_KEY = "PortletActionsDescription";
039:
040:            private String description;
041:            private String shortName;
042:            private String longName;
043:            private String format = UBTReportSaver.DEFAULT_FORMAT;
044:
045:            public Report() {
046:
047:            }
048:
049:            public String getDescription() {
050:                return description;
051:            }
052:
053:            public void setDescription(String description) {
054:                this .description = description;
055:            }
056:
057:            public String getShortName() {
058:                return shortName;
059:            }
060:
061:            public void setShortName(String shortName) {
062:                this .shortName = shortName;
063:            }
064:
065:            static Report getInstance(String name) {
066:                Report report = new Report();
067:                report.setShortName(name);
068:                report.setLongName(getReportLongName(name));
069:                report.setDescription(getReportDesciption(name));
070:                return report;
071:            }
072:
073:            private static String getReportDesciption(String name) {
074:                String val = "";
075:                if (name.equals(UBTReportsBean.PORTAL_CHANNEL_RENDER)) {
076:                    val = UBTResourceBundle
077:                            .getReportProperty(PORTAL_CHANNEL_RENDER_DESC_KEY);
078:                } else if (name
079:                        .equals(UBTReportsBean.PORTAL_CONTAINER_CUSTOMIZATION)) {
080:                    val = UBTResourceBundle
081:                            .getReportProperty(PORTAL_CONTAINER_CUSTOMIZATION_DESC_KEY);
082:                } else if (name.equals(UBTReportsBean.PORTAL_CONTAINER_RENDER)) {
083:                    val = UBTResourceBundle
084:                            .getReportProperty(PORTAL_CONTAINER_RENDER_DESC_KEY);
085:                } else if (name
086:                        .equals(UBTReportsBean.PORTAL_USER_CUSTOMIZATION)) {
087:                    val = UBTResourceBundle
088:                            .getReportProperty(PORTAL_USER_CUSTOMIZATION_DESC_KEY);
089:                } else if (name.equals(UBTReportsBean.PORTAL_USER_IDENTITY)) {
090:                    val = UBTResourceBundle
091:                            .getReportProperty(PORTAL_USER_IDENTITY_DESC_KEY);
092:                } else if (name.equals(UBTReportsBean.PORTAL_USER_LOGIN)) {
093:                    val = UBTResourceBundle
094:                            .getReportProperty(PORTAL_USER_LOGIN_DESC_KEY);
095:                } else if (name.equals(UBTReportsBean.PORTLET_ACTIONS)) {
096:                    val = UBTResourceBundle
097:                            .getReportProperty(PORTLET_ACTIONS_DESC_KEY);
098:                } else if (name.equals(UBTReportsBean.PORTLET_RENDER)) {
099:                    val = UBTResourceBundle
100:                            .getReportProperty(PORTLET_RENDER_DESC_KEY);
101:                }
102:                return val;
103:            }
104:
105:            private static String getReportLongName(String name) {
106:                String val = name;
107:                if (name.equals(UBTReportsBean.PORTAL_CHANNEL_RENDER)) {
108:                    val = UBTResourceBundle
109:                            .getReportProperty(PORTAL_CHANNEL_RENDER_KEY);
110:                } else if (name
111:                        .equals(UBTReportsBean.PORTAL_CONTAINER_CUSTOMIZATION)) {
112:                    val = UBTResourceBundle
113:                            .getReportProperty(PORTAL_CONTAINER_CUSTOMIZATION_KEY);
114:                } else if (name.equals(UBTReportsBean.PORTAL_CONTAINER_RENDER)) {
115:                    val = UBTResourceBundle
116:                            .getReportProperty(PORTAL_CONTAINER_RENDER_KEY);
117:                } else if (name
118:                        .equals(UBTReportsBean.PORTAL_USER_CUSTOMIZATION)) {
119:                    val = UBTResourceBundle
120:                            .getReportProperty(PORTAL_USER_CUSTOMIZATION_KEY);
121:                } else if (name.equals(UBTReportsBean.PORTAL_USER_IDENTITY)) {
122:                    val = UBTResourceBundle
123:                            .getReportProperty(PORTAL_USER_IDENTITY_KEY);
124:                } else if (name.equals(UBTReportsBean.PORTAL_USER_LOGIN)) {
125:                    val = UBTResourceBundle
126:                            .getReportProperty(PORTAL_USER_LOGIN_KEY);
127:                } else if (name.equals(UBTReportsBean.PORTLET_ACTIONS)) {
128:                    val = UBTResourceBundle
129:                            .getReportProperty(PORTLET_ACTIONS_KEY);
130:                } else if (name.equals(UBTReportsBean.PORTLET_RENDER)) {
131:                    val = UBTResourceBundle
132:                            .getReportProperty(PORTLET_RENDER_KEY);
133:                }
134:                return val;
135:            }
136:
137:            public String getLongName() {
138:                return longName;
139:            }
140:
141:            public void setLongName(String longName) {
142:                this .longName = longName;
143:            }
144:
145:            public String getFormat() {
146:                return format;
147:            }
148:
149:            public void setFormat(String format) {
150:                this.format = format;
151:            }
152:
153:        }
w__w__w___._ja_v_a2__s.___co___m | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.