/** * Returns a new list item for this list.<p> * * @param id the id of the item has to be unique * @return a new list item */ public CmsListItem newItem(String id) { return new CmsListItem(getMetadata(), id); }
/** * Returns a new list item for this list.<p> * * @param id the id of the item has to be unique * @return a new list item */ public CmsListItem newItem(String id) { return new CmsListItem(getMetadata(), id); }
/** * Returns the list.<p> * * @return the list */ public CmsHtmlList getList() { if ((m_list != null) && (m_list.getMetadata() == null)) { m_list.setMetadata(getMetadata(getClass().getName(), m_list.getId())); } return m_list; }
/** * Returns the list.<p> * * @return the list */ public CmsHtmlList getList() { if ((m_list != null) && (m_list.getMetadata() == null)) { m_list.setMetadata(getMetadata(getClass().getName(), m_list.getId())); } return m_list; }
/** * Checks if we are currently displaying users or groups.<p> * * @return <code>true</code> if we are currently displaying users */ public boolean isShowingUsers() { return getList().getMetadata().getIndependentAction(LIST_IACTION_GROUPS).isVisible(); }
/** * Checks whether users of other OUs should be shown.<p> * * @return true if users of other OUs should be shown */ protected boolean hasOuDetail() { CmsListMetadata meta = getList().getMetadata(); CmsListItemDetails detail = meta.getItemDetailDefinition(LIST_DETAIL_OTHEROU); return (detail != null) && detail.isVisible(); }
/** * Checks if the image size should be shown or not.<p> * * @return <code>true</code> if the image size should be shown */ public boolean showSize() { CmsListItemDetails details = getList().getMetadata().getItemDetailDefinition(LIST_DETAIL_SIZE); return (details != null) && details.isVisible(); }
/** * Checks if other OUs are visible.<p> * * @return true if other OUs are visible */ protected boolean otherOrgUnitsVisible() { return getList().getMetadata().getItemDetailDefinition(LIST_DETAIL_ORGUNIT).isVisible(); }
/** * Checks if we are currently displaying users or groups.<p> * * @return <code>true</code> if we are currently displaying users */ public boolean isShowingUsers() { return getList().getMetadata().getIndependentAction(LIST_IACTION_GROUPS).isVisible(); }
/** * @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); } }
/** * Creates a new select resource list ordered and searchable by name.<p> * * @param jsp an initialized JSP action element * @param listId the id of the displayed list * @param listName the name of the list */ protected A_CmsSelectResourceList(CmsJspActionElement jsp, String listId, CmsMessageContainer listName) { super(jsp, listId, listName); // hide print button getList().getMetadata().getIndependentAction(CmsListPrintIAction.LIST_ACTION_ID).setVisible(false); // suppress the box around the list getList().setBoxed(false); }
/** * @see org.opencms.workplace.tools.A_CmsHtmlIconButton#getName() */ @Override public CmsMessageContainer getName() { if (getWp().getList().getMetadata().getIndependentAction(LIST_IACTION_USERS).isVisible()) { return Messages.get().container(Messages.GUI_GROUPS_DETAIL_HIDE_OTHEROU_NAME_0); } else { return Messages.get().container(Messages.GUI_USERS_DETAIL_HIDE_OTHEROU_NAME_0); } }
/** * @see org.opencms.workplace.tools.A_CmsHtmlIconButton#getHelpText() */ @Override public CmsMessageContainer getHelpText() { if (getWp().getList().getMetadata().getIndependentAction(LIST_IACTION_USERS).isVisible()) { return Messages.get().container(Messages.GUI_GROUPS_DETAIL_SHOW_OTHEROU_HELP_0); } else { return Messages.get().container(Messages.GUI_USERS_DETAIL_SHOW_OTHEROU_HELP_0); } }
/** * @see org.opencms.workplace.tools.A_CmsHtmlIconButton#getHelpText() */ @Override public CmsMessageContainer getHelpText() { if (getWp().getList().getMetadata().getIndependentAction(LIST_IACTION_USERS).isVisible()) { return Messages.get().container(Messages.GUI_GROUPS_DETAIL_HIDE_OTHEROU_HELP_0); } else { return Messages.get().container(Messages.GUI_USERS_DETAIL_HIDE_OTHEROU_HELP_0); } }
/** * @see org.opencms.workplace.tools.A_CmsHtmlIconButton#getHelpText() */ @Override public CmsMessageContainer getHelpText() { if (getWp().getList().getMetadata().getIndependentAction(LIST_IACTION_USERS).isVisible()) { return Messages.get().container(Messages.GUI_GROUPS_DETAIL_SHOW_OTHEROU_HELP_0); } else { return Messages.get().container(Messages.GUI_USERS_DETAIL_SHOW_OTHEROU_HELP_0); } }
/** * @see org.opencms.workplace.tools.A_CmsHtmlIconButton#getName() */ @Override public CmsMessageContainer getName() { if (getWp().getList().getMetadata().getIndependentAction(LIST_IACTION_USERS).isVisible()) { return Messages.get().container(Messages.GUI_GROUPS_DETAIL_SHOW_OTHEROU_NAME_0); } else { return Messages.get().container(Messages.GUI_USERS_DETAIL_SHOW_OTHEROU_NAME_0); } }
/** * @see org.opencms.workplace.tools.A_CmsHtmlIconButton#getName() */ @Override public CmsMessageContainer getName() { if (getWp().getList().getMetadata().getIndependentAction(LIST_IACTION_USERS).isVisible()) { return Messages.get().container(Messages.GUI_GROUPS_DETAIL_HIDE_OTHEROU_NAME_0); } else { return Messages.get().container(Messages.GUI_USERS_DETAIL_HIDE_OTHEROU_NAME_0); } }
/** * @see org.opencms.workplace.tools.A_CmsHtmlIconButton#getName() */ @Override public CmsMessageContainer getName() { if (getWp().getList().getMetadata().getIndependentAction(LIST_IACTION_USERS).isVisible()) { return Messages.get().container(Messages.GUI_GROUPS_DETAIL_SHOW_OTHEROU_NAME_0); } else { return Messages.get().container(Messages.GUI_USERS_DETAIL_SHOW_OTHEROU_NAME_0); } }
/** * @see org.opencms.workplace.tools.A_CmsHtmlIconButton#getHelpText() */ @Override public CmsMessageContainer getHelpText() { if (getWp().getList().getMetadata().getIndependentAction(LIST_IACTION_USERS).isVisible()) { return Messages.get().container(Messages.GUI_GROUPS_DETAIL_HIDE_OTHEROU_HELP_0); } else { return Messages.get().container(Messages.GUI_USERS_DETAIL_HIDE_OTHEROU_HELP_0); } }