@ProviderType public abstract class BaseStagedModelDataHandler<T extends StagedModel> extends BaseStagedModelDataHandler<T>
| Constructor and Description |
|---|
BaseStagedModelDataHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteStagedModel(java.lang.String uuid,
long groupId,
java.lang.String className,
java.lang.String extraData)
Deletes the staged model matching the parameters.
|
void |
deleteStagedModel(T stagedModel)
Deletes the staged model.
|
void |
exportStagedModel(PortletDataContext portletDataContext,
T stagedModel)
Exports the staged model and its references.
|
T |
fetchMissingReference(java.lang.String uuid,
long groupId)
Returns a reference of the staged model.
|
T |
fetchStagedModelByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the staged model with the UUID and group.
|
java.util.List<T> |
fetchStagedModelsByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns the staged models with the UUID and company.
|
protected ExportImportContentProcessor<java.lang.String> |
getExportImportContentProcessor(java.lang.Class<T> clazz) |
protected StagedModelRepository<T> |
getStagedModelRepository() |
void |
restoreStagedModel(PortletDataContext portletDataContext,
T stagedModel)
Restores the staged model from the trash.
|
countStagedModel, doExportStagedModel, doImportMissingReference, doImportMissingReference, doImportStagedModel, doRestoreStagedModel, exportAssetCategories, exportAssetTags, exportComments, exportRatings, getClassNames, getDisplayName, getExportableStatuses, getProcessFlag, getReferenceAttributes, getSkipImportReferenceStagedModelNames, importAssetCategories, importAssetTags, importComments, importMissingGroupReference, importMissingReference, importMissingReference, importRatings, importReferenceStagedModels, importStagedModel, isSkipImportReferenceStagedModels, isStagedModelInTrash, validateExport, validateMissingGroupReference, validateMissingReference, validateReferencepublic void deleteStagedModel(java.lang.String uuid,
long groupId,
java.lang.String className,
java.lang.String extraData)
throws PortalException
StagedModelDataHandlerdeleteStagedModel in interface StagedModelDataHandler<T extends StagedModel>deleteStagedModel in class BaseStagedModelDataHandler<T extends StagedModel>uuid - the staged model's UUIDgroupId - the primary key of the entity's groupclassName - the staged model's class nameextraData - the extra data containing useful information about the
staged model. This information makes the staged model easier to
identify and fetch for deletion. It is populated when a deletion
system event is added, usually in the
*LocalServiceImpl class of the model.PortalException - if a portal exception occurredpublic void deleteStagedModel(T stagedModel) throws PortalException
StagedModelDataHandlerdeleteStagedModel in interface StagedModelDataHandler<T extends StagedModel>deleteStagedModel in class BaseStagedModelDataHandler<T extends StagedModel>stagedModel - the staged model to deletePortalException - if a portal exception occurredpublic void exportStagedModel(PortletDataContext portletDataContext, T stagedModel) throws PortletDataException
StagedModelDataHandlerBaseStagedModelDataHandler#exportStagedModel(PortletDataContext, T)
method for a reference implementation. Refrain from overriding this
method; instead, override the BaseStagedModelDataHandler#doExportStagedModel(PortletDataContext, T)
method.exportStagedModel in interface StagedModelDataHandler<T extends StagedModel>exportStagedModel in class BaseStagedModelDataHandler<T extends StagedModel>portletDataContext - the portlet data context of the current
processstagedModel - the staged model to exportPortletDataException - if a portlet data exception occurredpublic T fetchMissingReference(java.lang.String uuid, long groupId)
StagedModelDataHandlerfetchMissingReference in interface StagedModelDataHandler<T extends StagedModel>fetchMissingReference in class BaseStagedModelDataHandler<T extends StagedModel>uuid - the reference's UUIDgroupId - the primary key of the grouppublic T fetchStagedModelByUuidAndGroupId(java.lang.String uuid, long groupId)
StagedModelDataHandlerfetchStagedModelByUuidAndGroupId in interface StagedModelDataHandler<T extends StagedModel>fetchStagedModelByUuidAndGroupId in class BaseStagedModelDataHandler<T extends StagedModel>uuid - the staged model's UUIDgroupId - the primary key of the grouppublic java.util.List<T> fetchStagedModelsByUuidAndCompanyId(java.lang.String uuid, long companyId)
StagedModelDataHandlerfetchStagedModelsByUuidAndCompanyId in interface StagedModelDataHandler<T extends StagedModel>fetchStagedModelsByUuidAndCompanyId in class BaseStagedModelDataHandler<T extends StagedModel>uuid - the staged model's UUIDcompanyId - the primary key of the companypublic void restoreStagedModel(PortletDataContext portletDataContext, T stagedModel) throws PortletDataException
StagedModelDataHandlerBaseStagedModelDataHandler.restoreStagedModel(PortletDataContext,
StagedModel) method for a reference implementation. Refrain from
overriding this method; instead, override the BaseStagedModelDataHandler.doRestoreStagedModel(PortletDataContext,
StagedModel) method.restoreStagedModel in interface StagedModelDataHandler<T extends StagedModel>restoreStagedModel in class BaseStagedModelDataHandler<T extends StagedModel>portletDataContext - the portlet data context of the current
processstagedModel - the staged model to restore from the trashPortletDataException - if a portlet data exception occurredprotected ExportImportContentProcessor<java.lang.String> getExportImportContentProcessor(java.lang.Class<T> clazz)
protected StagedModelRepository<T> getStagedModelRepository()