Liferay 6.0.5

com.liferay.portlet.wiki.lar
Class WikiPortletDataHandlerImpl

java.lang.Object
  extended by com.liferay.portal.kernel.lar.BasePortletDataHandler
      extended by com.liferay.portlet.wiki.lar.WikiPortletDataHandlerImpl
All Implemented Interfaces:
PortletDataHandler

public class WikiPortletDataHandlerImpl
extends BasePortletDataHandler


Constructor Summary
WikiPortletDataHandlerImpl()
           
 
Method Summary
protected  PortletPreferences doDeleteData(PortletDataContext context, String portletId, PortletPreferences preferences)
           
protected  String doExportData(PortletDataContext context, String portletId, PortletPreferences preferences)
           
protected  PortletPreferences doImportData(PortletDataContext context, String portletId, PortletPreferences preferences, String data)
           
static void exportNode(PortletDataContext context, Element nodesElement, Element pagesElement, WikiNode node)
           
protected static void exportNode(PortletDataContext context, Element nodesElement, long nodeId)
           
protected static void exportPage(PortletDataContext context, Element nodesElement, Element pagesElement, WikiPage page)
           
 PortletDataHandlerControl[] getExportControls()
          Returns an array of the controls defined for this data handler.
 PortletDataHandlerControl[] getImportControls()
          Returns an array of the controls defined for this data handler.
protected static String getNodePath(PortletDataContext context, WikiNode node)
           
protected static String getPageAttachementBinPath(PortletDataContext context, WikiPage page, String attachment)
           
protected static String getPagePath(PortletDataContext context, WikiPage page)
           
 PortletPreferences importData(PortletDataContext context, String portletId, PortletPreferences preferences, String data)
          Handles any special processing of the data when the portlet is imported into a new layout.
static void importNode(PortletDataContext context, WikiNode node)
           
static void importPage(PortletDataContext context, Element pageElement, WikiPage page)
           
 
Methods inherited from class com.liferay.portal.kernel.lar.BasePortletDataHandler
deleteData, exportData, isAlwaysExportable, isPublishToLiveByDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WikiPortletDataHandlerImpl

public WikiPortletDataHandlerImpl()
Method Detail

exportNode

public static void exportNode(PortletDataContext context,
                              Element nodesElement,
                              Element pagesElement,
                              WikiNode node)
                       throws Exception
Throws:
Exception

importNode

public static void importNode(PortletDataContext context,
                              WikiNode node)
                       throws Exception
Throws:
Exception

importPage

public static void importPage(PortletDataContext context,
                              Element pageElement,
                              WikiPage page)
                       throws Exception
Throws:
Exception

getExportControls

public PortletDataHandlerControl[] getExportControls()
Description copied from interface: PortletDataHandler
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.

Returns:
an array of PortletDataHandlerControls

getImportControls

public PortletDataHandlerControl[] getImportControls()
Description copied from interface: PortletDataHandler
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.

Returns:
An array of PortletDataHandlerControls

importData

public PortletPreferences importData(PortletDataContext context,
                                     String portletId,
                                     PortletPreferences preferences,
                                     String data)
                              throws PortletDataException
Description copied from interface: PortletDataHandler
Handles any special processing of the data when the portlet is imported into a new layout. Can optionally return a modified version of preferences to be saved in the new portlet.

Specified by:
importData in interface PortletDataHandler
Overrides:
importData in class BasePortletDataHandler
Parameters:
context - the context of the data import
portletId - the portlet id of the portlet
preferences - the portlet preferences of the portlet
data - the string data that was returned by exportData()
Returns:
A modified version of preferences that should be saved. Null if the preferences were unmodified by this data handler.
Throws:
PortletDataException

exportNode

protected static void exportNode(PortletDataContext context,
                                 Element nodesElement,
                                 long nodeId)
                          throws Exception
Throws:
Exception

exportPage

protected static void exportPage(PortletDataContext context,
                                 Element nodesElement,
                                 Element pagesElement,
                                 WikiPage page)
                          throws Exception
Throws:
Exception

getNodePath

protected static String getNodePath(PortletDataContext context,
                                    WikiNode node)

getPageAttachementBinPath

protected static String getPageAttachementBinPath(PortletDataContext context,
                                                  WikiPage page,
                                                  String attachment)

getPagePath

protected static String getPagePath(PortletDataContext context,
                                    WikiPage page)

doDeleteData

protected PortletPreferences doDeleteData(PortletDataContext context,
                                          String portletId,
                                          PortletPreferences preferences)
                                   throws Exception
Overrides:
doDeleteData in class BasePortletDataHandler
Throws:
Exception

doExportData

protected String doExportData(PortletDataContext context,
                              String portletId,
                              PortletPreferences preferences)
                       throws Exception
Overrides:
doExportData in class BasePortletDataHandler
Throws:
Exception

doImportData

protected PortletPreferences doImportData(PortletDataContext context,
                                          String portletId,
                                          PortletPreferences preferences,
                                          String data)
                                   throws Exception
Overrides:
doImportData in class BasePortletDataHandler
Throws:
Exception

Liferay 6.0.5