com.liferay.portal.lar
Class PortletExporter

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

public class PortletExporter
extends java.lang.Object

View Source

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

Constructor Summary
PortletExporter()
           
 
Method Summary
protected  void exportCategories(com.liferay.portal.lar.PortletDataContext context, com.liferay.portal.kernel.xml.Element parentEl)
           
protected  void exportComments(com.liferay.portal.lar.PortletDataContext context, com.liferay.portal.kernel.xml.Element parentEl)
           
protected  void exportLocks(com.liferay.portal.lar.PortletDataContext context, com.liferay.portal.kernel.xml.Element parentEl)
           
protected  void exportPortlet(com.liferay.portal.lar.PortletDataContext context, LayoutCache layoutCache, java.lang.String portletId, com.liferay.portal.model.Layout layout, com.liferay.portal.kernel.xml.Element parentEl, long defaultUserId, boolean exportPermissions, boolean exportPortletArchivedSetups, boolean exportPortletData, boolean exportPortletSetup, boolean exportPortletUserPreferences, boolean exportUserPermissions)
           
protected  void exportPortletData(com.liferay.portal.lar.PortletDataContext context, com.liferay.portal.model.Portlet portlet, com.liferay.portal.model.Layout layout, javax.portlet.PortletPreferences portletPreferences, com.liferay.portal.kernel.xml.Element parentEl)
           
 byte[] exportPortletInfo(long plid, long groupId, java.lang.String portletId, java.util.Map<java.lang.String,java.lang.String[]> parameterMap, java.util.Date startDate, java.util.Date endDate)
           
 java.io.File exportPortletInfoAsFile(long plid, long groupId, java.lang.String portletId, java.util.Map<java.lang.String,java.lang.String[]> parameterMap, java.util.Date startDate, java.util.Date endDate)
           
protected  void exportPortletPreference(com.liferay.portal.lar.PortletDataContext context, long ownerId, int ownerType, boolean defaultUser, com.liferay.portal.model.PortletPreferences portletPreferences, java.lang.String portletId, long plid, com.liferay.portal.kernel.xml.Element parentEl)
           
protected  void exportPortletPreferences(com.liferay.portal.lar.PortletDataContext context, long ownerId, int ownerType, boolean defaultUser, com.liferay.portal.model.Layout layout, java.lang.String portletId, com.liferay.portal.kernel.xml.Element parentEl)
           
protected  void exportRatings(com.liferay.portal.lar.PortletDataContext context, com.liferay.portal.kernel.xml.Element parentEl)
           
protected  void exportTags(com.liferay.portal.lar.PortletDataContext context, com.liferay.portal.kernel.xml.Element parentEl)
           
protected  java.lang.String getCommentsPath(com.liferay.portal.lar.PortletDataContext context, java.lang.String className, java.lang.String classPK)
           
protected  java.lang.String getCommentsPath(com.liferay.portal.lar.PortletDataContext context, java.lang.String className, java.lang.String classPK, com.liferay.portlet.messageboards.model.MBMessage message)
           
protected  java.lang.String getLocksPath(com.liferay.portal.lar.PortletDataContext context, java.lang.String className, java.lang.String key, com.liferay.portal.model.Lock lock)
           
protected  java.lang.String getPortletDataPath(com.liferay.portal.lar.PortletDataContext context, java.lang.String portletId)
           
protected  java.lang.String getPortletPreferencesPath(com.liferay.portal.lar.PortletDataContext context, java.lang.String portletId, long ownerId, int ownerType, long plid)
           
protected  java.lang.String getRatingsPath(com.liferay.portal.lar.PortletDataContext context, java.lang.String className, java.lang.String classPK)
           
protected  java.lang.String getRatingsPath(com.liferay.portal.lar.PortletDataContext context, java.lang.String className, java.lang.String classPK, com.liferay.portlet.ratings.model.RatingsEntry rating)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletExporter

