Liferay 7.0-ce-m6

com.liferay.portlet.documentlibrary.lar
Class DLFileEntryTypeStagedModelDataHandler

java.lang.Object
  extended by com.liferay.portlet.exportimport.lar.BaseStagedModelDataHandler<DLFileEntryType>
      extended by com.liferay.portlet.documentlibrary.lar.DLFileEntryTypeStagedModelDataHandler
All Implemented Interfaces:
StagedModelDataHandler<DLFileEntryType>

public class DLFileEntryTypeStagedModelDataHandler
extends BaseStagedModelDataHandler<DLFileEntryType>


Field Summary
static String[] CLASS_NAMES
           
 
Constructor Summary
DLFileEntryTypeStagedModelDataHandler()
           
 
Method Summary
 void deleteStagedModel(DLFileEntryType fileEntryType)
           
 void deleteStagedModel(String uuid, long groupId, String className, String extraData)
           
protected  void doExportStagedModel(PortletDataContext portletDataContext, DLFileEntryType fileEntryType)
           
protected  void doImportStagedModel(PortletDataContext portletDataContext, DLFileEntryType fileEntryType)
           
protected  DLFileEntryType fetchExistingFileEntryType(String uuid, long groupId, String fileEntryTypeKey, boolean preloaded)
           
 DLFileEntryType fetchStagedModelByUuidAndGroupId(String uuid, long groupId)
           
 List<DLFileEntryType> fetchStagedModelsByUuidAndCompanyId(String uuid, long companyId)
           
 String[] getClassNames()
           
 Map<String,String> getReferenceAttributes(PortletDataContext portletDataContext, DLFileEntryType fileEntryType)
           
 void importMissingReference(PortletDataContext portletDataContext, Element referenceElement)
           
 boolean validateReference(PortletDataContext portletDataContext, Element referenceElement)
           
 
Methods inherited from class com.liferay.portlet.exportimport.lar.BaseStagedModelDataHandler
countStagedModel, doImportMissingReference, doRestoreStagedModel, exportAssetCategories, exportAssetTags, exportComments, exportRatings, exportStagedModel, fetchMissingReference, getDisplayName, getExportableStatuses, getProcessFlag, importAssetCategories, importAssetTags, importComments, importCompanyStagedModel, importCompanyStagedModel, importMissingGroupReference, importMissingReference, importRatings, importReferenceStagedModels, importStagedModel, isStagedModelInTrash, 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

DLFileEntryTypeStagedModelDataHandler

public DLFileEntryTypeStagedModelDataHandler()
Method Detail

deleteStagedModel

public void deleteStagedModel(DLFileEntryType fileEntryType)
                       throws PortalException
Throws:
PortalException

deleteStagedModel

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

fetchStagedModelByUuidAndGroupId

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

fetchStagedModelsByUuidAndCompanyId

public List<DLFileEntryType> fetchStagedModelsByUuidAndCompanyId(String uuid,
                                                                 long companyId)
Specified by:
fetchStagedModelsByUuidAndCompanyId in interface StagedModelDataHandler<DLFileEntryType>
Specified by:
fetchStagedModelsByUuidAndCompanyId in class BaseStagedModelDataHandler<DLFileEntryType>

getClassNames

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

getReferenceAttributes

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

importMissingReference

public void importMissingReference(PortletDataContext portletDataContext,
                                   Element referenceElement)
                            throws PortletDataException
Specified by:
importMissingReference in interface StagedModelDataHandler<DLFileEntryType>
Overrides:
importMissingReference in class BaseStagedModelDataHandler<DLFileEntryType>
Throws:
PortletDataException

validateReference

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

doExportStagedModel

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

doImportStagedModel

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

fetchExistingFileEntryType

protected DLFileEntryType fetchExistingFileEntryType(String uuid,
                                                     long groupId,
                                                     String fileEntryTypeKey,
                                                     boolean preloaded)

Liferay 7.0-ce-m6