com.liferay.portal.lar
Class PortletImporter

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

public class PortletImporter
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan, Joel Kozikowski, Charles May, Raymond Augé, Jorge Ferrer, Bruno Farache

Constructor Summary
PortletImporter()
           
 
Method Summary
protected  void deletePortletData(com.liferay.portal.lar.PortletDataContext context, java.lang.String portletId, long plid)
           
protected  java.lang.String deletePortletData(com.liferay.portal.lar.PortletDataContext context, java.lang.String portletId, com.liferay.portal.model.PortletPreferences portletPreferences)
           
protected  com.liferay.portal.lar.UserIdStrategy getUserIdStrategy(com.liferay.portal.model.User user, java.lang.String userIdStrategy)
           
protected  void importPortletData(com.liferay.portal.lar.PortletDataContext context, java.lang.String portletId, long plid, com.liferay.portal.kernel.xml.Element portletDataRefEl)
           
protected  java.lang.String importPortletData(com.liferay.portal.lar.PortletDataContext context, java.lang.String portletId, com.liferay.portal.model.PortletPreferences portletPreferences, com.liferay.portal.kernel.xml.Element portletDataRefEl)
           
 void importPortletInfo(long userId, long plid, long groupId, java.lang.String portletId, java.util.Map<java.lang.String,java.lang.String[]> parameterMap, java.io.InputStream is)
           
protected  void importPortletPreferences(com.liferay.portal.lar.PortletDataContext context, long companyId, long groupId, com.liferay.portal.model.Layout layout, java.lang.String portletId, com.liferay.portal.kernel.xml.Element parentEl, boolean importPortletSetup, boolean importPortletArchivedSetups, boolean importUserPreferences, boolean preserveScopeLayoutId)
           
protected  void readCategories(com.liferay.portal.lar.PortletDataContext context, com.liferay.portal.kernel.xml.Element parentEl)
           
protected  void readComments(com.liferay.portal.lar.PortletDataContext context, com.liferay.portal.kernel.xml.Element parentEl)
           
protected  void readRatings(com.liferay.portal.lar.PortletDataContext context, com.liferay.portal.kernel.xml.Element parentEl)
           
protected  void readTags(com.liferay.portal.lar.PortletDataContext context, com.liferay.portal.kernel.xml.Element parentEl)
           
 
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

importPortletInfo

public void importPortletInfo(long userId,
                              long plid,
                              long groupId,
                              java.lang.String portletId,
                              java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
                              java.io.InputStream is)
                       throws com.liferay.portal.PortalException,
                              com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deletePortletData

protected void deletePortletData(com.liferay.portal.lar.PortletDataContext context,
                                 java.lang.String portletId,
                                 long plid)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

deletePortletData

protected java.lang.String deletePortletData(com.liferay.portal.lar.PortletDataContext context,
                                             java.lang.String portletId,
                                             com.liferay.portal.model.PortletPreferences portletPreferences)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getUserIdStrategy

protected com.liferay.portal.lar.UserIdStrategy getUserIdStrategy(com.liferay.portal.model.User user,
                                                                  java.lang.String userIdStrategy)

importPortletData

protected void importPortletData(com.liferay.portal.lar.PortletDataContext context,
                                 java.lang.String portletId,
                                 long plid,
                                 com.liferay.portal.kernel.xml.Element portletDataRefEl)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

importPortletData

protected java.lang.String importPortletData(com.liferay.portal.lar.PortletDataContext context,
                                             java.lang.String portletId,
                                             com.liferay.portal.model.PortletPreferences portletPreferences,
                                             com.liferay.portal.kernel.xml.Element portletDataRefEl)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

importPortletPreferences

protected void importPortletPreferences(com.liferay.portal.lar.PortletDataContext context,
                                        long companyId,
                                        long groupId,
                                        com.liferay.portal.model.Layout layout,
                                        java.lang.String portletId,
                                        com.liferay.portal.kernel.xml.Element parentEl,
                                        boolean importPortletSetup,
                                        boolean importPortletArchivedSetups,
                                        boolean importUserPreferences,
                                        boolean preserveScopeLayoutId)
                                 throws com.liferay.portal.PortalException,
                                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

readComments

protected void readComments(com.liferay.portal.lar.PortletDataContext context,
                            com.liferay.portal.kernel.xml.Element parentEl)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

readRatings

protected void readRatings(com.liferay.portal.lar.PortletDataContext context,
                           com.liferay.portal.kernel.xml.Element parentEl)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

readCategories

protected void readCategories(com.liferay.portal.lar.PortletDataContext context,
                              com.liferay.portal.kernel.xml.Element parentEl)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

readTags

protected void readTags(com.liferay.portal.lar.PortletDataContext context,
                        com.liferay.portal.kernel.xml.Element parentEl)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException