/** * @see org.opencms.workplace.list.A_CmsListDialog#executeListSingleActions() */ @Override public void executeListSingleActions() throws IOException, ServletException { Map params = new HashMap(); params.put(CmsHistoryList.PARAM_VERSION_1, getParamVersion1()); params.put(CmsHistoryList.PARAM_VERSION_2, getParamVersion2()); params.put(CmsHistoryList.PARAM_ID_1, getParamId1()); params.put(CmsHistoryList.PARAM_ID_2, getParamId2()); params.put(PARAM_LOCALE, getSelectedItem().get(LIST_COLUMN_LOCALE).toString()); params.put(PARAM_ELEMENT, getSelectedItem().get(LIST_COLUMN_ATTRIBUTE).toString()); params.put(PARAM_RESOURCE, getParamResource()); // forward to the element difference screen getToolManager().jspForwardTool(this, "/history/comparison/difference", params); }
/** * @see org.opencms.workplace.list.A_CmsListDialog#executeListSingleActions() */ @Override public void executeListSingleActions() throws IOException, ServletException { Map<String, String[]> params = new HashMap<String, String[]>(); params.put(CmsHistoryList.PARAM_VERSION_1, new String[] {getParamVersion1()}); params.put(CmsHistoryList.PARAM_VERSION_2, new String[] {getParamVersion2()}); params.put(CmsHistoryList.PARAM_ID_1, new String[] {getParamId1()}); params.put(CmsHistoryList.PARAM_ID_2, new String[] {getParamId2()}); params.put(PARAM_LOCALE, new String[] {getSelectedItem().get(LIST_COLUMN_LOCALE).toString()}); params.put(PARAM_ELEMENT, new String[] {getSelectedItem().get(LIST_COLUMN_ATTRIBUTE).toString()}); params.put(PARAM_RESOURCE, new String[] {getParamResource()}); // forward to the element difference screen getToolManager().jspForwardTool(this, "/history/comparison/difference", params); }
/** * * @see org.opencms.workplace.list.A_CmsListDialog#executeListIndepActions() */ @Override public void executeListIndepActions() { if (getParamListAction().equals(LIST_IACTION_COMPARE_ALL)) { // called if all elements are to be compared Map params = new HashMap(); params.put(CmsHistoryList.PARAM_VERSION_1, getParamVersion1()); params.put(CmsHistoryList.PARAM_VERSION_2, getParamVersion2()); params.put(CmsHistoryList.PARAM_ID_1, getParamId1()); params.put(CmsHistoryList.PARAM_ID_2, getParamId2()); params.put(CmsPropertyComparisonList.PARAM_COMPARE, CmsResourceComparisonDialog.COMPARE_ALL_ELEMENTS); params.put(PARAM_RESOURCE, getParamResource()); // forward to the element difference screen try { getToolManager().jspForwardTool(this, "/history/comparison/difference", params); } catch (Exception e) { LOG.debug(e.getMessage(), e); } } super.executeListIndepActions(); }
/** * * @see org.opencms.workplace.list.A_CmsListDialog#executeListIndepActions() */ @Override public void executeListIndepActions() { if (getParamListAction().equals(LIST_IACTION_COMPARE_ALL)) { // called if all elements are to be compared Map<String, String[]> params = new HashMap<String, String[]>(); params.put(CmsHistoryList.PARAM_VERSION_1, new String[] {getParamVersion1()}); params.put(CmsHistoryList.PARAM_VERSION_2, new String[] {getParamVersion2()}); params.put(CmsHistoryList.PARAM_ID_1, new String[] {getParamId1()}); params.put(CmsHistoryList.PARAM_ID_2, new String[] {getParamId2()}); params.put( CmsPropertyComparisonList.PARAM_COMPARE, new String[] {CmsResourceComparisonDialog.COMPARE_ALL_ELEMENTS}); params.put(PARAM_RESOURCE, new String[] {getParamResource()}); // forward to the element difference screen try { getToolManager().jspForwardTool(this, "/history/comparison/difference", params); } catch (Exception e) { LOG.debug(e.getMessage(), e); } } super.executeListIndepActions(); }