com.liferay.portal.lar
Class LayoutImporter
java.lang.Object
com.liferay.portal.lar.LayoutImporter
public class LayoutImporter
- extends Object
Method Summary |
protected String[] |
appendPortletIds(String[] portletIds,
String[] newPortletIds,
String portletsMergeMode)
|
protected void |
deleteMissingLayouts(long groupId,
boolean privateLayout,
List<Layout> newLayouts,
List<Layout> previousLayouts,
ServiceContext serviceContext)
|
protected void |
doImportLayouts(long userId,
long groupId,
boolean privateLayout,
Map<String,String[]> parameterMap,
File file)
|
protected void |
fixTypeSettings(Layout layout)
|
protected String |
getLayoutSetPrototype(PortletDataContext portletDataContext,
String layoutSetPrototypeUuid)
|
protected void |
importJournalArticle(PortletDataContext portletDataContext,
Layout layout,
Element layoutElement)
|
protected void |
importLayout(PortletDataContext portletDataContext,
User user,
LayoutCache layoutCache,
List<Layout> previousLayouts,
List<Layout> newLayouts,
Map<Long,Layout> newLayoutsMap,
String portletsMergeMode,
String themeId,
String colorSchemeId,
String layoutsImportMode,
boolean privateLayout,
boolean importPermissions,
boolean importPublicLayoutPermissions,
boolean importUserPermissions,
boolean importThemeSettings,
Element rootElement,
Element layoutElement)
|
void |
importLayouts(long userId,
long groupId,
boolean privateLayout,
Map<String,String[]> parameterMap,
File file)
|
protected void |
importLayoutSetPrototype(PortletDataContext portletDataContext,
User user,
String layoutSetPrototypeUuid,
ServiceContext serviceContext)
|
protected String |
importTheme(LayoutSet layoutSet,
InputStream themeZip)
|
protected void |
mergePortlets(Layout layout,
String newTypeSettings,
String portletsMergeMode)
|
protected void |
updateTypeSettings(Layout importedLayout,
Layout layout)
|
protected void |
validateLayoutPrototypes(Element layoutsElement,
List<Element> layoutElements)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LayoutImporter
public LayoutImporter()
importLayouts
public void importLayouts(long userId,
long groupId,
boolean privateLayout,
Map<String,String[]> parameterMap,
File file)
throws Exception
- Throws:
Exception
appendPortletIds
protected String[] appendPortletIds(String[] portletIds,
String[] newPortletIds,
String portletsMergeMode)
deleteMissingLayouts
protected void deleteMissingLayouts(long groupId,
boolean privateLayout,
List<Layout> newLayouts,
List<Layout> previousLayouts,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception
doImportLayouts
protected void doImportLayouts(long userId,
long groupId,
boolean privateLayout,
Map<String,String[]> parameterMap,
File file)
throws Exception
- Throws:
Exception
fixTypeSettings
protected void fixTypeSettings(Layout layout)
throws Exception
- Throws:
Exception
getLayoutSetPrototype
protected String getLayoutSetPrototype(PortletDataContext portletDataContext,
String layoutSetPrototypeUuid)
importJournalArticle
protected void importJournalArticle(PortletDataContext portletDataContext,
Layout layout,
Element layoutElement)
throws Exception
- Throws:
Exception
importLayout
protected void importLayout(PortletDataContext portletDataContext,
User user,
LayoutCache layoutCache,
List<Layout> previousLayouts,
List<Layout> newLayouts,
Map<Long,Layout> newLayoutsMap,
String portletsMergeMode,
String themeId,
String colorSchemeId,
String layoutsImportMode,
boolean privateLayout,
boolean importPermissions,
boolean importPublicLayoutPermissions,
boolean importUserPermissions,
boolean importThemeSettings,
Element rootElement,
Element layoutElement)
throws Exception
- Throws:
Exception
importLayoutSetPrototype
protected void importLayoutSetPrototype(PortletDataContext portletDataContext,
User user,
String layoutSetPrototypeUuid,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
importTheme
protected String importTheme(LayoutSet layoutSet,
InputStream themeZip)
throws Exception
- Throws:
Exception
mergePortlets
protected void mergePortlets(Layout layout,
String newTypeSettings,
String portletsMergeMode)
updateTypeSettings
protected void updateTypeSettings(Layout importedLayout,
Layout layout)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
validateLayoutPrototypes
protected void validateLayoutPrototypes(Element layoutsElement,
List<Element> layoutElements)
throws Exception
- Throws:
Exception