Liferay 7.0-ce-m3

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)
           
protected  DDMStructure fetchExistingStructure(String uuid, long groupId, long classNameId, String structureKey, boolean preloaded)
           
 DDMStructure fetchStagedModelByUuidAndCompanyId(String uuid, long companyId)
           
 DDMStructure fetchStagedModelByUuidAndGroupId(String uuid, long groupId)
           
 String[] getClassNames()
           
 String getDisplayName(DDMStructure structure)
           
 Map<String,String> getReferenceAttributes(PortletDataContext portletDataContext, DDMStructure structure)
           
 void importMissingReference(PortletDataContext portletDataContext, Element referenceElement)
           
 boolean validateReference(PortletDataContext portletDataContext, Element referenceElement)
           
 
Methods inherited from class com.liferay.portal.kernel.lar.BaseStagedModelDataHandler
countStagedModel, doImportMissingReference, doRestoreStagedModel, exportAssetCategories, exportComments, exportRatings, exportStagedModel, fetchMissingReference, getExportableStatuses, importAssetCategories, importComments, importCompanyStagedModel, importCompanyStagedModel, importMissingGroupReference, importMissingReference, importRatings, importReferenceStagedModels, importStagedModel, restoreStagedModel, validateExport, validateMissingGroupReference, 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
Specified by:
deleteStagedModel in interface StagedModelDataHandler<DDMStructure>
Specified by:
deleteStagedModel in class BaseStagedModelDataHandler<DDMStructure>
Throws:
PortalException

fetchStagedModelByUuidAndCompanyId

public DDMStructure fetchStagedModelByUuidAndCompanyId(String uuid,
                                                       long companyId)
Specified by:
fetchStagedModelByUuidAndCompanyId in interface StagedModelDataHandler<DDMStructure>
Specified by:
fetchStagedModelByUuidAndCompanyId in class BaseStagedModelDataHandler<DDMStructure>

fetchStagedModelByUuidAndGroupId

public DDMStructure fetchStagedModelByUuidAndGroupId(String uuid,
                                                     long groupId)
Specified by:
fetchStagedModelByUuidAndGroupId in interface StagedModelDataHandler<DDMStructure>
Overrides:
fetchStagedModelByUuidAndGroupId in class BaseStagedModelDataHandler<DDMStructure>

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>

importMissingReference

public void importMissingReference(PortletDataContext portletDataContext,
                                   Element referenceElement)
                            throws PortletDataException
Specified by:
importMissingReference in interface StagedModelDataHandler<DDMStructure>
Overrides:
importMissingReference 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

fetchExistingStructure

protected DDMStructure fetchExistingStructure(String uuid,
                                              long groupId,
                                              long classNameId,
                                              String structureKey,
                                              boolean preloaded)

Liferay 7.0-ce-m3