Liferay 6.1.2-ce-ga3

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 portletDataContext, String portletId, PortletPreferences portletPreferences)
           
protected  String doExportData(PortletDataContext portletDataContext, String portletId, PortletPreferences portletPreferences)
           
protected  PortletPreferences doImportData(PortletDataContext portletDataContext, String portletId, PortletPreferences portletPreferences, String data)
           
static void exportNode(PortletDataContext portletDataContext, Element nodesElement, Element pagesElement, Element dlFileEntryTypesElement, Element dlFoldersElement, Element dlFileEntriesElement, Element dlFileRanksElement, Element dlRepositoriesElement, Element dlRepositoryEntriesElement, WikiNode node)
           
protected static void exportNode(PortletDataContext portletDataContext, Element nodesElement, long nodeId)
           
protected static void exportPage(PortletDataContext portletDataContext, Element nodesElement, Element pagesElement, Element dlFileEntryTypesElement, Element dlFoldersElement, Element dlFileEntriesElement, Element dlFileRanksElement, Element dlRepositoriesElement, Element dlRepositoryEntriesElement, WikiPage page, boolean checkDateRange)
           
 PortletDataHandlerControl[] getExportControls()
          Returns an array of the controls defined for this data handler.
 PortletDataHandlerControl[] getExportMetadataControls()
          Returns an array of the metadata controls defined for this data handler.
 PortletDataHandlerControl[] getImportControls()
          Returns an array of the controls defined for this data handler.
 PortletDataHandlerControl[] getImportMetadataControls()
          Returns an array of the metadata controls defined for this data handler.
static PortletDataHandlerControl[] getMetadataControls()
           
protected static String getNodeName(PortletDataContext portletDataContext, WikiNode node, String name, int count)
           
protected static String getNodePath(PortletDataContext portletDataContext, WikiNode node)
           
protected static String getPageAttachementBinPath(PortletDataContext portletDataContext, WikiPage page, int count)
           
protected static String getPageImagePath(PortletDataContext portletDataContext, WikiPage page)
           
protected static String getPagePath(PortletDataContext portletDataContext, WikiPage page)
           
 PortletPreferences importData(PortletDataContext portletDataContext, String portletId, PortletPreferences portletPreferences, String data)
          Handles any special processing of the data when the portlet is imported into a new layout.
static void importNode(PortletDataContext portletDataContext, WikiNode node)
           
static void importPage(PortletDataContext portletDataContext, Element pageElement, WikiPage page)
           
 
Methods inherited from class com.liferay.portal.kernel.lar.BasePortletDataHandler
deleteData, exportData, getDataPortletPreferences, isAlwaysExportable, isAlwaysStaged, isDataLocalized, 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 portletDataContext,
                              Element nodesElement,
                              Element pagesElement,
                              Element dlFileEntryTypesElement,
                              Element dlFoldersElement,
                              Element dlFileEntriesElement,
                              Element dlFileRanksElement,
                              Element dlRepositoriesElement,
                              Element dlRepositoryEntriesElement,
                              WikiNode node)
                       throws Exception
Throws:
Exception

getMetadataControls

public static PortletDataHandlerControl[] getMetadataControls()

importNode

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

importPage

public static void importPage(PortletDataContext portletDataContext,
                              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.

Specified by:
getExportControls in interface PortletDataHandler
Overrides:
getExportControls in class BasePortletDataHandler
Returns:
an array of PortletDataHandlerControls

getExportMetadataControls

public PortletDataHandlerControl[] getExportMetadataControls()
Description copied from interface: PortletDataHandler
Returns an array of the metadata controls defined for this data handler. These controls enable the developer to create fine grained controls over export behavior of metadata such as tags, categories, ratings or comments. The controls are rendered in the export UI.

Specified by:
getExportMetadataControls in interface PortletDataHandler
Overrides:
getExportMetadataControls in class BasePortletDataHandler
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.

Specified by:
getImportControls in interface PortletDataHandler
Overrides:
getImportControls in class BasePortletDataHandler
Returns:
An array of PortletDataHandlerControls

getImportMetadataControls

public PortletDataHandlerControl[] getImportMetadataControls()
Description copied from interface: PortletDataHandler
Returns an array of the metadata controls defined for this data handler. These controls enable the developer to create fine grained controls over import behavior of metadata such as tags, categories, ratings or comments. The controls are rendered in the export UI.

Specified by:
getImportMetadataControls in interface PortletDataHandler
Overrides:
getImportMetadataControls in class BasePortletDataHandler
Returns:
an array of PortletDataHandlerControls

importData

public PortletPreferences importData(PortletDataContext portletDataContext,
                                     String portletId,
                                     PortletPreferences portletPreferences,
                                     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:
portletDataContext - the context of the data import
portletId - the portlet ID of the portlet
portletPreferences - the portlet preferences of the portlet
data - the string data that was returned by exportData()
Returns:
A modified version of portlet preferences that should be saved. Null if the portlet preferences were unmodified by this data handler.
Throws:
PortletDataException

exportNode

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

exportPage

protected static void exportPage(PortletDataContext portletDataContext,
                                 Element nodesElement,
                                 Element pagesElement,
                                 Element dlFileEntryTypesElement,
                                 Element dlFoldersElement,
                                 Element dlFileEntriesElement,
                                 Element dlFileRanksElement,
                                 Element dlRepositoriesElement,
                                 Element dlRepositoryEntriesElement,
                                 WikiPage page,
                                 boolean checkDateRange)
                          throws Exception
Throws:
Exception

getNodeName

protected static String getNodeName(PortletDataContext portletDataContext,
                                    WikiNode node,
                                    String name,
                                    int count)
                             throws Exception
Throws:
Exception

getNodePath

protected static String getNodePath(PortletDataContext portletDataContext,
                                    WikiNode node)

getPageAttachementBinPath

protected static String getPageAttachementBinPath(PortletDataContext portletDataContext,
                                                  WikiPage page,
                                                  int count)

getPageImagePath

protected static String getPageImagePath(PortletDataContext portletDataContext,
                                         WikiPage page)
                                  throws Exception
Throws:
Exception

getPagePath

protected static String getPagePath(PortletDataContext portletDataContext,
                                    WikiPage page)

doDeleteData

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

doExportData

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

doImportData

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

Liferay 6.1.2-ce-ga3