|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.kernel.lar.BasePortletDataHandler
public abstract class BasePortletDataHandler
| Constructor Summary | |
|---|---|
BasePortletDataHandler()
|
|
| Method Summary | |
|---|---|
PortletPreferences |
deleteData(PortletDataContext context,
String portletId,
PortletPreferences preferences)
Deletes the data created by the portlet. |
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)
|
String |
exportData(PortletDataContext context,
String portletId,
PortletPreferences preferences)
Returns a string of data to be placed in the <portlet-data> section of the LAR file. |
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. |
boolean |
isAlwaysExportable()
Returns true to allow the user to export data for this
portlet even though it may not belong to any pages. |
boolean |
isPublishToLiveByDefault()
Returns whether the data exported by this handler should be included by default when publishing to live. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.liferay.portal.kernel.lar.PortletDataHandler |
|---|
getExportControls, getImportControls |
| Constructor Detail |
|---|
public BasePortletDataHandler()
| Method Detail |
|---|
public PortletPreferences deleteData(PortletDataContext context,
String portletId,
PortletPreferences preferences)
throws PortletDataException
PortletDataHandlerpreferences if it contains reference to data that
does not exist anymore.
deleteData in interface PortletDataHandlercontext - the context of the data deletionportletId - the portlet id of the portletpreferences - the portlet preferences of the portlet
Null if the preferences were unmodified by this data
handler.
PortletDataException
public String exportData(PortletDataContext context,
String portletId,
PortletPreferences preferences)
throws PortletDataException
PortletDataHandlerdata
parameter of importData().
exportData in interface PortletDataHandlercontext - the context of the data exportportletId - the portlet id of the portletpreferences - the portlet preferences of the portlet
Null should be returned if no portlet
data is to be written out.
PortletDataExceptionpublic boolean isAlwaysExportable()
PortletDataHandlertrue to allow the user to export data for this
portlet even though it may not belong to any pages. See LPS-1624.
isAlwaysExportable in interface PortletDataHandlertrue to allow the user to export data for this
portlet even though it may not belong to any pagespublic boolean isPublishToLiveByDefault()
PortletDataHandlertrue
for data that is meant to be managed in an staging environment such as
CMS content, but not for data meant to be input by users such as wiki
pages or message board posts.
isPublishToLiveByDefault in interface PortletDataHandlertrue to publish to live by default
public PortletPreferences importData(PortletDataContext context,
String portletId,
PortletPreferences preferences,
String data)
throws PortletDataException
PortletDataHandlerpreferences to be saved in the new portlet.
importData in interface PortletDataHandlercontext - the context of the data importportletId - the portlet id of the portletpreferences - the portlet preferences of the portletdata - the string data that was returned by
exportData()
Null if the preferences were unmodified by this data
handler.
PortletDataException
protected PortletPreferences doDeleteData(PortletDataContext context,
String portletId,
PortletPreferences preferences)
throws Exception
Exception
protected String doExportData(PortletDataContext context,
String portletId,
PortletPreferences preferences)
throws Exception
Exception
protected PortletPreferences doImportData(PortletDataContext context,
String portletId,
PortletPreferences preferences,
String data)
throws Exception
Exception
|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||