com.liferay.portal.lar
Class PortletImporter
java.lang.Object
com.liferay.portal.lar.PortletImporter
public class PortletImporter
- extends Object
Method Summary |
protected void |
deletePortletData(PortletDataContext context,
String portletId,
long plid)
|
protected String |
deletePortletData(PortletDataContext context,
String portletId,
PortletPreferences portletPreferences)
|
protected String |
getCategoryPath(PortletDataContext context,
long categoryId)
|
protected UserIdStrategy |
getUserIdStrategy(User user,
String userIdStrategy)
|
protected void |
importCategory(PortletDataContext context,
Map<Long,Long> vocabularyPKs,
Map<Long,Long> categoryPKs,
Element categoryEl,
AssetCategory category)
|
protected void |
importPortletData(PortletDataContext context,
String portletId,
long plid,
Element portletDataRefEl)
|
protected String |
importPortletData(PortletDataContext context,
String portletId,
PortletPreferences portletPreferences,
Element portletDataRefEl)
|
void |
importPortletInfo(long userId,
long plid,
long groupId,
String portletId,
Map<String,String[]> parameterMap,
File file)
|
protected void |
importPortletPreferences(PortletDataContext context,
long companyId,
long groupId,
Layout layout,
String portletId,
Element parentEl,
boolean importPortletSetup,
boolean importPortletArchivedSetups,
boolean importUserPreferences,
boolean preserveScopeLayoutId)
|
protected void |
importVocabulary(PortletDataContext context,
Map<Long,Long> vocabularyPKs,
Element vocabularyEl,
AssetVocabulary vocabulary)
|
protected void |
readCategories(PortletDataContext context)
|
protected void |
readComments(PortletDataContext context,
Element parentEl)
|
protected void |
readLocks(PortletDataContext context,
Element parentEl)
|
protected void |
readRatings(PortletDataContext context,
Element parentEl)
|
protected void |
readTags(PortletDataContext context,
Element parentEl)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PortletImporter
public PortletImporter()
importPortletInfo
public void importPortletInfo(long userId,
long plid,
long groupId,
String portletId,
Map<String,String[]> parameterMap,
File file)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deletePortletData
protected void deletePortletData(PortletDataContext context,
String portletId,
long plid)
throws SystemException
- Throws:
SystemException
deletePortletData
protected String deletePortletData(PortletDataContext context,
String portletId,
PortletPreferences portletPreferences)
throws SystemException
- Throws:
SystemException
getCategoryPath
protected String getCategoryPath(PortletDataContext context,
long categoryId)
getUserIdStrategy
protected UserIdStrategy getUserIdStrategy(User user,
String userIdStrategy)
importCategory
protected void importCategory(PortletDataContext context,
Map<Long,Long> vocabularyPKs,
Map<Long,Long> categoryPKs,
Element categoryEl,
AssetCategory category)
throws Exception
- Throws:
Exception
importVocabulary
protected void importVocabulary(PortletDataContext context,
Map<Long,Long> vocabularyPKs,
Element vocabularyEl,
AssetVocabulary vocabulary)
throws Exception
- Throws:
Exception
importPortletData
protected void importPortletData(PortletDataContext context,
String portletId,
long plid,
Element portletDataRefEl)
throws SystemException
- Throws:
SystemException
importPortletData
protected String importPortletData(PortletDataContext context,
String portletId,
PortletPreferences portletPreferences,
Element portletDataRefEl)
throws SystemException
- Throws:
SystemException
importPortletPreferences
protected void importPortletPreferences(PortletDataContext context,
long companyId,
long groupId,
Layout layout,
String portletId,
Element parentEl,
boolean importPortletSetup,
boolean importPortletArchivedSetups,
boolean importUserPreferences,
boolean preserveScopeLayoutId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
readComments
protected void readComments(PortletDataContext context,
Element parentEl)
throws SystemException
- Throws:
SystemException
readLocks
protected void readLocks(PortletDataContext context,
Element parentEl)
throws SystemException
- Throws:
SystemException
readRatings
protected void readRatings(PortletDataContext context,
Element parentEl)
throws SystemException
- Throws:
SystemException
readCategories
protected void readCategories(PortletDataContext context)
throws SystemException
- Throws:
SystemException
readTags
protected void readTags(PortletDataContext context,
Element parentEl)
throws SystemException
- Throws:
SystemException