Liferay 6.0.5

com.liferay.portal.lar
Class LayoutImporter

java.lang.Object
  extended by com.liferay.portal.lar.LayoutImporter

public class LayoutImporter
extends Object


Constructor Summary
LayoutImporter()
           
 
Method Summary
protected  String[] appendPortletIds(String[] portletIds, String[] newPortletIds, String portletsMergeMode)
           
protected  void deleteMissingLayouts(long groupId, boolean privateLayout, Set<Long> newLayoutIds, List<Layout> previousLayouts)
           
protected  void fixTypeSettings(Layout layout)
           
protected  AssetVocabulary getAssetVocabulary(PortletDataContext context, String vocabularyUuid, String vocabularyName, String userUuid, ServiceContext serviceContext)
           
protected  void importLayout(PortletDataContext context, User user, LayoutCache layoutCache, List<Layout> previousLayouts, List<Layout> newLayouts, Map<Long,Layout> newLayoutsMap, Set<Long> newLayoutIds, String portletsMergeMode, String themeId, String colorSchemeId, String layoutsImportMode, boolean privateLayout, boolean importPermissions, boolean importUserPermissions, boolean useThemeZip, Element rootElement, Element layoutElement)
           
 void importLayouts(long userId, long groupId, boolean privateLayout, Map<String,String[]> parameterMap, File file)
           
protected  String importTheme(LayoutSet layoutSet, InputStream themeZip)
           
protected  void mergePortlets(Layout layout, String newTypeSettings, String portletsMergeMode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutImporter

public LayoutImporter()
Method Detail

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,
                                    Set<Long> newLayoutIds,
                                    List<Layout> previousLayouts)
                             throws Exception
Throws:
Exception

fixTypeSettings

protected void fixTypeSettings(Layout layout)
                        throws Exception
Throws:
Exception

getAssetVocabulary

protected AssetVocabulary getAssetVocabulary(PortletDataContext context,
                                             String vocabularyUuid,
                                             String vocabularyName,
                                             String userUuid,
                                             ServiceContext serviceContext)
                                      throws Exception
Throws:
Exception

importLayout

protected void importLayout(PortletDataContext context,
                            User user,
                            LayoutCache layoutCache,
                            List<Layout> previousLayouts,
                            List<Layout> newLayouts,
                            Map<Long,Layout> newLayoutsMap,
                            Set<Long> newLayoutIds,
                            String portletsMergeMode,
                            String themeId,
                            String colorSchemeId,
                            String layoutsImportMode,
                            boolean privateLayout,
                            boolean importPermissions,
                            boolean importUserPermissions,
                            boolean useThemeZip,
                            Element rootElement,
                            Element layoutElement)
                     throws Exception
Throws:
Exception

importTheme

protected String importTheme(LayoutSet layoutSet,
                             InputStream themeZip)
                      throws Exception
Throws:
Exception

mergePortlets

protected void mergePortlets(Layout layout,
                             String newTypeSettings,
                             String portletsMergeMode)

Liferay 6.0.5