@Override public void prepareManifestSummary( PortletDataContext portletDataContext, PortletPreferences portletPreferences) throws PortletDataException { try { doPrepareManifestSummary(portletDataContext, portletPreferences); } catch (Exception e) { throw _handleException( e, PortletDataException.PREPARE_MANIFEST_SUMMARY, portletDataContext.getPortletId()); } }
/** * @deprecated As of Judson (7.1.x) */ @Deprecated @Override public PortletPreferences processExportPortletPreferences( PortletDataContext portletDataContext, String portletId, PortletPreferences portletPreferences) throws PortletDataException { try { return doProcessExportPortletPreferences( portletDataContext, portletId, portletPreferences); } catch (PortletDataException pde) { throw pde; } catch (Exception e) { throw new PortletDataException(e); } }
/** * @deprecated As of Judson (7.1.x) */ @Deprecated @Override public PortletPreferences processImportPortletPreferences( PortletDataContext portletDataContext, String portletId, PortletPreferences portletPreferences) throws PortletDataException { try { return doProcessImportPortletPreferences( portletDataContext, portletId, portletPreferences); } catch (PortletDataException pde) { throw pde; } catch (Exception e) { throw new PortletDataException(e); } }
getDeletionSystemEventStagedModelTypes()); getExportControls()) { addUncheckedModelAdditionCount( portletDataContext, portletDataHandlerControl); return doExportData( portletDataContext, portletId, portletPreferences); throw _handleException( e, PortletDataException.EXPORT_PORTLET_DATA, portletId);
rootElement = portletDataContext.getImportDataRootElement(); addImportDataRootElement(portletDataContext, data); return doImportData( portletDataContext, portletId, portletPreferences, data); throw _handleException( e, PortletDataException.IMPORT_PORTLET_DATA, portletId);
@Override public PortletPreferences deleteData( PortletDataContext portletDataContext, String portletId, PortletPreferences portletPreferences) throws PortletDataException { long startTime = 0; if (_log.isInfoEnabled()) { _log.info("Deleting portlet " + portletId); startTime = System.currentTimeMillis(); } try { return doDeleteData( portletDataContext, portletId, portletPreferences); } catch (Exception e) { throw _handleException( e, PortletDataException.DELETE_PORTLET_DATA, portletId); } finally { if (_log.isInfoEnabled()) { long duration = System.currentTimeMillis() - startTime; _log.info("Deleted portlet in " + Time.getDuration(duration)); } } }
@Override public PortletPreferences addDefaultData( PortletDataContext portletDataContext, String portletId, PortletPreferences portletPreferences) throws PortletDataException { long startTime = 0; if (_log.isInfoEnabled()) { _log.info("Adding default data to portlet " + portletId); startTime = System.currentTimeMillis(); } try { return doAddDefaultData( portletDataContext, portletId, portletPreferences); } catch (PortletDataException pde) { throw pde; } catch (Exception e) { throw new PortletDataException(e); } finally { if (_log.isInfoEnabled()) { long duration = System.currentTimeMillis() - startTime; _log.info( "Added default data to portlet in " + Time.getDuration(duration)); } } }
childPortletDataHandlerControls) { addUncheckedModelAdditionCount( portletDataContext, childPortletDataHandlerControl);