Java Doc for PortletDataHandler.java in  » Portal » liferay-portal-4.4.2 » com » liferay » portal » kernel » lar » 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 » liferay portal 4.4.2 » com.liferay.portal.kernel.lar 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.liferay.portal.kernel.lar.PortletDataHandler

All known Subclasses:   com.liferay.portlet.bookmarks.lar.BookmarksPortletDataHandlerImpl,  com.liferay.portlet.pagecomments.lar.PageCommentsPortletDataHandlerImpl,  com.liferay.portlet.journal.lar.JournalContentPortletDataHandlerImpl,  com.liferay.portlet.imagegallery.lar.IGPortletDataHandlerImpl,  com.liferay.portlet.messageboards.lar.MBPortletDataHandlerImpl,  com.liferay.portlet.blogs.lar.BlogsPortletDataHandlerImpl,  com.liferay.portlet.pageratings.lar.PageRatingsPortletDataHandlerImpl,  com.liferay.portlet.wiki.lar.WikiPortletDataHandlerImpl,  com.liferay.portlet.polls.lar.PollsPortletDataHandlerImpl,  com.liferay.portlet.journal.lar.JournalPortletDataHandlerImpl,  com.liferay.portlet.calendar.lar.CalendarPortletDataHandlerImpl,  com.liferay.portlet.documentlibrary.lar.DLPortletDataHandlerImpl,
PortletDataHandler
public interface PortletDataHandler (Code)
View Source

A PortletDataHandler is a special class capable of exporting and importing portlet specific data to a Liferay Archive file (LAR) when a community's layouts are exported or imported. PortletDataHandlers are defined by placing a portlet-data-handler-class element in the portlet section of the liferay-portlet.xml file.


author:
   Raymond Augé
author:
   Joel Kozikowski
author:
   Bruno Farache




Method Summary
public  PortletPreferencesdeleteData(PortletDataContext context, String portletId, PortletPreferences prefs)
     Deletes the data created by the portlet.
public  StringexportData(PortletDataContext context, String portletId, PortletPreferences prefs)
     Returns a string of data to be placed in the <portlet-data> section of the LAR file.
public  PortletDataHandlerControl[]getExportControls()
     Returns an array of the controls defined for this data handler.
public  PortletDataHandlerControl[]getImportControls()
     Returns an array of the controls defined for this data handler.
public  PortletPreferencesimportData(PortletDataContext context, String portletId, PortletPreferences prefs, String data)
     Handles any special processing of the data when the portlet is imported into a new layout.



Method Detail
deleteData
public PortletPreferences deleteData(PortletDataContext context, String portletId, PortletPreferences prefs) throws PortletDataException(Code)
Deletes the data created by the portlet. Can optionally return a modified version of prefs if it contains reference to data that does not exist anymore.
Parameters:
  context - the context of the data deletion
Parameters:
  portletId - the portlet id of the portlet
Parameters:
  prefs - the portlet preferences of the portlet A modified version of prefs that should be saved. Null ifthe preferences were unmodified by this data handler.
throws:
  PortletDataException -



exportData
public String exportData(PortletDataContext context, String portletId, PortletPreferences prefs) throws PortletDataException(Code)
Returns a string of data to be placed in the <portlet-data> section of the LAR file. This data will be passed as the data parameter of importData().
Parameters:
  context - the context of the data export
Parameters:
  portletId - the portlet id of the portlet
Parameters:
  prefs - the portlet preferences of the portlet A string of data to be placed in the LAR. It may be XML,but not necessarily. Null should be returned if no portletdata is to be written out.
throws:
  PortletDataException -



getExportControls
public PortletDataHandlerControl[] getExportControls() throws PortletDataException(Code)
Returns an array of the controls defined for this data handler. These controls enable the developer to create fine grained controls over export behavior. The controls are rendered in the export UI. an array of PortletDataHandlerControls



getImportControls
public PortletDataHandlerControl[] getImportControls() throws PortletDataException(Code)
Returns an array of the controls defined for this data handler. These controls enable the developer to create fine grained controls over import behavior. The controls are rendered in the import UI. An array of PortletDataHandlerControls



importData
public PortletPreferences importData(PortletDataContext context, String portletId, PortletPreferences prefs, String data) throws PortletDataException(Code)
Handles any special processing of the data when the portlet is imported into a new layout. Can optionally return a modified version of prefs to be saved in the new portlet.
Parameters:
  context - the context of the data import
Parameters:
  portletId - the portlet id of the portlet
Parameters:
  prefs - the portlet preferences of the portlet
Parameters:
  data - the string data that was returned byexportData() A modified version of prefs that should besaved. Null if the preferences were unmodified by this datahandler.
throws:
  PortletDataException -



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