Liferay 6.0.5

com.liferay.portal.lar
Class PortletExporter

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

public class PortletExporter
extends Object


Constructor Summary
PortletExporter()
           
 
Method Summary
protected  void exportCategories(PortletDataContext context)
           
protected  void exportCategories(PortletDataContext context, Element root)
           
protected  void exportCategory(PortletDataContext context, Element vocabulariesEl, Element categoriesEl, AssetCategory assetCategory)
           
protected  void exportCategory(PortletDataContext context, Element vocabulariesEl, Element categoryEls, long assetCategoryId)
           
protected  void exportComments(PortletDataContext context, Element parentEl)
           
protected  void exportLocks(PortletDataContext context, Element parentEl)
           
protected  void exportPortlet(PortletDataContext context, LayoutCache layoutCache, String portletId, Layout layout, Element parentEl, long defaultUserId, boolean exportPermissions, boolean exportPortletArchivedSetups, boolean exportPortletData, boolean exportPortletSetup, boolean exportPortletUserPreferences, boolean exportUserPermissions)
           
protected  void exportPortletData(PortletDataContext context, Portlet portlet, Layout layout, PortletPreferences jxPreferences, Element parentEl)
           
 byte[] exportPortletInfo(long plid, long groupId, String portletId, Map<String,String[]> parameterMap, Date startDate, Date endDate)
           
 File exportPortletInfoAsFile(long plid, long groupId, String portletId, Map<String,String[]> parameterMap, Date startDate, Date endDate)
           
protected  void exportPortletPreference(PortletDataContext context, long ownerId, int ownerType, boolean defaultUser, PortletPreferences portletPreferences, String portletId, long plid, Element parentEl)
           
protected  void exportPortletPreferences(PortletDataContext context, long ownerId, int ownerType, boolean defaultUser, Layout layout, String portletId, Element parentEl)
           
protected  void exportRatings(PortletDataContext context, Element parentEl)
           
protected  void exportTags(PortletDataContext context, Element parentEl)
           
protected  void exportVocabulary(PortletDataContext context, Element vocabulariesEl, AssetVocabulary assetVocabulary)
           
protected  void exportVocabulary(PortletDataContext context, Element vocabulariesEl, long assetVocabularyId)
           
protected  String getCategoryPath(PortletDataContext context, long assetCategoryId)
           
protected  String getCommentsPath(PortletDataContext context, String className, String classPK)
           
protected  String getCommentsPath(PortletDataContext context, String className, String classPK, MBMessage message)
           
protected  String getLocksPath(PortletDataContext context, String className, String key, Lock lock)
           
protected  String getPortletDataPath(PortletDataContext context, String portletId)
           
protected  String getPortletPreferencesPath(PortletDataContext context, String portletId, long ownerId, int ownerType, long plid)
           
protected  String getRatingsPath(PortletDataContext context, String className, String classPK)
           
protected  String getRatingsPath(PortletDataContext context, String className, String classPK, RatingsEntry ratingsEntry)
           
protected  String getVocabulariesPath(PortletDataContext context, long assetVocabularyId)
           
protected  void updateLastPublishDate(Layout layout, String portletId, long lastPublishDate)
           
 
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,
                                String portletId,
                                Map<String,String[]> parameterMap,
                                Date startDate,
                                Date endDate)
                         throws Exception
Throws:
Exception

exportPortletInfoAsFile

public File exportPortletInfoAsFile(long plid,
                                    long groupId,
                                    String portletId,
                                    Map<String,String[]> parameterMap,
                                    Date startDate,
                                    Date endDate)
                             throws Exception
Throws:
Exception

exportCategories

protected void exportCategories(PortletDataContext context)
                         throws SystemException
Throws:
SystemException

exportCategories

protected void exportCategories(PortletDataContext context,
                                Element root)
                         throws SystemException
Throws:
SystemException

exportCategory

protected void exportCategory(PortletDataContext context,
                              Element vocabulariesEl,
                              Element categoryEls,
                              long assetCategoryId)
                       throws Exception
Throws:
Exception

exportCategory

protected void exportCategory(PortletDataContext context,
                              Element vocabulariesEl,
                              Element categoriesEl,
                              AssetCategory assetCategory)
                       throws Exception
Throws:
Exception

exportComments

protected void exportComments(PortletDataContext context,
                              Element parentEl)
                       throws SystemException
Throws:
SystemException

exportLocks

protected void exportLocks(PortletDataContext context,
                           Element parentEl)
                    throws SystemException
Throws:
SystemException

exportPortlet

protected void exportPortlet(PortletDataContext context,
                             LayoutCache layoutCache,
                             String portletId,
                             Layout layout,
                             Element parentEl,
                             long defaultUserId,
                             boolean exportPermissions,
                             boolean exportPortletArchivedSetups,
                             boolean exportPortletData,
                             boolean exportPortletSetup,
                             boolean exportPortletUserPreferences,
                             boolean exportUserPermissions)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

exportPortletData

protected void exportPortletData(PortletDataContext context,
                                 Portlet portlet,
                                 Layout layout,
                                 PortletPreferences jxPreferences,
                                 Element parentEl)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

exportPortletPreference

protected void exportPortletPreference(PortletDataContext context,
                                       long ownerId,
                                       int ownerType,
                                       boolean defaultUser,
                                       PortletPreferences portletPreferences,
                                       String portletId,
                                       long plid,
                                       Element parentEl)
                                throws SystemException
Throws:
SystemException

exportPortletPreferences

protected void exportPortletPreferences(PortletDataContext context,
                                        long ownerId,
                                        int ownerType,
                                        boolean defaultUser,
                                        Layout layout,
                                        String portletId,
                                        Element parentEl)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

exportRatings

protected void exportRatings(PortletDataContext context,
                             Element parentEl)
                      throws SystemException
Throws:
SystemException

exportTags

protected void exportTags(PortletDataContext context,
                          Element parentEl)
                   throws SystemException
Throws:
SystemException

exportVocabulary

protected void exportVocabulary(PortletDataContext context,
                                Element vocabulariesEl,
                                long assetVocabularyId)
                         throws Exception
Throws:
Exception

exportVocabulary

protected void exportVocabulary(PortletDataContext context,
                                Element vocabulariesEl,
                                AssetVocabulary assetVocabulary)
                         throws Exception
Throws:
Exception

getCategoryPath

protected String getCategoryPath(PortletDataContext context,
                                 long assetCategoryId)

getCommentsPath

protected String getCommentsPath(PortletDataContext context,
                                 String className,
                                 String classPK)

getCommentsPath

protected String getCommentsPath(PortletDataContext context,
                                 String className,
                                 String classPK,
                                 MBMessage message)

getLocksPath

protected String getLocksPath(PortletDataContext context,
                              String className,
                              String key,
                              Lock lock)

getPortletDataPath

protected String getPortletDataPath(PortletDataContext context,
                                    String portletId)

getPortletPreferencesPath

protected String getPortletPreferencesPath(PortletDataContext context,
                                           String portletId,
                                           long ownerId,
                                           int ownerType,
                                           long plid)

getRatingsPath

protected String getRatingsPath(PortletDataContext context,
                                String className,
                                String classPK)

getRatingsPath

protected String getRatingsPath(PortletDataContext context,
                                String className,
                                String classPK,
                                RatingsEntry ratingsEntry)

getVocabulariesPath

protected String getVocabulariesPath(PortletDataContext context,
                                     long assetVocabularyId)

updateLastPublishDate

protected void updateLastPublishDate(Layout layout,
                                     String portletId,
                                     long lastPublishDate)
                              throws Exception
Throws:
Exception

Liferay 6.0.5