com.liferay.portlet.exportimport.lar
Class BaseStagedModelDataHandler<T extends StagedModel>
java.lang.Object
com.liferay.portlet.exportimport.lar.BaseStagedModelDataHandler<T>
- All Implemented Interfaces:
- StagedModelDataHandler<T>
public abstract class BaseStagedModelDataHandler<T extends StagedModel>
- extends Object
- implements StagedModelDataHandler<T>
|
Method Summary |
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseStagedModelDataHandler
public BaseStagedModelDataHandler()
deleteStagedModel
public abstract void deleteStagedModel(String uuid,
long groupId,
String className,
String extraData)
throws PortalException
- Specified by:
deleteStagedModel in interface StagedModelDataHandler<T extends StagedModel>
- Throws:
PortalException
deleteStagedModel
public abstract void deleteStagedModel(T stagedModel)
throws PortalException
- Specified by:
deleteStagedModel in interface StagedModelDataHandler<T extends StagedModel>
- Throws:
PortalException
exportStagedModel
public void exportStagedModel(PortletDataContext portletDataContext,
T stagedModel)
throws PortletDataException
- Specified by:
exportStagedModel in interface StagedModelDataHandler<T extends StagedModel>
- Throws:
PortletDataException
fetchMissingReference
public T fetchMissingReference(String uuid,
long groupId)
- Specified by:
fetchMissingReference in interface StagedModelDataHandler<T extends StagedModel>
fetchStagedModelByUuidAndGroupId
public T fetchStagedModelByUuidAndGroupId(String uuid,
long groupId)
- Specified by:
fetchStagedModelByUuidAndGroupId in interface StagedModelDataHandler<T extends StagedModel>
fetchStagedModelsByUuidAndCompanyId
public abstract List<T> fetchStagedModelsByUuidAndCompanyId(String uuid,
long companyId)
- Specified by:
fetchStagedModelsByUuidAndCompanyId in interface StagedModelDataHandler<T extends StagedModel>
getClassNames
public abstract String[] getClassNames()
- Specified by:
getClassNames in interface StagedModelDataHandler<T extends StagedModel>
getDisplayName
public String getDisplayName(T stagedModel)
- Specified by:
getDisplayName in interface StagedModelDataHandler<T extends StagedModel>
getExportableStatuses
public int[] getExportableStatuses()
- Specified by:
getExportableStatuses in interface StagedModelDataHandler<T extends StagedModel>
getReferenceAttributes
public Map<String,String> getReferenceAttributes(PortletDataContext portletDataContext,
T stagedModel)
- Specified by:
getReferenceAttributes in interface StagedModelDataHandler<T extends StagedModel>
importCompanyStagedModel
@Deprecated
public void importCompanyStagedModel(PortletDataContext portletDataContext,
Element referenceElement)
throws PortletDataException
- Deprecated. As of 7.0.0, replaced by
importMissingReference(PortletDataContext, Element)
- Specified by:
importCompanyStagedModel in interface StagedModelDataHandler<T extends StagedModel>
- Throws:
PortletDataException
importCompanyStagedModel
@Deprecated
public void importCompanyStagedModel(PortletDataContext portletDataContext,
String uuid,
long classPK)
throws PortletDataException
- Deprecated. As of 7.0.0, replaced by
importMissingReference(PortletDataContext, String, long,
long)
- Specified by:
importCompanyStagedModel in interface StagedModelDataHandler<T extends StagedModel>
- Throws:
PortletDataException
importMissingReference
public void importMissingReference(PortletDataContext portletDataContext,
Element referenceElement)
throws PortletDataException
- Specified by:
importMissingReference in interface StagedModelDataHandler<T extends StagedModel>
- Throws:
PortletDataException
importMissingReference
public void importMissingReference(PortletDataContext portletDataContext,
String uuid,
long groupId,
long classPK)
throws PortletDataException
- Specified by:
importMissingReference in interface StagedModelDataHandler<T extends StagedModel>
- Throws:
PortletDataException
importStagedModel
public void importStagedModel(PortletDataContext portletDataContext,
T stagedModel)
throws PortletDataException
- Specified by:
importStagedModel in interface StagedModelDataHandler<T extends StagedModel>
- Throws:
PortletDataException
restoreStagedModel
public void restoreStagedModel(PortletDataContext portletDataContext,
T stagedModel)
throws PortletDataException
- Specified by:
restoreStagedModel in interface StagedModelDataHandler<T extends StagedModel>
- Throws:
PortletDataException
validateReference
public boolean validateReference(PortletDataContext portletDataContext,
Element referenceElement)
- Specified by:
validateReference in interface StagedModelDataHandler<T extends StagedModel>
countStagedModel
protected boolean countStagedModel(PortletDataContext portletDataContext,
T stagedModel)
doExportStagedModel
protected abstract void doExportStagedModel(PortletDataContext portletDataContext,
T stagedModel)
throws Exception
- Throws:
Exception
doImportMissingReference
protected void doImportMissingReference(PortletDataContext portletDataContext,
Element referenceElement)
throws PortletDataException
- Throws:
PortletDataException
doImportMissingReference
protected void doImportMissingReference(PortletDataContext portletDataContext,
String uuid,
long groupId,
long classPK)
throws Exception
- Throws:
Exception
doImportStagedModel
protected abstract void doImportStagedModel(PortletDataContext portletDataContext,
T stagedModel)
throws Exception
- Throws:
Exception
doRestoreStagedModel
protected void doRestoreStagedModel(PortletDataContext portletDataContext,
T stagedModel)
throws Exception
- Throws:
Exception
exportAssetCategories
protected void exportAssetCategories(PortletDataContext portletDataContext,
T stagedModel)
throws PortletDataException
- Throws:
PortletDataException
exportAssetTags
protected void exportAssetTags(PortletDataContext portletDataContext,
T stagedModel)
throws PortletDataException
- Throws:
PortletDataException
exportComments
protected void exportComments(PortletDataContext portletDataContext,
T stagedModel)
throws PortletDataException
- Throws:
PortletDataException
exportRatings
protected void exportRatings(PortletDataContext portletDataContext,
T stagedModel)
throws PortletDataException
- Throws:
PortletDataException
getProcessFlag
protected int getProcessFlag()
importAssetCategories
protected void importAssetCategories(PortletDataContext portletDataContext,
T stagedModel)
throws PortletDataException
- Throws:
PortletDataException
importAssetTags
protected void importAssetTags(PortletDataContext portletDataContext,
T stagedModel)
throws PortletDataException
- Throws:
PortletDataException
importComments
protected void importComments(PortletDataContext portletDataContext,
T stagedModel)
throws PortalException
- Throws:
PortalException
importMissingGroupReference
protected void importMissingGroupReference(PortletDataContext portletDataContext,
Element referenceElement)
throws PortletDataException
- Throws:
PortletDataException
importRatings
protected void importRatings(PortletDataContext portletDataContext,
T stagedModel)
throws PortalException
- Throws:
PortalException
importReferenceStagedModels
protected void importReferenceStagedModels(PortletDataContext portletDataContext,
T stagedModel)
throws PortletDataException
- Throws:
PortletDataException
isStagedModelInTrash
protected boolean isStagedModelInTrash(T stagedModel)
validateExport
protected void validateExport(PortletDataContext portletDataContext,
T stagedModel)
throws PortletDataException
- Throws:
PortletDataException
validateMissingGroupReference
protected boolean validateMissingGroupReference(PortletDataContext portletDataContext,
Element referenceElement)
validateMissingReference
protected boolean validateMissingReference(String uuid,
long groupId)