public PortletExporter()
Method Detail

exportPortletInfo

public byte[] exportPortletInfo(long plid,
                                long groupId,
                                java.lang.String portletId,
                                java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
                                java.util.Date startDate,
                                java.util.Date endDate)
                         throws com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

exportPortletInfoAsFile

public java.io.File exportPortletInfoAsFile(long plid,
                                            long groupId,
                                            java.lang.String portletId,
                                            java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
                                            java.util.Date startDate,
                                            java.util.Date endDate)
                                     throws com.liferay.portal.PortalException,
                                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

exportCategories

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

exportComments

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

exportLocks

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

exportPortlet

protected void exportPortlet(com.liferay.portal.lar.PortletDataContext context,
                             LayoutCache layoutCache,
                             java.lang.String portletId,
                             com.liferay.portal.model.Layout layout,
                             com.liferay.portal.kernel.xml.Element parentEl,
                             long defaultUserId,
                             boolean exportPermissions,
                             boolean exportPortletArchivedSetups,
                             boolean exportPortletData,
                             boolean exportPortletSetup,
                             boolean exportPortletUserPreferences,
                             boolean exportUserPermissions)
                      throws com.liferay.portal.PortalException,
                             com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

exportPortletData

protected void exportPortletData(com.liferay.portal.lar.PortletDataContext context,
                                 com.liferay.portal.model.Portlet portlet,
                                 com.liferay.portal.model.Layout layout,
                                 javax.portlet.PortletPreferences portletPreferences,
                                 com.liferay.portal.kernel.xml.Element parentEl)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

exportPortletPreference

protected void exportPortletPreference(com.liferay.portal.lar.PortletDataContext context,
                                       long ownerId,
                                       int ownerType,
                                       boolean defaultUser,
                                       com.liferay.portal.model.PortletPreferences portletPreferences,
                                       java.lang.String portletId,
                                       long plid,
                                       com.liferay.portal.kernel.xml.Element parentEl)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

exportPortletPreferences

protected void exportPortletPreferences(com.liferay.portal.lar.PortletDataContext context,
                                        long ownerId,
                                        int ownerType,
                                        boolean defaultUser,
                                        com.liferay.portal.model.Layout layout,
                                        java.lang.String portletId,
                                        com.liferay.portal.kernel.xml.Element parentEl)
                                 throws com.liferay.portal.PortalException,
                                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

exportRatings

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

exportTags

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

getCommentsPath

protected java.lang.String getCommentsPath(com.liferay.portal.lar.PortletDataContext context,
                                           java.lang.String className,
                                           java.lang.String classPK)

getCommentsPath

protected java.lang.String getCommentsPath(com.liferay.portal.lar.PortletDataContext context,
                                           java.lang.String className,
                                           java.lang.String classPK,
                                           com.liferay.portlet.messageboards.model.MBMessage message)

getLocksPath

protected java.lang.String getLocksPath(com.liferay.portal.lar.PortletDataContext context,
                                        java.lang.String className,
                                        java.lang.String key,
                                        com.liferay.portal.model.Lock lock)

getPortletDataPath

protected java.lang.String getPortletDataPath(com.liferay.portal.lar.PortletDataContext context,
                                              java.lang.String portletId)

getPortletPreferencesPath

protected java.lang.String getPortletPreferencesPath(com.liferay.portal.lar.PortletDataContext context,
                                                     java.lang.String portletId,
                                                     long ownerId,
                                                     int ownerType,
                                                     long plid)

getRatingsPath

protected java.lang.String getRatingsPath(com.liferay.portal.lar.PortletDataContext context,
                                          java.lang.String className,
                                          java.lang.String classPK)

getRatingsPath

protected java.lang.String getRatingsPath(com.liferay.portal.lar.PortletDataContext context,
                                          java.lang.String className,
                                          java.lang.String classPK,
                                          com.liferay.portlet.ratings.model.RatingsEntry rating)