/** * Returns the search categories.<p> * * @return the search categories */ public String[] getCategories() { List<String> l = m_parameters.getCategories(); return l.toArray(new String[l.size()]); }
/** * Returns the search categories.<p> * * @return the search categories */ public String[] getCategories() { List<String> l = m_parameters.getCategories(); return l.toArray(new String[l.size()]); }
/** * Returns the list of categories to limit the search to.<p> * * @return the list of categories to limit the search to */ public String getSearchCategories() { return toSeparatedString(getCategories(), ','); }
/** * Returns the list of categories to limit the search to.<p> * * @return the list of categories to limit the search to */ public String getSearchCategories() { return toSeparatedString(getCategories(), ','); }
if ((getCategories() != null) && (getCategories().size() > 0)) { result.append("&category="); Iterator<String> it = getCategories().iterator(); while (it.hasNext()) { result.append(it.next());
List<String> categories = search.getParameters().getCategories(); Iterator<String> it = categories.iterator(); int count = 0;
if ((getCategories() != null) && (getCategories().size() > 0)) { result.append("&category="); Iterator<String> it = getCategories().iterator(); while (it.hasNext()) { result.append(it.next());
if ((restriction.getCategories() != null) && (restriction.getCategories().size() > 0)) { categories = ListUtils.intersection(m_categories, restriction.getCategories()); } else { categories = m_categories; categories = restriction.getCategories();
if ((restriction.getCategories() != null) && (restriction.getCategories().size() > 0)) { categories = ListUtils.intersection(m_categories, restriction.getCategories()); } else { categories = m_categories; categories = restriction.getCategories();
/** * Overridden to additionally get a hold on the widget object of type * <code>{@link CmsSearchParameters}</code>.<p> * * @see org.opencms.workplace.tools.searchindex.A_CmsEditSearchIndexDialog#initUserObject() */ @SuppressWarnings("rawtypes") @Override protected void initUserObject() { super.initUserObject(); Object o = getDialogObject(); if (o == null) { m_searchParams = new CmsSearchParameters(); // implant a hook upon modifications of the list // this will set the search page to 1 if a restriction to the set of categories is performed m_searchParams.setCategories(new CmsHookListSearchCategory(m_searchParams, m_searchParams.getCategories())); m_search = new CmsSearch(); } else { Map dialogObject = (Map)o; m_searchParams = (CmsSearchParameters)dialogObject.get(PARAM_SEARCH_PARAMS); if (m_searchParams == null) { m_searchParams = new CmsSearchParameters(); } m_search = (CmsSearch)dialogObject.get(PARAM_SEARCH_OBJECT); if (m_search == null) { m_search = new CmsSearch(); } } m_searchParams.setSearchIndex(getSearchIndexIndex()); }
if ((params.getCategories() != null) && (params.getCategories().size() > 0)) { params.getCategories()), BooleanClause.Occur.MUST));
filter = appendCategoryFilter(searchCms, filter, params.getCategories());
addWidget( new CmsWidgetDialogParameter( m_searchParams.getCategories(), "categories", "",