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


001:        /** 
002:         * $Id: NetFileContext.java,v 1.22 2005/07/16 18:34:51 aa147324 Exp $ 
003:         * Copyright 2002 Sun Microsystems, Inc. All 
004:         * rights reserved. Use of this product is subject 
005:         * to license terms. Federal Acquisitions: 
006:         * Commercial Software -- Government Users 
007:         * Subject to Standard License Terms and 
008:         * Conditions. 
009:         * 
010:         * Sun, Sun Microsystems, the Sun logo, and Sun ONE 
011:         * are trademarks or registered trademarks of Sun Microsystems, 
012:         * Inc. in the United States and other countries. 
013:         */
014:
015:        /**
016:         * This interface defines the methods to access DSAME
017:         * from the NetFile application
018:         *
019:         * This interface defines methods to verify if for a user
020:         * policy and service have been assigned individually or as
021:         * a whole.
022:         *
023:         * It also has methods to detemine the session validity.
024:         *
025:         * @author Suresh Yellamaraju
026:         */package com.sun.portal.netfile.servlet.java2;
027:
028:        import java.util.Hashtable;
029:        import com.sun.portal.log.common.PortalLogger;
030:        import java.util.Map;
031:        import java.util.Locale;
032:        import java.util.List;
033:
034:        import javax.servlet.http.*;
035:
036:        import com.iplanet.sso.SSOToken;
037:        import com.iplanet.sso.SSOException;
038:        import com.iplanet.am.sdk.AMException;
039:
040:        public interface NetFileContext {
041:
042:            /*
043:             * The services currently referenced by NetFile
044:             */
045:            public static final String SRAP_NETFILE_SERVICE = "srapNetFileService";
046:            public static final String IPS_SSO_ADAPTER_SERVICE = "SunSSOAdapterService";
047:            public static final String IPS_SSO_ADAPTER_CONFIG = "sunSSOAdapterConfigurations";
048:            public static final String DSAME_USER_SERVICE = "iPlanetAMUserService";
049:            public static final String IS_SVC_VERSION = "1.0";
050:
051:            /*
052:             * System Type Names
053:             */
054:            public static final String SRAP_NF_WIN = "WIN";
055:            public static final String SRAP_NF_NT = "NT";
056:            public static final String SRAP_NF_NFS = "NFS";
057:            public static final String SRAP_NF_FTP = "FTP";
058:            public static final String SRAP_NF_NETWARE = "NETWARE";
059:
060:            /*
061:             * Global Attribute Names
062:             */
063:            public static final String SRAP_NF_APPNAME = "sunPortalNetFileApplicationName";
064:            public static final String SRAP_NF_APPVERSION = "sunPortalNetFileApplicationRelease";
065:            public static final String SRAP_NF_APPRELEASE = "sunPortalNetFileApplicationReleaseDate";
066:            public static final String SRAP_NF_COMPNAME = "sunPortalNetFileCompanyName";
067:
068:            /*
069:             * Organization-level Attribute (dynamic) Names
070:             */
071:            public static final String SRAP_NF_MIMELOCATION = "sunPortalNetFileMimetypesConfigFileLocation";
072:
073:            /*
074:             * Policy Attribute Name
075:             */
076:            public static final String SRAP_NF_EXECUTE = "sunPortalNetFileExecute";
077:
078:            /*
079:             * Dynamic/User Attribute Names
080:             */
081:            public static final String SRAP_NF_DENYHOST = "sunPortalNetFileDeniedHostList";
082:            public static final String SRAP_NF_ALLOWEDHOST = "sunPortalNetFileAllowedHostList";
083:            public static final String SRAP_NF_USERDENYHOST = "sunPortalNetFileUserDeniedHostList";
084:            public static final String SRAP_NF_COMHOST = "sunPortalNetFileCommonHostData";
085:            public static final String SRAP_NF_USERCOMHOST = "sunPortalNetFileUserCommonHostData";
086:            public static final String SRAP_NF_MAXSEARCHDIR = "sunPortalNetFileMaxSearchDir";
087:            public static final String SRAP_NF_USERHOST = "sunPortalNetFileHostTypePassShare";
088:            public static final String SRAP_NF_INVALIDHOST = "sunPortalNetFileInvalidHost";
089:            public static final String SRAP_NF_WINACCESS = "sunPortalNetFileAccessWin";
090:            public static final String SRAP_NF_NFSACCESS = "sunPortalNetFileAccessNFS";
091:            public static final String SRAP_NF_FTPACCESS = "sunPortalNetFileAccessFTP";
092:            public static final String SRAP_NF_NETWAREACCESS = "sunPortalNetFileAccessNetware";
093:            public static final String SRAP_NF_ALLOWDELETE = "sunPortalNetFileAllowDelete";
094:            public static final String SRAP_NF_ALLOWRENAME = "sunPortalNetFileAllowRename";
095:            public static final String SRAP_NF_CHANGEUID = "sunPortalNetFileAllowChangeUserId";
096:            public static final String SRAP_NF_CHANGEDOMAIN = "sunPortalNetFileAllowChangeDomain";
097:            public static final String SRAP_NF_UPLOADLIMIT = "sunPortalNetFileFileUploadLimit";
098:            public static final String SRAP_NF_DOMAIN = "sunPortalNetFileDefaultDomain";
099:            public static final String SRAP_NF_NTDOMAIN = "sunPortalNetFileNTDomain";
100:            public static final String SRAP_NF_WINLOC = "sunPortalNetFileWindowLocation";
101:            public static final String SRAP_NF_WINSIZE = "sunPortalNetFileWindowSize";
102:            public static final String SRAP_NF_HOSTDETECTORDER = "sunPortalNetFileHostDetectOrder";
103:            public static final String SRAP_NF_OSCHARSET = "sunPortalNetFileOSCharSet";
104:            public static final String SRAP_NF_TEMPDIR = "sunPortalNetFileTempDir";
105:            public static final String SRAP_NF_WINNAMESERVER = "sunPortalNetFileWINSServer";
106:
107:            public static final String SRAP_NF_ALLOWMAIL = "sunPortalNetFileAllowMail";
108:            public static final String SRAP_NF_ALLOWSEARCH = "sunPortalNetFileAllowSearch";
109:            public static final String SRAP_NF_ALLOWCOMPRESS = "sunPortalNetFileAllowCompression";
110:
111:            public static final String SRAP_NF_ALLOWUPLOAD = "sunPortalNetFileAllowUpload";
112:            public static final String SRAP_NF_ALLOWDOWNLOAD = "sunPortalNetFileAllowDownload";
113:
114:            public static final String SRAP_NF_COMPRESSIONTYPE = "sunPortalNetFileCompressionType";
115:            public static final String SRAP_NF_COMPRESSIONLEVEL = "sunPortalNetFileCompressionLevel";
116:
117:            /*
118:             * Public API that should be implemented for access to NetFile and User's
119:             * profile and session.
120:             */
121:            public Map[] getPreferences();
122:
123:            public Map getUserPreferences() throws Exception;
124:
125:            public void loadMailAttributesAsCollection(Hashtable htMailData);
126:
127:            public List getOrganizationAttributeValues(String serviceName,
128:                    String attributeName);
129:
130:            public String getOrganizationAttribute(String szServiceName,
131:                    String szAttributeName, String szDefaultVal);
132:
133:            public boolean savePreferences(Map prefs) throws Exception;
134:
135:            /*
136:             * isExecutable determines if the given user
137:             * has the service and policy are assigned 
138:             */
139:            public boolean isExecutable(SSOToken token);
140:
141:            public boolean isPolicyAssigned(SSOToken ssoToken)
142:                    throws AMException, SSOException;
143:
144:            public boolean isServiceAssigned(String szServiceName)
145:                    throws AMException, SSOException;
146:
147:            public boolean isSessionValid(SSOToken ssoToken);
148:
149:            /*
150:             * Determines the HTML character set depending on the HTTP request
151:             * Uses the client detection service of DSAME
152:             *
153:             * NOTE: The determination needs to be done before getHTMLCharset is invoked
154:             */
155:            public void determineHTMLCharset(HttpServletRequest req);
156:
157:            public String getHTMLCharset();
158:
159:            public Locale getUserLocale();
160:
161:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.