/** * @param rundata * @param context * @throws Exception */ @Override protected void doOutput(RunData rundata, Context context) throws Exception { try { String portletId = ActivityUtils.getGlobalPortletId(rundata); context.put("portletId", ActivityUtils.getGlobalPortletId(rundata)); Portlet portlet = ALEipUtils.getPortlet(rundata, portletId); String desktopNotificationParam = portlet.getPortletConfig().getInitParameter("desktopNotification"); context.put("desktopNotification", "T".equals(desktopNotificationParam)); String support = rundata.getParameters().getString("s"); context.put("notifySupport", "1".equals(support)); String permission = rundata.getParameters().getString("p"); context.put("notifyPermission", "0".equals(permission) || "granted".equals(permission)); ActivitySelectData listData = new ActivitySelectData(); listData.initField(); listData.setRowsNum(5); listData.doViewList(this, rundata, context); String layout_template = "portlets/html/ja/ajax-activity-list.vm"; setTemplate(rundata, context, layout_template); } catch (Exception ex) { logger.error("ActivityListScreen.doOutput", ex); ALEipUtils.redirectDBError(rundata); } }
/** * @param portlet * @param context * @param rundata * @throws Exception */ @Override protected void buildNormalContext(VelocityPortlet portlet, Context context, RunData rundata) throws Exception { // セッション情報のクリア clearActivitySession(rundata, context); ActivityUtils.resetFilter(rundata, context, ActivityAllSelectData.class.getName()); ActivityAllSelectData listData = new ActivityAllSelectData(); listData.initField(); // PSMLからパラメータをロードする // 最大表示件数(最大化時) listData.setRowsNum( Integer.parseInt( ALEipUtils.getPortlet(rundata, context) .getPortletConfig() .getInitParameter("p1a-rows"))); listData.doViewList(this, rundata, context); setTemplate(rundata, "activity"); }