/** * Calls the <code>{@link #getListItems}</code> method and catches any exception.<p> */ protected void fillList() { try { getList().setContent(getListItems()); // initialize detail columns Iterator<CmsListItemDetails> itDetails = getList().getMetadata().getItemDetailDefinitions().iterator(); while (itDetails.hasNext()) { initializeDetail(itDetails.next().getId()); } } catch (Exception e) { throw new CmsRuntimeException( Messages.get().container(Messages.ERR_LIST_FILL_1, getList().getName().key(getLocale()), null), e); } }
/** * Calls the <code>{@link #getListItems}</code> method and catches any exception.<p> */ protected void fillList() { try { getList().setContent(getListItems()); // initialize detail columns Iterator itDetails = getList().getMetadata().getItemDetailDefinitions().iterator(); while (itDetails.hasNext()) { initializeDetail(((CmsListItemDetails)itDetails.next()).getId()); } } catch (Exception e) { throw new CmsRuntimeException(Messages.get().container( Messages.ERR_LIST_FILL_1, getList().getName().key(getLocale()), null), e); } }
/** * @see org.opencms.workplace.list.A_CmsListDialog#initializeDetail(java.lang.String) */ @Override protected void initializeDetail(String detailId) { super.initializeDetail(detailId); if (detailId.equals(LIST_DETAIL_OTHEROU)) { boolean visible = hasPrincipalsInOtherOus() && getList().getMetadata().getItemDetailDefinition(LIST_DETAIL_OTHEROU).isVisible(); getList().getMetadata().getColumnDefinition(LIST_COLUMN_ORGUNIT).setVisible(visible); getList().getMetadata().getColumnDefinition(LIST_COLUMN_ORGUNIT).setPrintable(visible); } }
/** * @see org.opencms.workplace.list.A_CmsListDialog#initializeDetail(java.lang.String) */ @Override protected void initializeDetail(String detailId) { super.initializeDetail(detailId); if (detailId.equals(LIST_DETAIL_OTHEROU)) { boolean visible = hasPrincipalsInOtherOus() && getList().getMetadata().getItemDetailDefinition(LIST_DETAIL_OTHEROU).isVisible(); getList().getMetadata().getColumnDefinition(LIST_COLUMN_ORGUNIT).setVisible(visible); getList().getMetadata().getColumnDefinition(LIST_COLUMN_ORGUNIT).setPrintable(visible); } }
/** * @see org.opencms.workplace.list.A_CmsListDialog#initializeDetail(java.lang.String) */ @Override protected void initializeDetail(String detailId) { super.initializeDetail(detailId); if (detailId.equals(LIST_DETAIL_OTHEROU)) { boolean visible = hasGroupsInOtherOus() && getList().getMetadata().getItemDetailDefinition(LIST_DETAIL_OTHEROU).isVisible(); getList().getMetadata().getColumnDefinition(LIST_COLUMN_ORGUNIT).setVisible(visible); getList().getMetadata().getColumnDefinition(LIST_COLUMN_ORGUNIT).setPrintable(visible); } }
/** * @see org.opencms.workplace.list.A_CmsListDialog#initializeDetail(java.lang.String) */ @Override protected void initializeDetail(String detailId) { super.initializeDetail(detailId); if (detailId.equals(LIST_DETAIL_OTHEROU)) { boolean visible = hasUsersInOtherOus() && getList().getMetadata().getItemDetailDefinition(LIST_DETAIL_OTHEROU).isVisible(); getList().getMetadata().getColumnDefinition(LIST_COLUMN_ORGUNIT).setVisible(visible); getList().getMetadata().getColumnDefinition(LIST_COLUMN_ORGUNIT).setPrintable(visible); } }
/** * @see org.opencms.workplace.list.A_CmsListDialog#initializeDetail(java.lang.String) */ @Override protected void initializeDetail(String detailId) { super.initializeDetail(detailId); if (detailId.equals(LIST_DETAIL_ORGUNIT)) { boolean visible = hasUsersInOtherOus() && getList().getMetadata().getItemDetailDefinition(LIST_DETAIL_ORGUNIT).isVisible(); getList().getMetadata().getColumnDefinition(LIST_COLUMN_ORGUNIT).setVisible(visible); getList().getMetadata().getColumnDefinition(LIST_COLUMN_ORGUNIT).setPrintable(visible); } }
/** * This method should handle the default list independent actions, * by comparing <code>{@link #getParamListAction()}</code> with the id * of the action to execute.<p> * * if you want to handle additional independent actions, override this method, * handling your actions and FINALLY calling <code>super.executeListIndepActions();</code>.<p> */ public void executeListIndepActions() { if (getList().getMetadata().getItemDetailDefinition(getParamListAction()) != null) { // toggle item details getList().getMetadata().toogleDetailState(getParamListAction()); // lazy initialization initializeDetail(getParamListAction()); } listSave(); }
/** * This method should handle the default list independent actions, * by comparing <code>{@link #getParamListAction()}</code> with the id * of the action to execute.<p> * * if you want to handle additional independent actions, override this method, * handling your actions and FINALLY calling <code>super.executeListIndepActions();</code>.<p> */ public void executeListIndepActions() { if (getList().getMetadata().getItemDetailDefinition(getParamListAction()) != null) { // toggle item details getList().getMetadata().toogleDetailState(getParamListAction()); // lazy initialization initializeDetail(getParamListAction()); } listSave(); }