Liferay 6.2.0-ce-m4

com.liferay.portlet.polls.lar
Class PollsPortletDataHandler

java.lang.Object
  extended by com.liferay.portal.kernel.lar.BasePortletDataHandler
      extended by com.liferay.portlet.polls.lar.PollsPortletDataHandler
All Implemented Interfaces:
PortletDataHandler
Direct Known Subclasses:
PollsDisplayPortletDataHandler

public class PollsPortletDataHandler
extends BasePortletDataHandler


Field Summary
static String NAMESPACE
           
 
Constructor Summary
PollsPortletDataHandler()
           
 
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)
           
protected static void exportChoice(PortletDataContext portletDataContext, Element questionsElement, PollsChoice choice)
           
protected static void exportQuestion(PortletDataContext portletDataContext, Element questionsElement, Element choicesElement, Element votesElement, PollsQuestion question)
           
protected static void exportVote(PortletDataContext portletDataContext, Element questionsElement, PollsVote vote)
           
protected static String getChoicePath(PortletDataContext portletDataContext, PollsChoice choice)
           
protected static String getQuestionPath(PortletDataContext portletDataContext, PollsQuestion question)
           
protected static String getVotePath(PortletDataContext portletDataContext, PollsVote vote)
           
protected static void importChoice(PortletDataContext portletDataContext, PollsChoice choice)
           
protected static void importQuestion(PortletDataContext portletDataContext, Element questionElement, PollsQuestion question)
           
protected static void importVote(PortletDataContext portletDataContext, PollsVote vote)
           
 
Methods inherited from class com.liferay.portal.kernel.lar.BasePortletDataHandler
addExportRootElement, deleteData, exportData, getDataPortletPreferences, getExportControls, getExportMetadataControls, getImportControls, getImportMetadataControls, importData, isAlwaysExportable, isAlwaysStaged, isDataLocalized, isPublishToLiveByDefault, setAlwaysExportable, setAlwaysStaged, setDataLocalized, setDataPortletPreferences, setExportControls, setExportMetadataControls, setImportControls, setImportMetadataControls, setPublishToLiveByDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAMESPACE

public static final String NAMESPACE
See Also:
Constant Field Values
Constructor Detail

PollsPortletDataHandler

public PollsPortletDataHandler()
Method Detail

exportChoice

protected static void exportChoice(PortletDataContext portletDataContext,
                                   Element questionsElement,
                                   PollsChoice choice)
                            throws Exception
Throws:
Exception

exportQuestion

protected static void exportQuestion(PortletDataContext portletDataContext,
                                     Element questionsElement,
                                     Element choicesElement,
                                     Element votesElement,
                                     PollsQuestion question)
                              throws Exception
Throws:
Exception

exportVote

protected static void exportVote(PortletDataContext portletDataContext,
                                 Element questionsElement,
                                 PollsVote vote)
                          throws Exception
Throws:
Exception

getChoicePath

protected static String getChoicePath(PortletDataContext portletDataContext,
                                      PollsChoice choice)

getQuestionPath

protected static String getQuestionPath(PortletDataContext portletDataContext,
                                        PollsQuestion question)

getVotePath

protected static String getVotePath(PortletDataContext portletDataContext,
                                    PollsVote vote)

importChoice

protected static void importChoice(PortletDataContext portletDataContext,
                                   PollsChoice choice)
                            throws Exception
Throws:
Exception

importQuestion

protected static void importQuestion(PortletDataContext portletDataContext,
                                     Element questionElement,
                                     PollsQuestion question)
                              throws Exception
Throws:
Exception

importVote

protected static void importVote(PortletDataContext portletDataContext,
                                 PollsVote vote)
                          throws Exception
Throws:
Exception

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.2.0-ce-m4