Class StagedModelDataHandlerUtil
Object
com.liferay.exportimport.kernel.lar.StagedModelDataHandlerUtil
- Author:
- Brian Wing Shun Chan, Máté Thurzó
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
deleteStagedModel
(PortletDataContext portletDataContext, Element deletionElement) protected static void
doImportReferenceStagedModel
(PortletDataContext portletDataContext, Element referenceElement, String stagedModelClassName) static <T extends StagedModel>
ElementexportReferenceStagedModel
(PortletDataContext portletDataContext, String referrerPortletId, T stagedModel) static <T extends StagedModel,
U extends StagedModel>
ElementexportReferenceStagedModel
(PortletDataContext portletDataContext, T referrerStagedModel, U stagedModel, String referenceType) static <T extends StagedModel,
U extends StagedModel>
ElementexportReferenceStagedModel
(PortletDataContext portletDataContext, T referrerStagedModel, U stagedModel, String referenceType, String portletId) static <T extends StagedModel>
voidexportStagedModel
(PortletDataContext portletDataContext, T stagedModel) static <T extends StagedModel>
StringgetDisplayName
(T stagedModel) getReferenceAttributes
(PortletDataContext portletDataContext, StagedModel stagedModel) static void
importReferenceStagedModel
(PortletDataContext portletDataContext, Class<?> stagedModelClass, Serializable classPK) Imports the staged model that is referenced by a portlet.static void
importReferenceStagedModel
(PortletDataContext portletDataContext, String stagedModelClassName, Serializable classPK) Imports the staged model that is referenced by a portlet.static <T extends StagedModel>
voidimportReferenceStagedModel
(PortletDataContext portletDataContext, T referrerStagedModel, Class<?> stagedModelClass, Serializable classPK) Imports the staged model that is referenced by another staged model.static <T extends StagedModel>
voidimportReferenceStagedModel
(PortletDataContext portletDataContext, T referrerStagedModel, String stagedModelClassName, Serializable classPK) Imports the staged model that is referenced by another staged model.static void
importReferenceStagedModels
(PortletDataContext portletDataContext, Class<?> stagedModelClass) static <T extends StagedModel>
voidimportReferenceStagedModels
(PortletDataContext portletDataContext, T referrerStagedModel, Class<?> stagedModelClass) static void
importStagedModel
(PortletDataContext portletDataContext, Element element) static <T extends StagedModel>
voidimportStagedModel
(PortletDataContext portletDataContext, T stagedModel)
-
Constructor Details
-
StagedModelDataHandlerUtil
public StagedModelDataHandlerUtil()
-
-
Method Details
-
deleteStagedModel
public static void deleteStagedModel(PortletDataContext portletDataContext, Element deletionElement) throws PortalException - Throws:
PortalException
-
exportReferenceStagedModel
public static <T extends StagedModel> Element exportReferenceStagedModel(PortletDataContext portletDataContext, String referrerPortletId, T stagedModel) throws PortletDataException - Throws:
PortletDataException
-
exportReferenceStagedModel
public static <T extends StagedModel,U extends StagedModel> Element exportReferenceStagedModel(PortletDataContext portletDataContext, T referrerStagedModel, U stagedModel, String referenceType) throws PortletDataException - Throws:
PortletDataException
-
exportReferenceStagedModel
public static <T extends StagedModel,U extends StagedModel> Element exportReferenceStagedModel(PortletDataContext portletDataContext, T referrerStagedModel, U stagedModel, String referenceType, String portletId) throws PortletDataException - Throws:
PortletDataException
-
exportStagedModel
public static <T extends StagedModel> void exportStagedModel(PortletDataContext portletDataContext, T stagedModel) throws PortletDataException - Throws:
PortletDataException
-
getDisplayName
-
getReferenceAttributes
public static Map<String,String> getReferenceAttributes(PortletDataContext portletDataContext, StagedModel stagedModel) -
importReferenceStagedModel
public static void importReferenceStagedModel(PortletDataContext portletDataContext, Class<?> stagedModelClass, Serializable classPK) throws PortletDataException Imports the staged model that is referenced by a portlet. To import a staged model referenced by another staged model, use#importReferenceStagedModel(PortletDataContext, StagedModel, Class, long)
.- Parameters:
portletDataContext
- the portlet data context of the current processstagedModelClass
- the class of the referenced staged model to be importedclassPK
- the primary key of the referenced staged model to be imported- Throws:
PortletDataException
- if a portlet data exception occurred
-
importReferenceStagedModel
public static void importReferenceStagedModel(PortletDataContext portletDataContext, String stagedModelClassName, Serializable classPK) throws PortletDataException Imports the staged model that is referenced by a portlet. To import a staged model referenced by another staged model, useimportReferenceStagedModel(PortletDataContext, StagedModel, String, Serializable)
.- Parameters:
portletDataContext
- the portlet data context of the current processstagedModelClassName
- the class name of the referenced staged model to be importedclassPK
- the primary key of the referenced staged model to be imported- Throws:
PortletDataException
- if a portlet data exception occurred
-
importReferenceStagedModel
public static <T extends StagedModel> void importReferenceStagedModel(PortletDataContext portletDataContext, T referrerStagedModel, Class<?> stagedModelClass, Serializable classPK) throws PortletDataException Imports the staged model that is referenced by another staged model. To import a staged model referenced by a portlet, use#importReferenceStagedModel(PortletDataContext, Class, long)
.- Parameters:
portletDataContext
- the portlet data context of the current processreferrerStagedModel
- the staged model that references the staged model to be importedstagedModelClass
- the class of the referenced staged model to be importedclassPK
- the primary key of the referenced staged model to be imported- Throws:
PortletDataException
- if a portlet data exception occurred
-
importReferenceStagedModel
public static <T extends StagedModel> void importReferenceStagedModel(PortletDataContext portletDataContext, T referrerStagedModel, String stagedModelClassName, Serializable classPK) throws PortletDataException Imports the staged model that is referenced by another staged model. To import a staged model referenced by a portlet, useimportReferenceStagedModel(PortletDataContext, String, Serializable)
.- Parameters:
portletDataContext
- the portlet data context of the current processreferrerStagedModel
- the staged model that references the staged model to be importedstagedModelClassName
- the class name of the referenced staged model to be importedclassPK
- the primary key of the referenced staged model to be imported- Throws:
PortletDataException
- if a portlet data exception occurred
-
importReferenceStagedModels
public static void importReferenceStagedModels(PortletDataContext portletDataContext, Class<?> stagedModelClass) throws PortletDataException - Throws:
PortletDataException
-
importReferenceStagedModels
public static <T extends StagedModel> void importReferenceStagedModels(PortletDataContext portletDataContext, T referrerStagedModel, Class<?> stagedModelClass) throws PortletDataException - Throws:
PortletDataException
-
importStagedModel
public static void importStagedModel(PortletDataContext portletDataContext, Element element) throws PortletDataException - Throws:
PortletDataException
-
importStagedModel
public static <T extends StagedModel> void importStagedModel(PortletDataContext portletDataContext, T stagedModel) throws PortletDataException - Throws:
PortletDataException
-
doImportReferenceStagedModel
protected static void doImportReferenceStagedModel(PortletDataContext portletDataContext, Element referenceElement, String stagedModelClassName) throws PortletDataException - Throws:
PortletDataException
-