com.liferay.portal.lar
Class LayoutImporter
java.lang.Object
com.liferay.portal.lar.LayoutImporter
public class LayoutImporter
- extends Object
Method Summary |
protected void |
deleteMissingLayouts(List<String> sourceLayoutUuids,
List<Layout> previousLayouts,
ServiceContext serviceContext)
|
protected void |
doImportLayouts(long userId,
long groupId,
boolean privateLayout,
Map<String,String[]> parameterMap,
File file)
|
static Map<String,Boolean> |
getImportPortletControlsMap(long companyId,
String portletId,
Map<String,String[]> parameterMap,
Element portletDataElement,
ManifestSummary manifestSummary)
|
protected void |
importLayout(PortletDataContext portletDataContext,
List<String> sourceLayoutsUuids,
List<Layout> newLayouts,
Element layoutElement)
|
void |
importLayouts(long userId,
long groupId,
boolean privateLayout,
Map<String,String[]> parameterMap,
File file)
|
protected void |
readXML(PortletDataContext portletDataContext)
|
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(PortletDataContext portletDataContext)
|
protected void |
validateLayoutPrototypes(long companyId,
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()
getImportPortletControlsMap
public static Map<String,Boolean> getImportPortletControlsMap(long companyId,
String portletId,
Map<String,String[]> parameterMap,
Element portletDataElement,
ManifestSummary manifestSummary)
throws Exception
- Throws:
Exception
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(List<String> sourceLayoutUuids,
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
importLayout
protected void importLayout(PortletDataContext portletDataContext,
List<String> sourceLayoutsUuids,
List<Layout> newLayouts,
Element layoutElement)
throws Exception
- Throws:
Exception
readXML
protected void readXML(PortletDataContext portletDataContext)
throws Exception
- Throws:
Exception
setPortletScope
protected void setPortletScope(PortletDataContext portletDataContext,
Element portletElement)
updateLayoutPriorities
protected void updateLayoutPriorities(PortletDataContext portletDataContext,
List<Element> layoutElements,
boolean privateLayout)
throws SystemException
- Throws:
SystemException
validateFile
protected void validateFile(PortletDataContext portletDataContext)
throws Exception
- Throws:
Exception
validateLayoutPrototypes
protected void validateLayoutPrototypes(long companyId,
Element layoutsElement,
List<Element> layoutElements)
throws Exception
- Throws:
Exception