com.liferay.portlet.wiki.lar
Class WikiPortletDataHandlerImpl

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

public class WikiPortletDataHandlerImpl
extends java.lang.Object
implements com.liferay.portal.lar.PortletDataHandler

View Source

Author:
Bruno Farache, Jorge Ferrer, Marcellus Tavares

Constructor Summary
WikiPortletDataHandlerImpl()
           
 
Method Summary
 javax.portlet.PortletPreferences deleteData(com.liferay.portal.lar.PortletDataContext context, java.lang.String portletId, javax.portlet.PortletPreferences prefs)
           
 java.lang.String exportData(com.liferay.portal.lar.PortletDataContext context, java.lang.String portletId, javax.portlet.PortletPreferences prefs)
           
static void exportNode(com.liferay.portal.lar.PortletDataContext context, com.liferay.portal.kernel.xml.Element nodesEl, com.liferay.portal.kernel.xml.Element pagesEl, com.liferay.portlet.wiki.model.WikiNode node)
           
protected static void exportNode(com.liferay.portal.lar.PortletDataContext context, com.liferay.portal.kernel.xml.Element nodesEl, long nodeId)
           
protected static void exportPage(com.liferay.portal.lar.PortletDataContext context, com.liferay.portal.kernel.xml.Element nodesEl, com.liferay.portal.kernel.xml.Element pagesEl, com.liferay.portlet.wiki.model.WikiPage page)
           
 com.liferay.portal.lar.PortletDataHandlerControl[] getExportControls()
           
 com.liferay.portal.lar.PortletDataHandlerControl[] getImportControls()
           
protected static java.lang.String getNodePath(com.liferay.portal.lar.PortletDataContext context, com.liferay.portlet.wiki.model.WikiNode node)
           
protected static java.lang.String getPageAttachementBinPath(com.liferay.portal.lar.PortletDataContext context, com.liferay.portlet.wiki.model.WikiPage page, java.lang.String attachment)
           
protected static java.lang.String getPagePath(com.liferay.portal.lar.PortletDataContext context, com.liferay.portlet.wiki.model.WikiPage page)
           
 javax.portlet.PortletPreferences importData(com.liferay.portal.lar.PortletDataContext context, java.lang.String portletId, javax.portlet.PortletPreferences prefs, java.lang.String data)
           
static void importNode(com.liferay.portal.lar.PortletDataContext context, java.util.Map<java.lang.Long,java.lang.Long> nodePKs, com.liferay.portlet.wiki.model.WikiNode node)
           
static void importPage(com.liferay.portal.lar.PortletDataContext context, java.util.Map<java.lang.Long,java.lang.Long> nodePKs, com.liferay.portal.kernel.xml.Element pageEl, com.liferay.portlet.wiki.model.WikiPage page)
           
 boolean 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(com.liferay.portal.lar.PortletDataContext context,
                              com.liferay.portal.kernel.xml.Element nodesEl,
                              com.liferay.portal.kernel.xml.Element pagesEl,
                              com.liferay.portlet.wiki.model.WikiNode node)
                       throws com.liferay.portal.PortalException,
                              com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

importNode

public static void importNode(com.liferay.portal.lar.PortletDataContext context,
                              java.util.Map<java.lang.Long,java.lang.Long> nodePKs,
                              com.liferay.portlet.wiki.model.WikiNode node)
                       throws java.lang.Exception
Throws:
java.lang.Exception

importPage

public static void importPage(com.liferay.portal.lar.PortletDataContext context,
                              java.util.Map<java.lang.Long,java.lang.Long> nodePKs,
                              com.liferay.portal.kernel.xml.Element pageEl,
                              com.liferay.portlet.wiki.model.WikiPage page)
                       throws java.lang.Exception
Throws:
java.lang.Exception

deleteData

public javax.portlet.PortletPreferences deleteData(com.liferay.portal.lar.PortletDataContext context,
                                                   java.lang.String portletId,
                                                   javax.portlet.PortletPreferences prefs)
                                            throws com.liferay.portal.lar.PortletDataException
Specified by:
deleteData in interface com.liferay.portal.lar.PortletDataHandler
Throws:
com.liferay.portal.lar.PortletDataException

exportData

public java.lang.String exportData(com.liferay.portal.lar.PortletDataContext context,
                                   java.lang.String portletId,
                                   javax.portlet.PortletPreferences prefs)
                            throws com.liferay.portal.lar.PortletDataException
Specified by:
exportData in interface com.liferay.portal.lar.PortletDataHandler
Throws:
com.liferay.portal.lar.PortletDataException

getExportControls

public com.liferay.portal.lar.PortletDataHandlerControl[] getExportControls()
Specified by:
getExportControls in interface com.liferay.portal.lar.PortletDataHandler

getImportControls

public com.liferay.portal.lar.PortletDataHandlerControl[] getImportControls()
Specified by:
getImportControls in interface com.liferay.portal.lar.PortletDataHandler

importData

public javax.portlet.PortletPreferences importData(com.liferay.portal.lar.PortletDataContext context,
                                                   java.lang.String portletId,
                                                   javax.portlet.PortletPreferences prefs,
                                                   java.lang.String data)
                                            throws com.liferay.portal.lar.PortletDataException
Specified by:
importData in interface com.liferay.portal.lar.PortletDataHandler
Throws:
com.liferay.portal.lar.PortletDataException

isPublishToLiveByDefault

public boolean isPublishToLiveByDefault()
Specified by:
isPublishToLiveByDefault in interface com.liferay.portal.lar.PortletDataHandler

exportNode

protected static void exportNode(com.liferay.portal.lar.PortletDataContext context,
                                 com.liferay.portal.kernel.xml.Element nodesEl,
                                 long nodeId)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

exportPage

protected static void exportPage(com.liferay.portal.lar.PortletDataContext context,
                                 com.liferay.portal.kernel.xml.Element nodesEl,
                                 com.liferay.portal.kernel.xml.Element pagesEl,
                                 com.liferay.portlet.wiki.model.WikiPage page)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getNodePath

protected static java.lang.String getNodePath(com.liferay.portal.lar.PortletDataContext context,
                                              com.liferay.portlet.wiki.model.WikiNode node)

getPageAttachementBinPath

protected static java.lang.String getPageAttachementBinPath(com.liferay.portal.lar.PortletDataContext context,
                                                            com.liferay.portlet.wiki.model.WikiPage page,
                                                            java.lang.String attachment)

getPagePath

protected static java.lang.String getPagePath(com.liferay.portal.lar.PortletDataContext context,
                                              com.liferay.portlet.wiki.model.WikiPage page)