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(long groupId,
AssetCategory assetCategory,
String name)
|
protected String |
getAssetVocabularyName(String uuid,
long groupId,
String name,
int count)
|
protected Map<Locale,String> |
getAssetVocabularyTitleMap(long groupId,
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)
|
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 |
readXML(PortletDataContext portletDataContext)
|
protected void |
resetPortletScope(PortletDataContext portletDataContext,
long groupId)
|
protected void |
setPortletScope(PortletDataContext portletDataContext,
Element portletElement)
|
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(PortletDataContext portletDataContext,
String portletId)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PortletImporter
public PortletImporter()
importPortletData
public String importPortletData(PortletDataContext portletDataContext,
String portletId,
PortletPreferences portletPreferences,
Element portletDataElement)
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,
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
getAssetCategoryPath
protected String getAssetCategoryPath(PortletDataContext portletDataContext,
long assetCategoryId)
getAssetCategoryTitleMap
protected Map<Locale,String> getAssetCategoryTitleMap(long groupId,
AssetCategory assetCategory,
String name)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getAssetVocabularyName
protected String getAssetVocabularyName(String uuid,
long groupId,
String name,
int count)
throws Exception
- Throws:
Exception
getAssetVocabularyTitleMap
protected Map<Locale,String> getAssetVocabularyTitleMap(long groupId,
AssetVocabulary assetVocabulary,
String name)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
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
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
readXML
protected void readXML(PortletDataContext portletDataContext)
throws Exception
- Throws:
Exception
resetPortletScope
protected void resetPortletScope(PortletDataContext portletDataContext,
long groupId)
setPortletScope
protected void setPortletScope(PortletDataContext portletDataContext,
Element portletElement)
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(PortletDataContext portletDataContext,
String portletId)
throws Exception
- Throws:
Exception