public abstract class BaseStagedModelDataHandler<T extends StagedModel> extends Object implements StagedModelDataHandler<T>
Constructor and Description |
---|
BaseStagedModelDataHandler() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
countStagedModel(PortletDataContext portletDataContext,
T stagedModel) |
abstract void |
deleteStagedModel(String uuid,
long groupId,
String className,
String extraData) |
abstract void |
deleteStagedModel(T stagedModel) |
protected abstract void |
doExportStagedModel(PortletDataContext portletDataContext,
T stagedModel) |
protected void |
doImportMissingReference(PortletDataContext portletDataContext,
Element referenceElement) |
protected void |
doImportMissingReference(PortletDataContext portletDataContext,
String uuid,
long groupId,
long classPK) |
protected abstract void |
doImportStagedModel(PortletDataContext portletDataContext,
T stagedModel) |
protected void |
doRestoreStagedModel(PortletDataContext portletDataContext,
T stagedModel) |
protected void |
exportAssetCategories(PortletDataContext portletDataContext,
T stagedModel) |
protected void |
exportAssetTags(PortletDataContext portletDataContext,
T stagedModel) |
protected void |
exportComments(PortletDataContext portletDataContext,
T stagedModel) |
protected void |
exportRatings(PortletDataContext portletDataContext,
T stagedModel) |
void |
exportStagedModel(PortletDataContext portletDataContext,
T stagedModel) |
T |
fetchMissingReference(String uuid,
long groupId) |
T |
fetchStagedModelByUuidAndGroupId(String uuid,
long groupId) |
abstract List<T> |
fetchStagedModelsByUuidAndCompanyId(String uuid,
long companyId) |
abstract String[] |
getClassNames() |
String |
getDisplayName(T stagedModel) |
int[] |
getExportableStatuses() |
protected int |
getProcessFlag() |
Map<String,String> |
getReferenceAttributes(PortletDataContext portletDataContext,
T stagedModel) |
protected void |
importAssetCategories(PortletDataContext portletDataContext,
T stagedModel) |
protected void |
importAssetTags(PortletDataContext portletDataContext,
T stagedModel) |
protected void |
importComments(PortletDataContext portletDataContext,
T stagedModel) |
void |
importCompanyStagedModel(PortletDataContext portletDataContext,
Element referenceElement)
Deprecated.
As of 7.0.0, replaced by
importMissingReference(PortletDataContext, Element) |
void |
importCompanyStagedModel(PortletDataContext portletDataContext,
String uuid,
long classPK)
Deprecated.
As of 7.0.0, replaced by
importMissingReference(PortletDataContext, String, long,
long) |
protected void |
importMissingGroupReference(PortletDataContext portletDataContext,
Element referenceElement) |
void |
importMissingReference(PortletDataContext portletDataContext,
Element referenceElement) |
void |
importMissingReference(PortletDataContext portletDataContext,
String uuid,
long groupId,
long classPK) |
protected void |
importRatings(PortletDataContext portletDataContext,
T stagedModel) |
protected void |
importReferenceStagedModels(PortletDataContext portletDataContext,
T stagedModel) |
void |
importStagedModel(PortletDataContext portletDataContext,
T stagedModel) |
protected boolean |
isStagedModelInTrash(T stagedModel) |
void |
restoreStagedModel(PortletDataContext portletDataContext,
T stagedModel) |
protected void |
validateExport(PortletDataContext portletDataContext,
T stagedModel) |
protected boolean |
validateMissingGroupReference(PortletDataContext portletDataContext,
Element referenceElement) |
protected boolean |
validateMissingReference(String uuid,
long groupId) |
boolean |
validateReference(PortletDataContext portletDataContext,
Element referenceElement) |
public abstract void deleteStagedModel(String uuid, long groupId, String className, String extraData) throws PortalException
deleteStagedModel
in interface StagedModelDataHandler<T extends StagedModel>
PortalException
public abstract void deleteStagedModel(T stagedModel) throws PortalException
deleteStagedModel
in interface StagedModelDataHandler<T extends StagedModel>
PortalException
public void exportStagedModel(PortletDataContext portletDataContext, T stagedModel) throws PortletDataException
exportStagedModel
in interface StagedModelDataHandler<T extends StagedModel>
PortletDataException
public T fetchMissingReference(String uuid, long groupId)
fetchMissingReference
in interface StagedModelDataHandler<T extends StagedModel>
public T fetchStagedModelByUuidAndGroupId(String uuid, long groupId)
fetchStagedModelByUuidAndGroupId
in interface StagedModelDataHandler<T extends StagedModel>
public abstract List<T> fetchStagedModelsByUuidAndCompanyId(String uuid, long companyId)
fetchStagedModelsByUuidAndCompanyId
in interface StagedModelDataHandler<T extends StagedModel>
public abstract String[] getClassNames()
getClassNames
in interface StagedModelDataHandler<T extends StagedModel>
public String getDisplayName(T stagedModel)
getDisplayName
in interface StagedModelDataHandler<T extends StagedModel>
public int[] getExportableStatuses()
getExportableStatuses
in interface StagedModelDataHandler<T extends StagedModel>
public Map<String,String> getReferenceAttributes(PortletDataContext portletDataContext, T stagedModel)
getReferenceAttributes
in interface StagedModelDataHandler<T extends StagedModel>
@Deprecated public void importCompanyStagedModel(PortletDataContext portletDataContext, Element referenceElement) throws PortletDataException
importMissingReference(PortletDataContext, Element)
importCompanyStagedModel
in interface StagedModelDataHandler<T extends StagedModel>
PortletDataException
@Deprecated public void importCompanyStagedModel(PortletDataContext portletDataContext, String uuid, long classPK) throws PortletDataException
importMissingReference(PortletDataContext, String, long,
long)
importCompanyStagedModel
in interface StagedModelDataHandler<T extends StagedModel>
PortletDataException
public void importMissingReference(PortletDataContext portletDataContext, Element referenceElement) throws PortletDataException
importMissingReference
in interface StagedModelDataHandler<T extends StagedModel>
PortletDataException
public void importMissingReference(PortletDataContext portletDataContext, String uuid, long groupId, long classPK) throws PortletDataException
importMissingReference
in interface StagedModelDataHandler<T extends StagedModel>
PortletDataException
public void importStagedModel(PortletDataContext portletDataContext, T stagedModel) throws PortletDataException
importStagedModel
in interface StagedModelDataHandler<T extends StagedModel>
PortletDataException
public void restoreStagedModel(PortletDataContext portletDataContext, T stagedModel) throws PortletDataException
restoreStagedModel
in interface StagedModelDataHandler<T extends StagedModel>
PortletDataException
public boolean validateReference(PortletDataContext portletDataContext, Element referenceElement)
validateReference
in interface StagedModelDataHandler<T extends StagedModel>
protected boolean countStagedModel(PortletDataContext portletDataContext, T stagedModel)
protected abstract void doExportStagedModel(PortletDataContext portletDataContext, T stagedModel) throws Exception
Exception
protected void doImportMissingReference(PortletDataContext portletDataContext, Element referenceElement) throws PortletDataException
PortletDataException
protected void doImportMissingReference(PortletDataContext portletDataContext, String uuid, long groupId, long classPK) throws Exception
Exception
protected abstract void doImportStagedModel(PortletDataContext portletDataContext, T stagedModel) throws Exception
Exception
protected void doRestoreStagedModel(PortletDataContext portletDataContext, T stagedModel) throws Exception
Exception
protected void exportAssetCategories(PortletDataContext portletDataContext, T stagedModel) throws PortletDataException
PortletDataException
protected void exportAssetTags(PortletDataContext portletDataContext, T stagedModel) throws PortletDataException
PortletDataException
protected void exportComments(PortletDataContext portletDataContext, T stagedModel) throws PortletDataException
PortletDataException
protected void exportRatings(PortletDataContext portletDataContext, T stagedModel) throws PortletDataException
PortletDataException
protected int getProcessFlag()
protected void importAssetCategories(PortletDataContext portletDataContext, T stagedModel) throws PortletDataException
PortletDataException
protected void importAssetTags(PortletDataContext portletDataContext, T stagedModel) throws PortletDataException
PortletDataException
protected void importComments(PortletDataContext portletDataContext, T stagedModel) throws PortalException
PortalException
protected void importMissingGroupReference(PortletDataContext portletDataContext, Element referenceElement) throws PortletDataException
PortletDataException
protected void importRatings(PortletDataContext portletDataContext, T stagedModel) throws PortalException
PortalException
protected void importReferenceStagedModels(PortletDataContext portletDataContext, T stagedModel) throws PortletDataException
PortletDataException
protected boolean isStagedModelInTrash(T stagedModel)
protected void validateExport(PortletDataContext portletDataContext, T stagedModel) throws PortletDataException
PortletDataException
protected boolean validateMissingGroupReference(PortletDataContext portletDataContext, Element referenceElement)
protected boolean validateMissingReference(String uuid, long groupId)