Liferay 6.1.2-ce-ga3

com.liferay.portlet.polls.lar
Class PollsPortletDataHandlerImpl

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

public class PollsPortletDataHandlerImpl
extends BasePortletDataHandler


Constructor Summary
PollsPortletDataHandlerImpl()
           
 
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)
           
 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 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)
           
 boolean isAlwaysExportable()
          Returns true to allow the user to export data for this portlet even though it may not belong to any pages.
 boolean isDataLocalized()
           
 
Methods inherited from class com.liferay.portal.kernel.lar.BasePortletDataHandler
deleteData, exportData, getDataPortletPreferences, getExportMetadataControls, getImportMetadataControls, importData, isAlwaysStaged, isPublishToLiveByDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PollsPortletDataHandlerImpl

public PollsPortletDataHandlerImpl()
Method Detail

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

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

isAlwaysExportable

public boolean isAlwaysExportable()
Description copied from interface: PortletDataHandler
Returns true to allow the user to export data for this portlet even though it may not belong to any pages. See LPS-1624.

Specified by:
isAlwaysExportable in interface PortletDataHandler
Overrides:
isAlwaysExportable in class BasePortletDataHandler
Returns:
true to allow the user to export data for this portlet even though it may not belong to any pages

isDataLocalized

public boolean isDataLocalized()
Specified by:
isDataLocalized in interface PortletDataHandler
Overrides:
isDataLocalized in class BasePortletDataHandler

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.1.2-ce-ga3