/** * 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 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#executeListIndepActions() */ @Override public void executeListIndepActions() { if (LIST_IACTION_USERS.equals(getParamListAction())) { getList().getMetadata().getIndependentAction(LIST_IACTION_USERS).setVisible(false); getList().getMetadata().getIndependentAction(LIST_IACTION_GROUPS).setVisible(true); } else if (LIST_IACTION_GROUPS.equals(getParamListAction())) { getList().getMetadata().getIndependentAction(LIST_IACTION_USERS).setVisible(true); getList().getMetadata().getIndependentAction(LIST_IACTION_GROUPS).setVisible(false); } super.executeListIndepActions(); }
/** * @see org.opencms.workplace.list.A_CmsListDialog#executeListIndepActions() */ @Override public void executeListIndepActions() { if (LIST_IACTION_USERS.equals(getParamListAction())) { getList().getMetadata().getIndependentAction(LIST_IACTION_USERS).setVisible(false); getList().getMetadata().getIndependentAction(LIST_IACTION_GROUPS).setVisible(true); } else if (LIST_IACTION_GROUPS.equals(getParamListAction())) { getList().getMetadata().getIndependentAction(LIST_IACTION_USERS).setVisible(true); getList().getMetadata().getIndependentAction(LIST_IACTION_GROUPS).setVisible(false); } super.executeListIndepActions(); }
/** * @see org.opencms.workplace.tools.CmsToolDialog#dialogTitle() */ @Override public String dialogTitle() { // build title StringBuffer html = new StringBuffer(512); html.append("<div class='screenTitle'>\n"); html.append("\t<table width='100%' cellspacing='0'>\n"); html.append("\t\t<tr>\n"); html.append("\t\t\t<td>\n"); if (getList().getMetadata().getIndependentAction(LIST_IACTION_USERS).isVisible()) { html.append(key(Messages.GUI_GROUPSELECTION_INTRO_TITLE_0)); getList().setName(Messages.get().container(Messages.GUI_GROUPSELECTION_LIST_NAME_0)); getList().getMetadata().getIndependentAction(LIST_DETAIL_OTHEROU); } else { html.append(key(Messages.GUI_USERSELECTION_INTRO_TITLE_1, new Object[] {""})); getList().setName(Messages.get().container(Messages.GUI_USERSELECTION_LIST_NAME_0)); } html.append("\n\t\t\t</td>"); html.append("\t\t</tr>\n"); html.append("\t</table>\n"); html.append("</div>\n"); return html.toString(); }
/** * 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); }
/** * 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); }
/** * Public constructor.<p> * * @param jsp an initialized JSP action element */ public CmsShowOrgUnitResourceList(CmsJspActionElement jsp) { super(jsp, LIST_ID, Messages.get().container(Messages.GUI_ORGUNIT_RESOURCES_LIST_NAME_0)); List<CmsResource> resourceList; try { resourceList = OpenCms.getOrgUnitManager().getResourcesForOrganizationalUnit(getCms(), getParamOufqn()); } catch (CmsException e) { resourceList = new ArrayList<CmsResource>(); } Collections.sort(resourceList); m_collector = new CmsShowOrgUnitResourcesCollector(this, resourceList); getList().getMetadata().getIndependentAction(CmsListIndependentAction.ACTION_EXPLORER_SWITCH_ID).setVisible( false); }
/** * Default constructor.<p> * * @param jsp an initialized JSP action element * @param listId the id of the displayed list * @param listName the name of the list * @param sortedColId the a priory sorted column * @param sortOrder the order of the sorted column * @param searchableColId the column to search into */ protected A_CmsSelectResourceList( CmsJspActionElement jsp, String listId, CmsMessageContainer listName, String sortedColId, CmsListOrderEnum sortOrder, String searchableColId) { super(jsp, listId, listName, sortedColId, sortOrder, searchableColId); // hide print button getList().getMetadata().getIndependentAction(CmsListPrintIAction.LIST_ACTION_ID).setVisible(false); // suppress the box around the list getList().setBoxed(false); }
/** * Default constructor.<p> * * @param jsp an initialized JSP action element * @param listId the id of the displayed list * @param listName the name of the list * @param sortedColId the a priory sorted column * @param sortOrder the order of the sorted column * @param searchableColId the column to search into */ protected A_CmsSelectResourceList( CmsJspActionElement jsp, String listId, CmsMessageContainer listName, String sortedColId, CmsListOrderEnum sortOrder, String searchableColId) { super(jsp, listId, listName, sortedColId, sortOrder, searchableColId); // 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_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#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#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#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.list.A_CmsListDialog#getList() */ @Override public CmsHtmlList getList() { CmsHtmlList list = super.getList(); // get parameter m_filter = getJsp().getRequest().getParameter(LIST_IACTION_FILTER + CmsListDropdownAction.SUFFIX_PARAM); CmsListDropdownAction listAction = null; if (list != null) { listAction = ((CmsListDropdownAction)list.getMetadata().getIndependentAction(LIST_IACTION_FILTER)); if (CmsStringUtil.isEmptyOrWhitespaceOnly(m_filter)) { // if no param, get old value m_filter = listAction.getSelection(); } } if (CmsStringUtil.isEmptyOrWhitespaceOnly(m_filter)) { m_filter = CmsProjectResourcesDisplayMode.ALL_CHANGES.getMode(); } if (listAction != null) { listAction.setSelection(m_filter); } return list; }
/** * Public constructor with JSP action element.<p> * * @param jsp an initialized JSP action element * @param resourcename the name of the resource to display deleted entries for * @param readTree display deleted resources for the subtree */ public CmsDeletedResourcesList(CmsJspActionElement jsp, String resourcename, boolean readTree) { super( jsp, LIST_ID, Messages.get().container(Messages.GUI_DELETED_RESOURCES_LIST_NAME_0), null, CmsListOrderEnum.ORDER_ASCENDING, null); // set the style to show common workplace dialog layout setParamStyle(""); // prevent paging, usually there are only few model files getList().setMaxItemsPerPage(Integer.MAX_VALUE); // hide print button getList().getMetadata().getIndependentAction(CmsListPrintIAction.LIST_ACTION_ID).setVisible(false); // suppress the box around the list getList().setBoxed(false); // hide title of the list //getList().setShowTitle(false); m_readTree = readTree; m_resourcename = resourcename; }