public static String getPath( PortletDataContext portletDataContext, String className, long classPK, String dependentFileName) { return getPath(portletDataContext.getSourceGroupId(), className, classPK, dependentFileName); }
public static void importStagedModel(PortletDataContext portletDataContext, Element element) throws PortletDataException { String path = element.attributeValue("path"); StagedModel stagedModel = (StagedModel) portletDataContext.getZipEntryAsObject(element, path); importStagedModel(portletDataContext, stagedModel); }
@Override public void importStagedModel(PortletDataContext portletDataContext, T stagedModel) throws PortletDataException { String path = ExportImportPathUtil.getModelPath(stagedModel); if (portletDataContext.isPathProcessed(path)) { return; } try { doImportStagedModel(portletDataContext, stagedModel); ManifestSummary manifestSummary = portletDataContext.getManifestSummary(); manifestSummary.incrementModelCount(getManifestSummaryKey(stagedModel)); } catch (Exception e) { throw new PortletDataException(e); } }