Liferay 7.0-ce-m3

com.liferay.portlet.documentlibrary.lar
Class FileEntryStagedModelDataHandler

java.lang.Object
  extended by com.liferay.portal.kernel.lar.BaseStagedModelDataHandler<FileEntry>
      extended by com.liferay.portlet.documentlibrary.lar.FileEntryStagedModelDataHandler
All Implemented Interfaces:
StagedModelDataHandler<FileEntry>

public class FileEntryStagedModelDataHandler
extends BaseStagedModelDataHandler<FileEntry>


Field Summary
static String[] CLASS_NAMES
           
 
Constructor Summary
FileEntryStagedModelDataHandler()
           
 
Method Summary
 void deleteStagedModel(String uuid, long groupId, String className, String extraData)
           
protected  void doExportStagedModel(PortletDataContext portletDataContext, FileEntry fileEntry)
           
protected  void doImportMissingReference(PortletDataContext portletDataContext, String uuid, long groupId, long fileEntryId)
           
protected  void doImportStagedModel(PortletDataContext portletDataContext, FileEntry fileEntry)
           
protected  void doRestoreStagedModel(PortletDataContext portletDataContext, FileEntry fileEntry)
           
protected  void exportMetaData(PortletDataContext portletDataContext, Element fileEntryElement, FileEntry fileEntry)
           
 FileEntry fetchStagedModelByUuidAndCompanyId(String uuid, long companyId)
           
 FileEntry fetchStagedModelByUuidAndGroupId(String uuid, long groupId)
           
 String[] getClassNames()
           
 String getDisplayName(FileEntry fileEntry)
           
protected  void importMetaData(PortletDataContext portletDataContext, Element fileEntryElement, FileEntry fileEntry, ServiceContext serviceContext)
           
 void importStagedModel(PortletDataContext portletDataContext, FileEntry fileEntry)
           
protected  void validateExport(PortletDataContext portletDataContext, FileEntry fileEntry)
           
 
Methods inherited from class com.liferay.portal.kernel.lar.BaseStagedModelDataHandler
countStagedModel, exportAssetCategories, exportComments, exportRatings, exportStagedModel, fetchMissingReference, getExportableStatuses, getReferenceAttributes, importAssetCategories, importComments, importCompanyStagedModel, importCompanyStagedModel, importMissingGroupReference, importMissingReference, importMissingReference, importRatings, importReferenceStagedModels, restoreStagedModel, validateMissingGroupReference, 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

FileEntryStagedModelDataHandler

public FileEntryStagedModelDataHandler()
Method Detail

deleteStagedModel

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

fetchStagedModelByUuidAndCompanyId

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

fetchStagedModelByUuidAndGroupId

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

getClassNames

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

getDisplayName

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

importStagedModel

public void importStagedModel(PortletDataContext portletDataContext,
                              FileEntry fileEntry)
                       throws PortletDataException
Specified by:
importStagedModel in interface StagedModelDataHandler<FileEntry>
Overrides:
importStagedModel in class BaseStagedModelDataHandler<FileEntry>
Throws:
PortletDataException

doExportStagedModel

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

doImportMissingReference

protected void doImportMissingReference(PortletDataContext portletDataContext,
                                        String uuid,
                                        long groupId,
                                        long fileEntryId)
                                 throws Exception
Overrides:
doImportMissingReference in class BaseStagedModelDataHandler<FileEntry>
Throws:
Exception

doImportStagedModel

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

doRestoreStagedModel

protected void doRestoreStagedModel(PortletDataContext portletDataContext,
                                    FileEntry fileEntry)
                             throws Exception
Overrides:
doRestoreStagedModel in class BaseStagedModelDataHandler<FileEntry>
Throws:
Exception

exportMetaData

protected void exportMetaData(PortletDataContext portletDataContext,
                              Element fileEntryElement,
                              FileEntry fileEntry)
                       throws Exception
Throws:
Exception

importMetaData

protected void importMetaData(PortletDataContext portletDataContext,
                              Element fileEntryElement,
                              FileEntry fileEntry,
                              ServiceContext serviceContext)
                       throws Exception
Throws:
Exception

validateExport

protected void validateExport(PortletDataContext portletDataContext,
                              FileEntry fileEntry)
                       throws PortletDataException
Overrides:
validateExport in class BaseStagedModelDataHandler<FileEntry>
Throws:
PortletDataException

Liferay 7.0-ce-m3