Liferay 6.2-ce-ga5

com.liferay.portlet.layoutsadmin.lar
Class LayoutStagedModelDataHandler

java.lang.Object
  extended by com.liferay.portal.kernel.lar.BaseStagedModelDataHandler<Layout>
      extended by com.liferay.portlet.layoutsadmin.lar.LayoutStagedModelDataHandler
All Implemented Interfaces:
StagedModelDataHandler<Layout>

public class LayoutStagedModelDataHandler
extends BaseStagedModelDataHandler<Layout>


Field Summary
static String[] CLASS_NAMES
           
 
Fields inherited from class com.liferay.portal.kernel.lar.BaseStagedModelDataHandler
sessionFactory, STAGING_HIBERNATE_CACHE_FLUSH_FREQUENCY
 
Constructor Summary
LayoutStagedModelDataHandler()
           
 
Method Summary
protected  String[] appendPortletIds(String[] portletIds, String[] newPortletIds, String portletsMergeMode)
           
protected  void deleteMissingLayoutFriendlyURLs(PortletDataContext portletDataContext, Layout layout)
           
 void deleteStagedModel(String uuid, long groupId, String className, String extraData)
           
protected  void doExportStagedModel(PortletDataContext portletDataContext, Layout layout)
           
protected  void doImportStagedModel(PortletDataContext portletDataContext, Layout layout)
           
protected  void exportJournalArticle(PortletDataContext portletDataContext, Layout layout)
           
protected  void exportLayoutIconImage(PortletDataContext portletDataContext, Layout layout, Element layoutElement)
           
protected  void exportLinkedLayout(PortletDataContext portletDataContext, Layout layout, Element layoutElement)
           
protected  void exportTheme(PortletDataContext portletDataContext, Layout layout)
           
protected  Object[] extractFriendlyURLInfo(Layout layout)
           
protected  void fixExportTypeSettings(Layout layout)
           
protected  void fixImportTypeSettings(Layout layout)
           
 String[] getClassNames()
           
 String getDisplayName(Layout layout)
           
protected  String getUniqueFriendlyURL(PortletDataContext portletDataContext, Layout existingLayout, String friendlyURL)
           
protected  void importJournalArticle(PortletDataContext portletDataContext, Layout layout)
           
protected  void importLayoutFriendlyURLs(PortletDataContext portletDataContext, Layout layout, Layout importedLayout)
           
protected  void importLayoutIconImage(PortletDataContext portletDataContext, Layout importedLayout, Element layoutElement)
           
protected  void importLinkedLayout(PortletDataContext portletDataContext, Layout layout, Layout importedLayout, Element layoutElement, Map<Long,Layout> newLayoutsMap)
           
protected  void importTheme(PortletDataContext portletDataContext, Layout layout, Layout importedLayout)
           
protected  void initNewLayoutPermissions(long companyId, long groupId, long userId, Layout layout, Layout importedLayout, boolean privateLayout)
           
protected  void mergePortlets(Layout layout, String newTypeSettings, String portletsMergeMode)
           
protected  void populateElementLayoutMetadata(Element layoutElement, Layout layout)
           
protected  void removePortletFromLayoutTypePortlet(String portletId, LayoutTypePortlet layoutTypePortlet)
           
protected  void updateTypeSettings(PortletDataContext portletDataContext, Layout importedLayout, Layout layout)
           
 
Methods inherited from class com.liferay.portal.kernel.lar.BaseStagedModelDataHandler
countStagedModel, doImportCompanyStagedModel, doRestoreStagedModel, exportStagedModel, getExportableStatuses, getReferenceAttributes, importCompanyStagedModel, importCompanyStagedModel, importStagedModel, maintainSessionCache, restoreStagedModel, validateExport, validateMissingReference, validateReference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_NAMES

public static final String[] CLASS_NAMES
Constructor Detail

LayoutStagedModelDataHandler

public LayoutStagedModelDataHandler()
Method Detail

deleteStagedModel

public void deleteStagedModel(String uuid,
                              long groupId,
                              String className,
                              String extraData)
                       throws PortalException,
                              SystemException
Specified by:
deleteStagedModel in interface StagedModelDataHandler<Layout>
Specified by:
deleteStagedModel in class BaseStagedModelDataHandler<Layout>
Throws:
PortalException
SystemException

getClassNames

