/** * Imports the staged model that is referenced by a portlet. To import a * staged model referenced by another staged model, use {@link * #importReferenceStagedModel(PortletDataContext, StagedModel, String, * long)}. * * @param portletDataContext the portlet data context of the current * process * @param stagedModelClassName the class name of the referenced staged * model to be imported * @param classPK the primary key of the referenced staged model to be * imported * @throws PortletDataException if a portlet data exception occurred */ public static void importReferenceStagedModel( PortletDataContext portletDataContext, String stagedModelClassName, Serializable classPK) throws PortletDataException { Element referenceElement = portletDataContext.getReferenceElement( stagedModelClassName, classPK); doImportReferenceStagedModel( portletDataContext, referenceElement, stagedModelClassName); }
/** * Imports the staged model that is referenced by another staged model. To * import a staged model referenced by a portlet, use {@link * #importReferenceStagedModel(PortletDataContext, String, long)}. * * @param portletDataContext the portlet data context of the current * process * @param referrerStagedModel the staged model that references the staged * model to be imported * @param stagedModelClassName the class name of the referenced staged * model to be imported * @param classPK the primary key of the referenced staged model to be * imported * @throws PortletDataException if a portlet data exception occurred */ public static <T extends StagedModel> void importReferenceStagedModel( PortletDataContext portletDataContext, T referrerStagedModel, String stagedModelClassName, Serializable classPK) throws PortletDataException { Element referenceElement = portletDataContext.getReferenceElement( referrerStagedModel, stagedModelClassName, classPK); doImportReferenceStagedModel( portletDataContext, referenceElement, stagedModelClassName); }