Package com.liferay.layout.importer
Interface LayoutsImporter
public interface LayoutsImporter
-
Method Summary
Modifier and TypeMethodDescriptionimportFile
(long userId, long groupId, long layoutPageTemplateCollectionId, File file, LayoutsImportStrategy layoutsImportStrategy, boolean preserveItemIds) void
importFile
(long userId, long groupId, File file, LayoutsImportStrategy layoutsImportStrategy, boolean preserveItemIds) com.liferay.portal.kernel.model.Layout
importLayoutSettings
(long userId, com.liferay.portal.kernel.model.Layout layout, String settingsJSON) List<com.liferay.fragment.model.FragmentEntryLink>
importPageElement
(com.liferay.portal.kernel.model.Layout layout, LayoutStructure layoutStructure, String parentItemId, String pageElementJSON, int position, boolean preserveItemIds) List<com.liferay.fragment.model.FragmentEntryLink>
importPageElement
(com.liferay.portal.kernel.model.Layout layout, LayoutStructure layoutStructure, String parentItemId, String pageElementJSON, int position, boolean preserveItemIds, long segmentsExperienceId) boolean
validateFile
(long groupId, long layoutPageTemplateCollectionId, File file)
-
Method Details
-
importFile
void importFile(long userId, long groupId, File file, LayoutsImportStrategy layoutsImportStrategy, boolean preserveItemIds) throws Exception - Throws:
Exception
-
importFile
List<LayoutsImporterResultEntry> importFile(long userId, long groupId, long layoutPageTemplateCollectionId, File file, LayoutsImportStrategy layoutsImportStrategy, boolean preserveItemIds) throws Exception - Throws:
Exception
-
importLayoutSettings
com.liferay.portal.kernel.model.Layout importLayoutSettings(long userId, com.liferay.portal.kernel.model.Layout layout, String settingsJSON) throws Exception - Throws:
Exception
-
importPageElement
List<com.liferay.fragment.model.FragmentEntryLink> importPageElement(com.liferay.portal.kernel.model.Layout layout, LayoutStructure layoutStructure, String parentItemId, String pageElementJSON, int position, boolean preserveItemIds) throws Exception - Throws:
Exception
-
importPageElement
List<com.liferay.fragment.model.FragmentEntryLink> importPageElement(com.liferay.portal.kernel.model.Layout layout, LayoutStructure layoutStructure, String parentItemId, String pageElementJSON, int position, boolean preserveItemIds, long segmentsExperienceId) throws Exception - Throws:
Exception
-
validateFile
- Throws:
Exception
-