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 portletDataContext,
String portletId,
long plid)
|
protected String |
deletePortletData(PortletDataContext portletDataContext,
String portletId,
PortletPreferences portletPreferences)
|
protected void |
doImportPortletInfo(long userId,
long plid,
long groupId,
String portletId,
Map<String,String[]> parameterMap,
File file)
|
protected String |
getAssetCategoryName(String uuid,
long groupId,
long parentCategoryId,
String name,
long vocabularyId,
int count)
|
protected String |
getAssetCategoryPath(PortletDataContext portletDataContext,
long assetCategoryId)
|
protected Map<Locale,String> |
getAssetCategoryTitleMap(AssetCategory assetCategory,
String name)
|
protected String |
getAssetVocabularyName(String uuid,
long groupId,
String name,
int count)
|
protected Map<Locale,String> |
getAssetVocabularyTitleMap(AssetVocabulary assetVocabulary,
String name)
|
protected UserIdStrategy |
getUserIdStrategy(User user,
String userIdStrategy)
|
protected void |
importAssetCategory(PortletDataContext portletDataContext,
Map<Long,Long> assetVocabularyPKs,
Map<Long,Long> assetCategoryPKs,
Map<String,String> assetCategoryUuids,
Element assetCategoryElement,
AssetCategory assetCategory)
|
protected void |
importAssetTag(PortletDataContext portletDataContext,
Map<Long,Long> assetTagPKs,
Element assetTagElement,
AssetTag assetTag)
|
protected void |
importAssetVocabulary(PortletDataContext portletDataContext,
Map<Long,Long> assetVocabularyPKs,
Element assetVocabularyElement,
AssetVocabulary assetVocabulary)
|
protected void |
importPortletData(PortletDataContext portletDataContext,
String portletId,
long plid,
Element portletDataElement)
|
protected String |
importPortletData(PortletDataContext portletDataContext,
String portletId,
PortletPreferences portletPreferences,
Element portletDataElement)
|
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,
String portletId,
Element parentElement,
boolean importPortletSetup,
boolean importPortletArchivedSetups,
boolean importPortletUserPreferences,
boolean preserveScopeLayoutId,
boolean importPortletData)
|
protected void |
readAssetCategories(PortletDataContext portletDataContext)
|
protected void |
readAssetLinks(PortletDataContext portletDataContext)
|
protected void |
readAssetTags(PortletDataContext portletDataContext)
|
protected void |
readComments(PortletDataContext portletDataContext)
|
protected void |
readExpandoTables(PortletDataContext portletDataContext)
|
protected void |
readLocks(PortletDataContext portletDataContext)
|
protected void |
readRatingsEntries(PortletDataContext portletDataContext)
|
protected void |
resetPortletScope(PortletDataContext portletDataContext,
long groupId)
|
protected void |
setPortletScope(PortletDataContext portletDataContext,
Element portletElement)
|
protected String |
updateAssetCategoriesNavigationPortletPreferences(PortletDataContext portletDataContext,
long companyId,
long ownerId,
int ownerType,
long plid,
String portletId,
String xml)
|
protected void |
updateAssetPublisherClassNameIds(PortletPreferences jxPreferences,
String key)
|
protected String |
updateAssetPublisherPortletPreferences(PortletDataContext portletDataContext,
long companyId,
long ownerId,
int ownerType,
long plid,
String portletId,
String xml,
Layout layout)
|
protected void |
updateAssetPublisherScopeIds(PortletPreferences jxPreferences,
String key,
long groupId,
long plid)
|
protected void |
updatePortletPreferences(PortletDataContext portletDataContext,
long ownerId,
int ownerType,
long plid,
String portletId,
String xml,
boolean importData)
|
protected void |
updatePreferencesClassPKs(PortletDataContext portletDataContext,
PortletPreferences jxPreferences,
String key,
Class<?> clazz,
long companyGroupId)
|
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 Exception
- Throws:
Exception
deletePortletData
protected void deletePortletData(PortletDataContext portletDataContext,
String portletId,
long plid)
throws Exception
- Throws:
Exception
deletePortletData
protected String deletePortletData(PortletDataContext portletDataContext,
String portletId,
PortletPreferences portletPreferences)
throws Exception
- Throws:
Exception
doImportPortletInfo
protected void doImportPortletInfo(long userId,
long plid,
long groupId,
String portletId,
Map<String,String[]> parameterMap,
File file)
throws Exception
- Throws:
Exception
getAssetCategoryName
protected String getAssetCategoryName(String uuid,
long groupId,
long parentCategoryId,
String name,
long vocabularyId,
int count)
throws Exception
- Throws:
Exception
- See Also:
DLPortletDataHandlerImpl#getFileEntryTypeName(String, long,
String, int)}
,
DLPortletDataHandlerImpl#getFolderName(String, long, long,
String, int)}
getAssetCategoryPath
protected String getAssetCategoryPath(PortletDataContext portletDataContext,
long assetCategoryId)
getAssetCategoryTitleMap
protected Map<Locale,String> getAssetCategoryTitleMap(AssetCategory assetCategory,
String name)
getAssetVocabularyName
protected String getAssetVocabularyName(String uuid,
long groupId,
String name,
int count)
throws Exception
- Throws:
Exception
- See Also:
DLPortletDataHandlerImpl#getFileEntryTypeName(String, long,
String, int)}
,
DLPortletDataHandlerImpl#getFolderName(String, long, long,
String, int)}
getAssetVocabularyTitleMap
protected Map<Locale,String> getAssetVocabularyTitleMap(AssetVocabulary assetVocabulary,
String name)
getUserIdStrategy
protected UserIdStrategy getUserIdStrategy(User user,
String userIdStrategy)
importAssetCategory
protected void importAssetCategory(PortletDataContext portletDataContext,
Map<Long,Long> assetVocabularyPKs,
Map<Long,Long> assetCategoryPKs,
Map<String,String> assetCategoryUuids,
Element assetCategoryElement,
AssetCategory assetCategory)
throws Exception
- Throws:
Exception
importAssetTag
protected void importAssetTag(PortletDataContext portletDataContext,
Map<Long,Long> assetTagPKs,
Element assetTagElement,
AssetTag assetTag)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
importAssetVocabulary
protected void importAssetVocabulary(PortletDataContext portletDataContext,
Map<Long,Long> assetVocabularyPKs,
Element assetVocabularyElement,
AssetVocabulary assetVocabulary)
throws Exception
- Throws:
Exception
importPortletData
protected void importPortletData(PortletDataContext portletDataContext,
String portletId,
long plid,
Element portletDataElement)
throws Exception
- Throws:
Exception
importPortletData
protected String importPortletData(PortletDataContext portletDataContext,
String portletId,
PortletPreferences portletPreferences,
Element portletDataElement)
throws Exception
- Throws:
Exception
importPortletPreferences
protected void importPortletPreferences(PortletDataContext portletDataContext,
long companyId,
long groupId,
Layout layout,
String portletId,
Element parentElement,
boolean importPortletSetup,
boolean importPortletArchivedSetups,
boolean importPortletUserPreferences,
boolean preserveScopeLayoutId,
boolean importPortletData)
throws Exception
- Throws:
Exception
readAssetCategories
protected void readAssetCategories(PortletDataContext portletDataContext)
throws Exception
- Throws:
Exception
readAssetLinks
protected void readAssetLinks(PortletDataContext portletDataContext)
throws Exception
- Throws:
Exception
readAssetTags
protected void readAssetTags(PortletDataContext portletDataContext)
throws Exception
- Throws:
Exception
readComments
protected void readComments(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
readRatingsEntries
protected void readRatingsEntries(PortletDataContext portletDataContext)
throws Exception
- Throws:
Exception
resetPortletScope
protected void resetPortletScope(PortletDataContext portletDataContext,
long groupId)
setPortletScope
protected void setPortletScope(PortletDataContext portletDataContext,
Element portletElement)
updateAssetCategoriesNavigationPortletPreferences
protected String updateAssetCategoriesNavigationPortletPreferences(PortletDataContext portletDataContext,
long companyId,
long ownerId,
int ownerType,
long plid,
String portletId,
String xml)
throws Exception
- Throws:
Exception
updateAssetPublisherClassNameIds
protected void updateAssetPublisherClassNameIds(PortletPreferences jxPreferences,
String key)
throws Exception
- Throws:
Exception
updateAssetPublisherPortletPreferences
protected String updateAssetPublisherPortletPreferences(PortletDataContext portletDataContext,
long companyId,
long ownerId,
int ownerType,
long plid,
String portletId,
String xml,
Layout layout)
throws Exception
- Throws:
Exception
updateAssetPublisherScopeIds
protected void updateAssetPublisherScopeIds(PortletPreferences jxPreferences,
String key,
long groupId,
long plid)
throws Exception
- Throws:
Exception
updatePortletPreferences
protected void updatePortletPreferences(PortletDataContext portletDataContext,
long ownerId,
int ownerType,
long plid,
String portletId,
String xml,
boolean importData)
throws Exception
- Throws:
Exception
updatePreferencesClassPKs
protected void updatePreferencesClassPKs(PortletDataContext portletDataContext,
PortletPreferences jxPreferences,
String key,
Class<?> clazz,
long companyGroupId)
throws Exception
- Throws:
Exception