Liferay 7.0-ce-m6

com.liferay.portlet.asset.lar
Class AssetVocabularyStagedModelDataHandler

java.lang.Object
  extended by com.liferay.portlet.exportimport.lar.BaseStagedModelDataHandler<AssetVocabulary>
      extended by com.liferay.portlet.asset.lar.AssetVocabularyStagedModelDataHandler
All Implemented Interfaces:
StagedModelDataHandler<AssetVocabulary>

public class AssetVocabularyStagedModelDataHandler
extends BaseStagedModelDataHandler<AssetVocabulary>


Field Summary
static String[] CLASS_NAMES
           
 
Constructor Summary
AssetVocabularyStagedModelDataHandler()
           
 
Method Summary
protected  ServiceContext createServiceContext(PortletDataContext portletDataContext, AssetVocabulary vocabulary)
           
 void deleteStagedModel(AssetVocabulary vocabulary)
           
 void deleteStagedModel(String uuid, long groupId, String className, String extraData)
           
protected  void doExportStagedModel(PortletDataContext portletDataContext, AssetVocabulary vocabulary)
           
protected  void doImportMissingReference(PortletDataContext portletDataContext, String uuid, long groupId, long vocabularyId)
           
protected  void doImportStagedModel(PortletDataContext portletDataContext, AssetVocabulary vocabulary)
           
 AssetVocabulary fetchStagedModelByUuidAndGroupId(String uuid, long groupId)
           
 List<AssetVocabulary> fetchStagedModelsByUuidAndCompanyId(String uuid, long companyId)
           
 String[] getClassNames()
           
 String getDisplayName(AssetVocabulary vocabulary)
           
protected  String getVocabularyName(String uuid, long groupId, String name, int count)
           
protected  Map<Locale,String> getVocabularyTitleMap(long groupId, AssetVocabulary vocabulary, String name)
           
 
Methods inherited from class com.liferay.portlet.exportimport.lar.BaseStagedModelDataHandler
countStagedModel, doRestoreStagedModel, exportAssetCategories, exportAssetTags, exportComments, exportRatings, exportStagedModel, fetchMissingReference, getExportableStatuses, getProcessFlag, getReferenceAttributes, importAssetCategories, importAssetTags, importComments, importCompanyStagedModel, importCompanyStagedModel, importMissingGroupReference, importMissingReference, importMissingReference, importRatings, importReferenceStagedModels, importStagedModel, isStagedModelInTrash, restoreStagedModel, validateExport, 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

AssetVocabularyStagedModelDataHandler

public AssetVocabularyStagedModelDataHandler()
Method Detail

deleteStagedModel

public void deleteStagedModel(AssetVocabulary vocabulary)
                       throws PortalException
Throws:
PortalException

deleteStagedModel

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

fetchStagedModelByUuidAndGroupId

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

fetchStagedModelsByUuidAndCompanyId

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

getClassNames

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

getDisplayName

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

createServiceContext

protected ServiceContext createServiceContext(PortletDataContext portletDataContext,
                                              AssetVocabulary vocabulary)

doExportStagedModel

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

doImportMissingReference

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

doImportStagedModel

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

getVocabularyName

protected String getVocabularyName(String uuid,
                                   long groupId,
                                   String name,
                                   int count)
                            throws Exception
Throws:
Exception

getVocabularyTitleMap

protected Map<Locale,String> getVocabularyTitleMap(long groupId,
                                                   AssetVocabulary vocabulary,
                                                   String name)
                                            throws PortalException
Throws:
PortalException

Liferay 7.0-ce-m6