Source Code Cross Referenced for UserInfo.java in  » Groupware » Data-share » org » datashare » 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 » Groupware » Data share » org.datashare 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /* ----- BEGIN LICENSE BLOCK -----
002:         * Version: MPL 1.1
003:         *
004:         * The contents of this file are subject to the Mozilla Public License Version
005:         * 1.1 (the "License"); you may not use this file except in compliance with
006:         * the License. You may obtain a copy of the License at
007:         * http://www.mozilla.org/MPL/
008:         *
009:         * Software distributed under the License is distributed on an "AS IS" basis,
010:         * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
011:         * for the specific language governing rights and limitations under the
012:         * License.
013:         *
014:         * The Original Code is the DataShare server.
015:         *
016:         * The Initial Developer of the Original Code is
017:         * Ball Aerospace & Technologies Corp, Fairborn, Ohio
018:         * Portions created by the Initial Developer are Copyright (C) 2001
019:         * the Initial Developer. All Rights Reserved.
020:         *
021:         * Contributor(s): Charles Wood <cwood@ball.com>
022:         *
023:         * ----- END LICENSE BLOCK ----- */
024:        /* RCS $Id: UserInfo.java,v 1.4 2002/01/29 20:50:17 lizellaman Exp $
025:         * $Log: UserInfo.java,v $
026:         * Revision 1.4  2002/01/29 20:50:17  lizellaman
027:         * Added LoggingInterface, modified the PropertiesInterface implementation
028:         *
029:         * Revision 1.3  2002/01/22 15:05:53  lizellaman
030:         * make admin attribute for clients default to false (was true)
031:         *
032:         * Revision 1.2  2002/01/03 03:37:36  lizellaman
033:         * periodic update of changes I have made
034:         *
035:         * Revision 1.1.1.1  2001/10/23 13:37:15  lizellaman
036:         * initial sourceforge release
037:         *
038:         */
039:
040:        package org.datashare;
041:
042:        import java.io.Serializable;
043:        import org.datashare.objects.RegistrationInfo;
044:
045:        /**
046:         * contains static information about clients (things that should not change once
047:         * they are connected to the server)
048:         */
049:        public class UserInfo implements  Serializable {
050:            /**
051:             * this allows us to serialize this class without 'marshalling' errors.
052:             *
053:             */
054:            static final long serialVersionUID = 9030493813756685675L;
055:
056:            private RegistrationInfo regInfo = null;
057:            public boolean authenticated = false; // need to decide if authenticated is defaulted to true or false (use PropertiesManager!!)
058:            public boolean admin = false;
059:            public String uniqueName = "";
060:
061:            public String firstName = "";
062:            public String lastName = "";
063:            public String primaryPhone = "";
064:            public String primaryEmail = "";
065:            public String imageURL = "";
066:            public String clientMachine = "";
067:            public String serverMachine = "";
068:
069:            /**
070:             * private because should never be used!
071:             */
072:            private UserInfo() {
073:            }
074:
075:            /**
076:             * Constructor, not useful except for testing for what type of object is in a
077:             * DataShareObject
078:             */
079:            public UserInfo(RegistrationInfo regInfo) {
080:                this .regInfo = regInfo;
081:                uniqueName = regInfo.clientUserName; // default to userName
082:                SessionUtilities.getLoggingInterface().debugMsg(
083:                        SessionUtilities.getLoggingInterface().DEBUG,
084:                        SessionUtilities.getLoggingInterface().CLIENT,
085:                        "UserInfo for " + uniqueName + " has admin set to "
086:                                + admin + " (for now)");
087:            }
088:
089:            public String getUserName() {
090:                return regInfo.clientUserName;
091:            }
092:
093:            public int getClientMode() {
094:                return regInfo.clientMode;
095:            }
096:
097:            public String getClientClass() {
098:                return regInfo.clientClass;
099:            }
100:
101:            public String getEnterpriseName() {
102:                return regInfo.enterpriseName;
103:            }
104:
105:            public String getOtherInfo() {
106:                return regInfo.otherInfo;
107:            }
108:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.