|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.exportimport.lar.BasePortletDataHandler
com.liferay.portlet.exportimport.lar.DefaultConfigurationPortletDataHandler
public class DefaultConfigurationPortletDataHandler
| Constructor Summary | |
|---|---|
DefaultConfigurationPortletDataHandler()
|
|
| Method Summary | |
|---|---|
PortletPreferences |
deleteData(PortletDataContext portletDataContext,
String portletId,
PortletPreferences portletPreferences)
Deletes the data created by the portlet. |
String |
exportData(PortletDataContext portletDataContext,
String portletId,
PortletPreferences portletPreferences)
Returns a string of data to be placed in the <portlet-data> section of the LAR file. |
long |
getExportModelCount(ManifestSummary manifestSummary)
Returns the number of entities defined for this data handler that are available for export according to the provided manifest summary, or -1 if no entities are included in the manifest summary. |
protected String |
getExportPortletPreferencesUuid(PortletDataContext portletDataContext,
Portlet portlet,
String className,
long primaryKeyLong)
|
protected Long |
getImportPortletPreferencesNewPrimaryKey(PortletDataContext portletDataContext,
Class<?> clazz,
long companyGroupId,
Map<Long,Long> primaryKeys,
String uuid)
|
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. |
protected void |
updateExportPortletPreferencesClassPKs(PortletDataContext portletDataContext,
Portlet portlet,
PortletPreferences portletPreferences,
String key,
String className)
|
protected void |
updateImportPortletPreferencesClassPKs(PortletDataContext portletDataContext,
PortletPreferences portletPreferences,
String key,
Class<?> clazz,
long companyGroupId)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultConfigurationPortletDataHandler()
| Method Detail |
|---|
public PortletPreferences deleteData(PortletDataContext portletDataContext,
String portletId,
PortletPreferences portletPreferences)
PortletDataHandler
deleteData in interface PortletDataHandlerdeleteData in class BasePortletDataHandlerportletDataContext - the context of the data deletionportletId - the portlet ID of the portletportletPreferences - the portlet preferences of the portlet
null if the data handler made no changes
to the portlet preferences
public String exportData(PortletDataContext portletDataContext,
String portletId,
PortletPreferences portletPreferences)
PortletDataHandlerdata
parameter of importData().
exportData in interface PortletDataHandlerexportData in class BasePortletDataHandlerportletDataContext - the context of the data exportportletId - the portlet ID of the portletportletPreferences - the portlet preferences of the portlet
null if no portlet data is to be
written outpublic long getExportModelCount(ManifestSummary manifestSummary)
PortletDataHandler-1 if no entities are included in the manifest summary.
getExportModelCount in interface PortletDataHandlergetExportModelCount in class BasePortletDataHandlermanifestSummary - the manifest summary listing the number of
exportable entities
-1 if no entities are
included in the manifest summary
public PortletPreferences importData(PortletDataContext portletDataContext,
String portletId,
PortletPreferences portletPreferences,
String data)
PortletDataHandlerpreferences to be saved in the new portlet.
importData in interface PortletDataHandlerimportData in class BasePortletDataHandlerportletDataContext - the context of the data importportletId - the portlet ID of the portletportletPreferences - the portlet preferences of the portletdata - the string data that was returned by
exportData()
null if the data handler made no changes
to the portlet preferences
protected String getExportPortletPreferencesUuid(PortletDataContext portletDataContext,
Portlet portlet,
String className,
long primaryKeyLong)
throws Exception
Exception
protected Long getImportPortletPreferencesNewPrimaryKey(PortletDataContext portletDataContext,
Class<?> clazz,
long companyGroupId,
Map<Long,Long> primaryKeys,
String uuid)
throws Exception
Exception
protected void updateExportPortletPreferencesClassPKs(PortletDataContext portletDataContext,
Portlet portlet,
PortletPreferences portletPreferences,
String key,
String className)
throws Exception
Exception
protected void updateImportPortletPreferencesClassPKs(PortletDataContext portletDataContext,
PortletPreferences portletPreferences,
String key,
Class<?> clazz,
long companyGroupId)
throws Exception
Exception
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||