Liferay 6.2-ce-ga5

com.liferay.portal.lar
Class PortletImporter

java.lang.Object
  extended by com.liferay.portal.lar.PortletImporter

public class PortletImporter
extends Object


Constructor Summary
PortletImporter()
           
 
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 preserveScopeLayoutId, boolean importPortletArchivedSetups, boolean importPortletData, boolean importPortletSetup, boolean importPortletUserPreferences)
           
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 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
 

Constructor Detail

PortletImporter

public PortletImporter()
Method Detail

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 preserveScopeLayoutId,
                                        boolean importPortletArchivedSetups,
                                        boolean importPortletData,
                                        boolean importPortletSetup,
                                        boolean importPortletUserPreferences)
                                 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)

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

Liferay 6.2-ce-ga5