com.liferay.portlet.exportimport.lar
Class PortletImporter
java.lang.Object
com.liferay.portlet.exportimport.lar.PortletImporter
public class PortletImporter
- extends Object
|
Method Summary |
protected void |
deletePortletData(PortletDataContext portletDataContext)
|
protected String |
deletePortletData(PortletDataContext portletDataContext,
PortletPreferences portletPreferences)
|
protected void |
doImportPortletInfo(PortletDataContext portletDataContext,
long userId)
|
static PortletImporter |
getInstance()
|
protected PortletDataContext |
getPortletDataContext(long userId,
long plid,
long groupId,
String portletId,
Map<String,String[]> parameterMap,
File file)
|
protected PortletPreferences |
getPortletPreferences(long companyId,
long ownerId,
int ownerType,
long plid,
String serviceName)
|
protected int |
getProcessFlag()
|
protected void |
importPortletData(PortletDataContext portletDataContext,
Element portletDataElement)
|
String |
importPortletData(PortletDataContext portletDataContext,
PortletPreferences portletPreferences,
Element portletDataElement)
|
void |
importPortletDataDeletions(long userId,
long plid,
long groupId,
String portletId,
Map<String,String[]> parameterMap,
File file)
|
void |
importPortletInfo(long userId,
long plid,
long groupId,
String portletId,
Map<String,String[]> parameterMap,
File file)
|
protected void |
importPortletPreferences(PortletDataContext portletDataContext,
long companyId,
long groupId,
Layout layout,
Element parentElement,
boolean preserveScopeLayoutId,
boolean importPortletArchivedSetups,
boolean importPortletData,
boolean importPortletSetup,
boolean importPortletUserPreferences)
|
protected void |
importServicePortletPreferences(PortletDataContext portletDataContext,
Element serviceElement)
|
protected void |
populateDeletionStagedModelTypes(PortletDataContext portletDataContext)
|
protected void |
readAssetLinks(PortletDataContext portletDataContext)
|
protected void |
readExpandoTables(PortletDataContext portletDataContext)
|
protected void |
readLocks(PortletDataContext portletDataContext)
|
protected void |
resetPortletScope(PortletDataContext portletDataContext,
long groupId)
|
protected void |
updatePortletPreferences(PortletDataContext portletDataContext,
long ownerId,
int ownerType,
long plid,
String portletId,
String xml,
boolean importData)
|
MissingReferences |
validateFile(long userId,
long plid,
long groupId,
String portletId,
Map<String,String[]> parameterMap,
File file)
|
protected void |
validateFile(long companyId,
long groupId,
String portletId,
ZipReader zipReader)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static PortletImporter getInstance()
importPortletData
public String importPortletData(PortletDataContext portletDataContext,
PortletPreferences portletPreferences,
Element portletDataElement)
throws Exception
- Throws:
Exception
importPortletDataDeletions
public void importPortletDataDeletions(long userId,
long plid,
long groupId,
String portletId,
Map<String,String[]> parameterMap,
File file)
throws Exception
- Throws:
Exception
importPortletInfo
public void importPortletInfo(long userId,
long plid,
long groupId,
String portletId,
Map<String,String[]> parameterMap,
File file)
throws Exception
- Throws:
Exception
validateFile
public MissingReferences validateFile(long userId,
long plid,
long groupId,
String portletId,
Map<String,String[]> parameterMap,
File file)
throws Exception
- Throws:
Exception
deletePortletData
protected void deletePortletData(PortletDataContext portletDataContext)
throws Exception
- Throws:
Exception
deletePortletData
protected String deletePortletData(PortletDataContext portletDataContext,
PortletPreferences portletPreferences)
throws Exception
- Throws:
Exception
doImportPortletInfo
protected void doImportPortletInfo(PortletDataContext portletDataContext,
long userId)
throws Exception
- Throws:
Exception
getPortletDataContext
protected PortletDataContext getPortletDataContext(long userId,
long plid,
long groupId,
String portletId,
Map<String,String[]> parameterMap,
File file)
throws PortalException
- Throws:
PortalException
getPortletPreferences
protected PortletPreferences getPortletPreferences(long companyId,
long ownerId,
int ownerType,
long plid,
String serviceName)
throws PortalException
- Throws:
PortalException
getProcessFlag
protected int getProcessFlag()
importPortletData
protected void importPortletData(PortletDataContext portletDataContext,
Element portletDataElement)
throws Exception
- Throws:
Exception
importPortletPreferences
protected void importPortletPreferences(PortletDataContext portletDataContext,
long companyId,
long groupId,
Layout layout,
Element parentElement,
boolean preserveScopeLayoutId,
boolean importPortletArchivedSetups,
boolean importPortletData,
boolean importPortletSetup,
boolean importPortletUserPreferences)
throws Exception
- Throws:
Exception
importServicePortletPreferences
protected void importServicePortletPreferences(PortletDataContext portletDataContext,
Element serviceElement)
throws PortalException
- Throws:
PortalException
populateDeletionStagedModelTypes
protected void populateDeletionStagedModelTypes(PortletDataContext portletDataContext)
throws Exception
- Throws:
Exception
readAssetLinks
protected void readAssetLinks(PortletDataContext portletDataContext)
throws Exception
- Throws:
Exception
readExpandoTables
protected void readExpandoTables(PortletDataContext portletDataContext)
throws Exception
- Throws:
Exception
readLocks
protected void readLocks(PortletDataContext portletDataContext)
throws Exception
- Throws:
Exception
resetPortletScope
protected void resetPortletScope(PortletDataContext portletDataContext,
long groupId)
updatePortletPreferences
protected void updatePortletPreferences(PortletDataContext portletDataContext,
long ownerId,
int ownerType,
long plid,
String portletId,
String xml,
boolean importData)
throws Exception
- Throws:
Exception
validateFile
protected void validateFile(long companyId,
long groupId,
String portletId,
ZipReader zipReader)
throws Exception
- Throws:
Exception