Java Doc for UploadDownloadDPBean.java in  » Portal » Open-Portal » com » sun » portal » admin » console » desktop » 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.desktop 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sun.portal.admin.console.common.PortalBaseBean
   com.sun.portal.admin.console.desktop.UploadDownloadDPBean

UploadDownloadDPBean
public class UploadDownloadDPBean extends PortalBaseBean implements Serializable(Code)


Field Summary
final public static  StringDISPLAY_PROFILE_XML
    
final public static  StringRB_NAME
    

Constructor Summary
public  UploadDownloadDPBean()
    

Method Summary
public  Stringcancel()
    
public  StringdoRemove()
    
public  StringdoUpload()
     doUpload action.
public  StringgetAlertDetail()
    
public  StringgetAlertSummary()
    
public  StringgetAlertType()
    
public static  ObjectgetBean(String ref)
     doDownload action. Since this action take over the response object and use the writer, the browser does not give control back to the container, so somehow the request parameter will not be flushed.
public  StringgetCancelText()
    
public  StringgetDP()
    
public  BooleangetDisplayError()
    
public  StringgetDownloadedFileName()
     Getter for property downloadedFileName.
public  StringgetRemoveDPFlag()
    
public  UploadedFilegetUploadedFile()
     Getter for property uploadedFile.
public  voidsetAlertDetail(String detail)
    
public  voidsetAlertSummary(String summary)
    
public  voidsetAlertType(String type)
    
public  voidsetCancelText(String val)
    
public  voidsetDisplayError(Boolean value)
    
public  voidsetDownloadedFileName(String val)
    
public  voidsetRemoveDPFlag(String val)
    
public  voidsetUploadedFile(UploadedFile uploadedFile)
     Setter for property uploadedFile.
public  voidsetupAlert(String summary, String detail, String type, String defaultKey)
    

Field Detail
DISPLAY_PROFILE_XML
final public static String DISPLAY_PROFILE_XML(Code)



RB_NAME
final public static String RB_NAME(Code)




Constructor Detail
UploadDownloadDPBean
public UploadDownloadDPBean()(Code)




Method Detail
cancel
public String cancel()(Code)



doRemove
public String doRemove()(Code)
doRemove



doUpload
public String doUpload()(Code)
doUpload action.



getAlertDetail
public String getAlertDetail()(Code)



getAlertSummary
public String getAlertSummary()(Code)



getAlertType
public String getAlertType()(Code)



getBean
public static Object getBean(String ref)(Code)
doDownload action. Since this action take over the response object and use the writer, the browser does not give control back to the container, so somehow the request parameter will not be flushed. Two minor problems with this: 1. the page alert is not shown after content-type and header is set (for the complete message). 2. the input value downloadedFileName will be there until the session is over. There maybe ways to make these fixed but right now it is stay as is. public String doDownload() { String dpXML = getDP(); if (dpXML == null || dpXML.length() == 0) { dpXML = ""; } try { String downloadedFile = getDownloadedFileName(); if (!FacesContext.getCurrentInstance().getResponseComplete()) { HttpServletResponse response = (HttpServletResponse) FacesContext.getCurrentInstance().getExternalContext().getResponse(); response.setContentType("application/x-xxxxx; charset=UTF-8"); response.setHeader("Content-Disposition", "filename=\"" + downloadedFile + "\""); PrintWriter out = response.getWriter(); out.write(dpXML); out.close(); } FacesContext.getCurrentInstance().responseComplete(); } catch (IOException ex) { log(Level.SEVERE, "Exception in UploadDownloadDPBean.doDownload()", ex); setupAlert("error.downloadDP.summary", "error.downloadDP.ioerror","error", "error.downloadDP.failed"); } return "done"; }



getCancelText
public String getCancelText()(Code)
cancel methods



getDP
public String getDP()(Code)



getDisplayError
public Boolean getDisplayError()(Code)
Alert methods



getDownloadedFileName
public String getDownloadedFileName()(Code)
Getter for property downloadedFileName. Value of property uploadedFile.



getRemoveDPFlag
public String getRemoveDPFlag()(Code)
RemoveDPFlag



getUploadedFile
public UploadedFile getUploadedFile()(Code)
Getter for property uploadedFile. Value of property uploadedFile.



setAlertDetail
public void setAlertDetail(String detail)(Code)



setAlertSummary
public void setAlertSummary(String summary)(Code)



setAlertType
public void setAlertType(String type)(Code)



setCancelText
public void setCancelText(String val)(Code)



setDisplayError
public void setDisplayError(Boolean value)(Code)



setDownloadedFileName
public void setDownloadedFileName(String val)(Code)



setRemoveDPFlag
public void setRemoveDPFlag(String val)(Code)



setUploadedFile
public void setUploadedFile(UploadedFile uploadedFile)(Code)
Setter for property uploadedFile.
Parameters:
  uploadedFile - New value of property uploadedFile.



setupAlert
public void setupAlert(String summary, String detail, String type, String defaultKey)(Code)
Alert Utility methods



Fields inherited from com.sun.portal.admin.console.common.PortalBaseBean
final public static String ATTR_NESTED_PROPERTY_NAME(Code)(Java Doc)
final public static String ATTR_SELECTED_CHANNEL_NAME(Code)(Java Doc)
final public static String DEFAULT_CHARSET(Code)(Java Doc)

Methods inherited from com.sun.portal.admin.console.common.PortalBaseBean
public Set getInstanceObjectNames(String portalId) throws IOException, Exception(Code)(Java Doc)
public String getPortalId()(Code)(Java Doc)
public boolean isLocal()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.