public String[] getClassNames()
Specified by:
getClassNames in interface StagedModelDataHandler<Layout>
Specified by:
getClassNames in class BaseStagedModelDataHandler<Layout>

getDisplayName

public String getDisplayName(Layout layout)
Specified by:
getDisplayName in interface StagedModelDataHandler<Layout>
Overrides:
getDisplayName in class BaseStagedModelDataHandler<Layout>

appendPortletIds

protected String[] appendPortletIds(String[] portletIds,
                                    String[] newPortletIds,
                                    String portletsMergeMode)

deleteMissingLayoutFriendlyURLs

protected void deleteMissingLayoutFriendlyURLs(PortletDataContext portletDataContext,
                                               Layout layout)
                                        throws SystemException
Throws:
SystemException

doExportStagedModel

protected void doExportStagedModel(PortletDataContext portletDataContext,
                                   Layout layout)
                            throws Exception
Specified by:
doExportStagedModel in class BaseStagedModelDataHandler<Layout>
Throws:
Exception

doImportStagedModel

protected void doImportStagedModel(PortletDataContext portletDataContext,
                                   Layout layout)
                            throws Exception
Specified by:
doImportStagedModel in class BaseStagedModelDataHandler<Layout>
Throws:
Exception

exportJournalArticle

protected void exportJournalArticle(PortletDataContext portletDataContext,
                                    Layout layout)
                             throws Exception
Throws:
Exception

exportLayoutIconImage

protected void exportLayoutIconImage(PortletDataContext portletDataContext,
                                     Layout layout,
                                     Element layoutElement)
                              throws Exception
Throws:
Exception

exportLinkedLayout

protected void exportLinkedLayout(PortletDataContext portletDataContext,
                                  Layout layout,
                                  Element layoutElement)
                           throws Exception
Throws:
Exception

exportTheme

protected void exportTheme(PortletDataContext portletDataContext,
                           Layout layout)
                    throws Exception
Throws:
Exception

extractFriendlyURLInfo

protected Object[] extractFriendlyURLInfo(Layout layout)

fixExportTypeSettings

protected void fixExportTypeSettings(Layout layout)
                              throws Exception
Throws:
Exception

fixImportTypeSettings

protected void fixImportTypeSettings(Layout layout)
                              throws Exception
Throws:
Exception

getUniqueFriendlyURL

protected String getUniqueFriendlyURL(PortletDataContext portletDataContext,
                                      Layout existingLayout,
                                      String friendlyURL)
                               throws SystemException
Throws:
SystemException

importJournalArticle

protected void importJournalArticle(PortletDataContext portletDataContext,
                                    Layout layout)
                             throws Exception
Throws:
Exception

importLayoutFriendlyURLs

protected void importLayoutFriendlyURLs(PortletDataContext portletDataContext,
                                        Layout layout,
                                        Layout importedLayout)
                                 throws Exception
Throws:
Exception

importLayoutIconImage

protected void importLayoutIconImage(PortletDataContext portletDataContext,
                                     Layout importedLayout,
                                     Element layoutElement)
                              throws Exception
Throws:
Exception

importLinkedLayout

protected void importLinkedLayout(PortletDataContext portletDataContext,
                                  Layout layout,
                                  Layout importedLayout,
                                  Element layoutElement,
                                  Map<Long,Layout> newLayoutsMap)
                           throws Exception
Throws:
Exception

importTheme

protected void importTheme(PortletDataContext portletDataContext,
                           Layout layout,
                           Layout importedLayout)
                    throws Exception
Throws:
Exception

initNewLayoutPermissions

protected void initNewLayoutPermissions(long companyId,
                                        long groupId,
                                        long userId,
                                        Layout layout,
                                        Layout importedLayout,
                                        boolean privateLayout)
                                 throws Exception
Throws:
Exception

mergePortlets

protected void mergePortlets(Layout layout,
                             String newTypeSettings,
                             String portletsMergeMode)

populateElementLayoutMetadata

protected void populateElementLayoutMetadata(Element layoutElement,
                                             Layout layout)
                                      throws Exception
Throws:
Exception

removePortletFromLayoutTypePortlet

protected void removePortletFromLayoutTypePortlet(String portletId,
                                                  LayoutTypePortlet layoutTypePortlet)

updateTypeSettings

protected void updateTypeSettings(PortletDataContext portletDataContext,
                                  Layout importedLayout,
                                  Layout layout)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

Liferay 6.2-ce-ga5