Source Code Cross Referenced for SystemNode.java in  » Portal » Open-Portal » com » sun » portal » netfile » applet » java2 » model » 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.netfile.applet.java2.model 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package com.sun.portal.netfile.applet.java2.model;
002:
003:        import java.util.Hashtable;
004:
005:        public class SystemNode extends NetFileNode {
006:
007:            private static final String ICON_NAME = "host16.gif";
008:            private static final String OPEN_ICON_NAME = "host16.gif";
009:            private static final String DENIED_HOST_ICON_NAME = "deniedHost16.gif";
010:
011:            private String type;
012:            private String domain;
013:            private String userId;
014:            private String password;
015:            private String canonicalEncodingName;
016:            private String encodingString;
017:            private boolean allowedSystemNode;
018:            private boolean isCommonHost;
019:
020:            public SystemNode(String name, String type, String domain,
021:                    String userName, String password, String encodingCanonName,
022:                    String encodingString) {
023:                this (name, type, domain, userName, password, encodingCanonName,
024:                        encodingString, true);
025:            }
026:
027:            public SystemNode(String name, String type, String domain,
028:                    String userName, String password, String encodingCanonName,
029:                    String encodingString, boolean allowedSystemNode) {
030:                super (name, ICON_NAME, OPEN_ICON_NAME);
031:                this .type = type;
032:                this .domain = domain;
033:                this .userId = userName;
034:                this .password = password;
035:                this .canonicalEncodingName = encodingCanonName;
036:                this .encodingString = encodingString;
037:                this .allowedSystemNode = allowedSystemNode;
038:                this .isCommonHost = false;
039:                if (!allowedSystemNode) {
040:                    setIconNames(DENIED_HOST_ICON_NAME, DENIED_HOST_ICON_NAME);
041:                }
042:
043:            }
044:
045:            public String getDomain() {
046:                return (domain == null) ? "" : domain;
047:            }
048:
049:            public void setDomain(String domain) {
050:                this .domain = domain;
051:            }
052:
053:            public String getType() {
054:                return (type == null) ? "" : type;
055:            }
056:
057:            public void setType(String type) {
058:                this .type = type;
059:            }
060:
061:            public String getUserName() {
062:                return (userId == null) ? "" : userId;
063:            }
064:
065:            public String getPassword() {
066:                return (password == null) ? "" : password;
067:            }
068:
069:            public void setUserName(String userName) {
070:                this .userId = userName;
071:
072:            }
073:
074:            public void setPassword(String password) {
075:                this .password = password;
076:            }
077:
078:            public void setCommonHost() {
079:                isCommonHost = true;
080:            }
081:
082:            public boolean isCommonHost() {
083:                return isCommonHost;
084:            }
085:
086:            public String getCharSet() {
087:                return encodingString;
088:            }
089:
090:            public void setCharSet(String charSetString) {
091:                this .encodingString = charSetString;
092:            }
093:
094:            public String getCanonicalEncodingName() {
095:                return canonicalEncodingName;
096:            }
097:
098:            public void setCanonicalEncodingName(String canonicalEncoding) {
099:                this .canonicalEncodingName = canonicalEncoding;
100:            }
101:
102:            public boolean isAllowedSystemNode() {
103:                return this .allowedSystemNode;
104:            }
105:
106:            public void addShareNode(ShareNode shareNode) {
107:                addChildNode(shareNode);
108:            }
109:
110:            public ShareNode getShareNode(String shareName) {
111:                return (ShareNode) getChildNode(shareName);
112:            }
113:
114:            public ShareNode removeShareNode(String shareName) {
115:                return (ShareNode) removeChildNode(shareName);
116:
117:            }
118:
119:            public ShareNode[] getAllShareNodes() {
120:                return (ShareNode[]) getAllChildren(new ShareNode[0]);
121:            }
122:
123:            public Hashtable toHashtable() {
124:
125:                Hashtable ret = new Hashtable(6);
126:                ret.put("SystemName", getName());
127:                ret.put("NTDomName", getDomain());
128:                ret.put("UserID", getUserName());
129:                ret.put("Pwd", getPassword());
130:                ret.put("SysType", getType());
131:                ret.put("CharSet", getCharSetKey());
132:                return ret;
133:
134:            }
135:
136:            private String getCharSetKey() {
137:                if (canonicalEncodingName == null) {
138:                    return null;
139:                }
140:
141:                //String ret = charSet.substring(charSet.indexOf("(") + 1, charSet.indexOf(")"));
142:                //return ret;
143:                return canonicalEncodingName;
144:            }
145:
146:        }
w__w__w._j___a_va2_s._c___om_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.