Liferay 7.0-ce-m3

com.liferay.portal.lar
Class PortletImporter

java.lang.Object
  extended by com.liferay.portal.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  void importAssetTag(PortletDataContext portletDataContext, Map<Long,Long> assetTagPKs, Element assetTagElement, AssetTag assetTag)
           
protected  void importPortletData(PortletDataContext portletDataContext, Element portletDataElement)
           
 String importPortletData(PortletDataContext portletDataContext, 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, Element parentElement, boolean preserveScopeLayoutId, boolean importPortletArchivedSetups, boolean importPortletData, boolean importPortletSetup, boolean importPortletUserPreferences)
           
protected  void importServicePortletPreferences(PortletDataContext portletDataContext, Element serviceElement)
           
protected  void readAssetLinks(PortletDataContext portletDataContext)
           
protected  void readAssetTags(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
 

Method Detail

getInstance

public static PortletImporter getInstance()

importPortletData

public String importPortletData(PortletDataContext portletDataContext,
                                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)
                          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

importAssetTag

protected void importAssetTag(PortletDataContext portletDataContext,
                              Map<Long,Long> assetTagPKs,
                              Element assetTagElement,
                              AssetTag assetTag)
                       throws PortalException
Throws:
PortalException

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

readAssetLinks

protected void readAssetLinks(PortletDataContext portletDataContext)
                       throws Exception
Throws:
Exception

readAssetTags

protected void readAssetTags(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

Liferay 7.0-ce-m3