Liferay 6.2-ce-ga5

com.liferay.portlet.dynamicdatamapping.lar
Class DDMStructureStagedModelDataHandler

java.lang.Object
  extended by com.liferay.portal.kernel.lar.BaseStagedModelDataHandler<DDMStructure>
      extended by com.liferay.portlet.dynamicdatamapping.lar.DDMStructureStagedModelDataHandler
All Implemented Interfaces:
StagedModelDataHandler<DDMStructure>

public class DDMStructureStagedModelDataHandler
extends BaseStagedModelDataHandler<DDMStructure>


Field Summary
static String[] CLASS_NAMES
           
 
Fields inherited from class com.liferay.portal.kernel.lar.BaseStagedModelDataHandler
sessionFactory, STAGING_HIBERNATE_CACHE_FLUSH_FREQUENCY
 
Constructor Summary
DDMStructureStagedModelDataHandler()
           
 
Method Summary
 void deleteStagedModel(String uuid, long groupId, String className, String extraData)
           
protected  void doExportStagedModel(PortletDataContext portletDataContext, DDMStructure structure)
           
protected  void doImportStagedModel(PortletDataContext portletDataContext, DDMStructure structure)
           
 String[] getClassNames()
           
 String getDisplayName(DDMStructure structure)
           
protected  DDMStructure getExistingStructure(String uuid, long groupId, long classNameId, String structureKey, boolean preloaded)
           
 Map<String,String> getReferenceAttributes(PortletDataContext portletDataContext, DDMStructure structure)
           
 void importCompanyStagedModel(PortletDataContext portletDataContext, Element element)
           
protected  boolean isModifiedStructure(DDMStructure existingStructure, DDMStructure structure)
           
protected  void prepareLanguagesForImport(DDMStructure structure)
           
 boolean validateReference(PortletDataContext portletDataContext, Element referenceElement)
           
 
Methods inherited from class com.liferay.portal.kernel.lar.BaseStagedModelDataHandler
countStagedModel, doImportCompanyStagedModel, doRestoreStagedModel, exportStagedModel, getExportableStatuses, importCompanyStagedModel, importStagedModel, maintainSessionCache, restoreStagedModel, validateExport, validateMissingReference
 
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

DDMStructureStagedModelDataHandler

public DDMStructureStagedModelDataHandler()
Method Detail

deleteStagedModel

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

getClassNames

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

getDisplayName

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

getReferenceAttributes

public Map<String,String> getReferenceAttributes(PortletDataContext portletDataContext,
                                                 DDMStructure structure)
Specified by:
getReferenceAttributes in interface StagedModelDataHandler<DDMStructure>
Overrides:
getReferenceAttributes in class BaseStagedModelDataHandler<DDMStructure>

importCompanyStagedModel

public void importCompanyStagedModel(PortletDataContext portletDataContext,
                                     Element element)
                              throws PortletDataException
Specified by:
importCompanyStagedModel in interface StagedModelDataHandler<DDMStructure>
Overrides:
importCompanyStagedModel in class BaseStagedModelDataHandler<DDMStructure>
Throws:
PortletDataException

validateReference

public boolean validateReference(PortletDataContext portletDataContext,
                                 Element referenceElement)
Specified by:
validateReference in interface StagedModelDataHandler<DDMStructure>
Overrides:
validateReference in class BaseStagedModelDataHandler<DDMStructure>

doExportStagedModel

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

doImportStagedModel

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

isModifiedStructure

protected boolean isModifiedStructure(DDMStructure existingStructure,
                                      DDMStructure structure)

getExistingStructure

protected DDMStructure getExistingStructure(String uuid,
                                            long groupId,
                                            long classNameId,
                                            String structureKey,
                                            boolean preloaded)
                                     throws Exception
Throws:
Exception

prepareLanguagesForImport

protected void prepareLanguagesForImport(DDMStructure structure)
                                  throws PortalException
Throws:
PortalException

Liferay 6.2-ce-ga5