Liferay 6.2.0-ce-rc6

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
           
 
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  void prepareLanguagesForImport(DDMStructure structure)
           
protected  boolean validateMissingReference(String uuid, long companyId, long groupId)
           
 
Methods inherited from class com.liferay.portal.kernel.lar.BaseStagedModelDataHandler
countStagedModel, doImportCompanyStagedModel, doRestoreStagedModel, exportStagedModel, getExportableStatuses, importCompanyStagedModel, importStagedModel, restoreStagedModel, validateExport, 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

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

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

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

validateMissingReference

protected boolean validateMissingReference(String uuid,
                                           long companyId,
                                           long groupId)
                                    throws Exception
Overrides:
validateMissingReference in class BaseStagedModelDataHandler<DDMStructure>
Throws:
Exception

Liferay 6.2.0-ce-rc6