Class BasePortletDataHandlerTestCase
java.lang.Object
com.liferay.exportimport.test.util.lar.BasePortletDataHandlerTestCase
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.liferay.portal.kernel.xml.Elementprotected com.liferay.exportimport.kernel.lar.PortletDataContextprotected com.liferay.exportimport.kernel.lar.PortletDataHandlerprotected Stringprotected com.liferay.portal.kernel.xml.Elementprotected com.liferay.portal.kernel.model.Groupprotected com.liferay.portal.kernel.zip.ZipWriter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddBooleanParameter(Map<String, String[]> parameterMap, String namespace, String name, boolean value) protected voidaddParameters(Map<String, String[]> parameterMap) protected abstract voidprotected voidcheckManifestSummary(com.liferay.exportimport.kernel.lar.ManifestSummary expectedManifestSummary) protected voidcheckManifestSummaryReferrerClassNames(com.liferay.exportimport.kernel.lar.ManifestSummary manifestSummary) protected com.liferay.exportimport.kernel.lar.DataLevelprotected String[]protected Dateprotected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[]getExportConfigurationPortletDataHandlerControls(long companyId, long groupId, com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[] portletDataHandlerControls, long plid, boolean privateLayout) protected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[]protected longprotected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[]protected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[]protected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[]protected com.liferay.exportimport.kernel.lar.PortletDataHandlergetPortletDataHandler(String portletId) protected abstract Stringprotected Stringprotected List<com.liferay.portal.kernel.model.StagedModel> protected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[]protected Dateprotected voidprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanvoidsetUp()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidprotected voidvalidateDefaultData(jakarta.portlet.PortletPreferences portletPreferences)
-
Field Details
-
missingReferencesElement
protected com.liferay.portal.kernel.xml.Element missingReferencesElement -
portletDataContext
protected com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext -
portletDataHandler
protected com.liferay.exportimport.kernel.lar.PortletDataHandler portletDataHandler -
portletId
-
rootElement
protected com.liferay.portal.kernel.xml.Element rootElement -
stagingGroup
@DeleteAfterTestRun protected com.liferay.portal.kernel.model.Group stagingGroup -
zipWriter
protected com.liferay.portal.kernel.zip.ZipWriter zipWriter
-
-
Constructor Details
-
BasePortletDataHandlerTestCase
public BasePortletDataHandlerTestCase()
-
-
Method Details
-
setUp
- Throws:
Exception
-
testAddDefaultData
- Throws:
Exception
-
testDataLevel
public void testDataLevel() -
testDeleteData
- Throws:
Exception
-
testExportImportData
- Throws:
Exception
-
testGetDataPortletPreferences
public void testGetDataPortletPreferences() -
testGetExportConfigurationPortletDataHandlerControls
- Throws:
Exception
-
testGetExportMetadataPortletDataHandlerControls
- Throws:
Exception
-
testGetExportModelCount
- Throws:
Exception
-
testGetExportPortletDataHandlerControls
- Throws:
Exception
-
testGetImportConfigurationPortletDataHandlerControls
public void testGetImportConfigurationPortletDataHandlerControls() -
testGetImportMetadataPortletDataHandlerControls
- Throws:
Exception
-
testGetImportPortletDataHandlerControls
- Throws:
Exception
-
testGetStagingPortletDataHandlerControls
public void testGetStagingPortletDataHandlerControls() -
testIsDataPortalLevel
public void testIsDataPortalLevel() -
testIsDataPortletInstanceLevel
public void testIsDataPortletInstanceLevel() -
testIsDataSiteLevel
public void testIsDataSiteLevel() -
testIsDisplayPortlet
public void testIsDisplayPortlet() -
testPrepareManifestSummary
- Throws:
Exception
-
testValidateSchemaVersion
public void testValidateSchemaVersion() -
addBooleanParameter
-
addParameters
-
addStagedModels
- Throws:
Exception
-
checkManifestSummary
protected void checkManifestSummary(com.liferay.exportimport.kernel.lar.ManifestSummary expectedManifestSummary) -
checkManifestSummaryReferrerClassNames
protected void checkManifestSummaryReferrerClassNames(com.liferay.exportimport.kernel.lar.ManifestSummary manifestSummary) -
getDataLevel
protected com.liferay.exportimport.kernel.lar.DataLevel getDataLevel() -
getDataPortletPreferences
-
getEndDate
-
getExportConfigurationPortletDataHandlerControls
protected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[] getExportConfigurationPortletDataHandlerControls(long companyId, long groupId, com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[] portletDataHandlerControls, long plid, boolean privateLayout) -
getExportMetadataPortletDataHandlerControls
protected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[] getExportMetadataPortletDataHandlerControls() -
getExportModelCount
protected long getExportModelCount() -
getExportPortletDataHandlerControls
protected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[] getExportPortletDataHandlerControls() -
getImportMetadataPortletDataHandlerControls
protected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[] getImportMetadataPortletDataHandlerControls() -
getImportPortletDataHandlerControls
protected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[] getImportPortletDataHandlerControls() -
getPortletDataHandler
protected com.liferay.exportimport.kernel.lar.PortletDataHandler getPortletDataHandler(String portletId) -
getPortletId
-
getSchemaVersion
-
getStagedModels
-
getStagingPortletDataHandlerControls
protected com.liferay.exportimport.kernel.lar.PortletDataHandlerControl[] getStagingPortletDataHandlerControls() -
getStartDate
-
initContext
- Throws:
Exception
-
isDataPortalLevel
protected boolean isDataPortalLevel() -
isDataPortletInstanceLevel
protected boolean isDataPortletInstanceLevel() -
isDataSiteLevel
protected boolean isDataSiteLevel() -
isDeleteDataTested
protected boolean isDeleteDataTested() -
isDisplayPortlet
protected boolean isDisplayPortlet() -
isExportImportDataTested
protected boolean isExportImportDataTested() -
isGetExportConfigurationPortletDataHandlerControlsTested
protected boolean isGetExportConfigurationPortletDataHandlerControlsTested() -
isGetExportModelCountTested
protected boolean isGetExportModelCountTested() -
validateDefaultData
protected void validateDefaultData(jakarta.portlet.PortletPreferences portletPreferences)
-