com.liferay.portlet.asset.lar
Class AssetCategoryStagedModelDataHandler
java.lang.Object
com.liferay.portal.kernel.lar.BaseStagedModelDataHandler<AssetCategory>
com.liferay.portlet.asset.lar.AssetCategoryStagedModelDataHandler
- All Implemented Interfaces:
- StagedModelDataHandler<AssetCategory>
public class AssetCategoryStagedModelDataHandler
- extends BaseStagedModelDataHandler<AssetCategory>
|
Method Summary |
protected ServiceContext |
createServiceContext(PortletDataContext portletDataContext,
AssetCategory category)
|
void |
deleteStagedModel(String uuid,
long groupId,
String className,
String extraData)
|
protected void |
doExportStagedModel(PortletDataContext portletDataContext,
AssetCategory category)
|
protected void |
doImportMissingReference(PortletDataContext portletDataContext,
String uuid,
long groupId,
long categoryId)
|
protected void |
doImportStagedModel(PortletDataContext portletDataContext,
AssetCategory category)
|
AssetCategory |
fetchStagedModelByUuidAndCompanyId(String uuid,
long companyId)
|
AssetCategory |
fetchStagedModelByUuidAndGroupId(String uuid,
long groupId)
|
protected String |
getCategoryName(String uuid,
long groupId,
long parentCategoryId,
String name,
long vocabularyId,
int count)
|
protected Map<Locale,String> |
getCategoryTitleMap(long groupId,
AssetCategory category,
String name)
|
String[] |
getClassNames()
|
String |
getDisplayName(AssetCategory category)
|
| Methods inherited from class com.liferay.portal.kernel.lar.BaseStagedModelDataHandler |
countStagedModel, doRestoreStagedModel, exportAssetCategories, exportComments, exportRatings, exportStagedModel, fetchMissingReference, getExportableStatuses, getReferenceAttributes, importAssetCategories, importComments, importCompanyStagedModel, importCompanyStagedModel, importMissingGroupReference, importMissingReference, importMissingReference, importRatings, importReferenceStagedModels, importStagedModel, restoreStagedModel, validateExport, validateMissingGroupReference, validateMissingReference, validateReference |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLASS_NAMES
public static final String[] CLASS_NAMES
AssetCategoryStagedModelDataHandler
public AssetCategoryStagedModelDataHandler()
deleteStagedModel
public void deleteStagedModel(String uuid,
long groupId,
String className,
String extraData)
- Specified by:
deleteStagedModel in interface StagedModelDataHandler<AssetCategory>- Specified by:
deleteStagedModel in class BaseStagedModelDataHandler<AssetCategory>
fetchStagedModelByUuidAndCompanyId
public AssetCategory fetchStagedModelByUuidAndCompanyId(String uuid,
long companyId)
- Specified by:
fetchStagedModelByUuidAndCompanyId in interface StagedModelDataHandler<AssetCategory>- Specified by:
fetchStagedModelByUuidAndCompanyId in class BaseStagedModelDataHandler<AssetCategory>
fetchStagedModelByUuidAndGroupId
public AssetCategory fetchStagedModelByUuidAndGroupId(String uuid,
long groupId)
- Specified by:
fetchStagedModelByUuidAndGroupId in interface StagedModelDataHandler<AssetCategory>- Overrides:
fetchStagedModelByUuidAndGroupId in class BaseStagedModelDataHandler<AssetCategory>
getClassNames
public String[] getClassNames()
- Specified by:
getClassNames in interface StagedModelDataHandler<AssetCategory>- Specified by:
getClassNames in class BaseStagedModelDataHandler<AssetCategory>
getDisplayName
public String getDisplayName(AssetCategory category)
- Specified by:
getDisplayName in interface StagedModelDataHandler<AssetCategory>- Overrides:
getDisplayName in class BaseStagedModelDataHandler<AssetCategory>
createServiceContext
protected ServiceContext createServiceContext(PortletDataContext portletDataContext,
AssetCategory category)
doExportStagedModel
protected void doExportStagedModel(PortletDataContext portletDataContext,
AssetCategory category)
throws Exception
- Specified by:
doExportStagedModel in class BaseStagedModelDataHandler<AssetCategory>
- Throws:
Exception
doImportMissingReference
protected void doImportMissingReference(PortletDataContext portletDataContext,
String uuid,
long groupId,
long categoryId)
throws Exception
- Overrides:
doImportMissingReference in class BaseStagedModelDataHandler<AssetCategory>
- Throws:
Exception
doImportStagedModel
protected void doImportStagedModel(PortletDataContext portletDataContext,
AssetCategory category)
throws Exception
- Specified by:
doImportStagedModel in class BaseStagedModelDataHandler<AssetCategory>
- Throws:
Exception
getCategoryName
protected String getCategoryName(String uuid,
long groupId,
long parentCategoryId,
String name,
long vocabularyId,
int count)
throws Exception
- Throws:
Exception
getCategoryTitleMap
protected Map<Locale,String> getCategoryTitleMap(long groupId,
AssetCategory category,
String name)
throws PortalException
- Throws:
PortalException