com.liferay.portal.lar
Class LayoutImporter
java.lang.Object
com.liferay.portal.lar.LayoutImporter
public class LayoutImporter
- extends Object
|
Method Summary |
protected void |
deleteMissingLayouts(PortletDataContext portletDataContext,
List<String> sourceLayoutUuids,
List<Layout> previousLayouts,
ServiceContext serviceContext)
|
protected void |
doImportLayouts(PortletDataContext portletDataContext,
long userId)
|
static LayoutImporter |
getInstance()
|
protected PortletDataContext |
getPortletDataContext(long userId,
long groupId,
boolean privateLayout,
Map<String,String[]> parameterMap,
File file)
|
protected void |
importLayout(PortletDataContext portletDataContext,
List<String> sourceLayoutsUuids,
Element layoutElement)
|
void |
importLayouts(long userId,
long groupId,
boolean privateLayout,
Map<String,String[]> parameterMap,
File file)
|
protected void |
setPortletScope(PortletDataContext portletDataContext,
Element portletElement)
|
protected void |
updateLayoutPriorities(PortletDataContext portletDataContext,
List<Element> layoutElements,
boolean privateLayout)
|
MissingReferences |
validateFile(long userId,
long groupId,
boolean privateLayout,
Map<String,String[]> parameterMap,
File file)
|
protected void |
validateFile(long companyId,
long groupId,
Map<String,String[]> parameterMap,
ZipReader zipReader)
|
protected void |
validateLayoutPrototypes(long companyId,
Element layoutsElement)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static LayoutImporter getInstance()
importLayouts
public void importLayouts(long userId,
long groupId,
boolean privateLayout,
Map<String,String[]> parameterMap,
File file)
throws Exception
- Throws:
Exception
validateFile
public MissingReferences validateFile(long userId,
long groupId,
boolean privateLayout,
Map<String,String[]> parameterMap,
File file)
throws Exception
- Throws:
Exception
deleteMissingLayouts
protected void deleteMissingLayouts(PortletDataContext portletDataContext,
List<String> sourceLayoutUuids,
List<Layout> previousLayouts,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception
doImportLayouts
protected void doImportLayouts(PortletDataContext portletDataContext,
long userId)
throws Exception
- Throws:
Exception
getPortletDataContext
protected PortletDataContext getPortletDataContext(long userId,
long groupId,
boolean privateLayout,
Map<String,String[]> parameterMap,
File file)
throws PortalException
- Throws:
PortalException
importLayout
protected void importLayout(PortletDataContext portletDataContext,
List<String> sourceLayoutsUuids,
Element layoutElement)
throws Exception
- Throws:
Exception
setPortletScope
protected void setPortletScope(PortletDataContext portletDataContext,
Element portletElement)
updateLayoutPriorities
protected void updateLayoutPriorities(PortletDataContext portletDataContext,
List<Element> layoutElements,
boolean privateLayout)
validateFile
protected void validateFile(long companyId,
long groupId,
Map<String,String[]> parameterMap,
ZipReader zipReader)
throws Exception
- Throws:
Exception
validateLayoutPrototypes
protected void validateLayoutPrototypes(long companyId,
Element layoutsElement)
throws Exception
- Throws:
Exception