Returns the different select options for sort search result criteria. <p>

@return the different select options for sort search result criteria
354071
private List<CmsSelectWidgetOption> getSortWidgetConfiguration() {

        List<CmsSelectWidgetOption> result = new LinkedList<CmsSelectWidgetOption>();
        CmsMessages messages = Messages.get().getBundle(getLocale());
        result.add(
            new CmsSelectWidgetOption(
                CmsSearchParameters.SORT_NAMES[0],
                true,
                messages.key(Messages.GUI_SELECT_LABEL_SEARCH_SORT_SCORE_0)));
        result.add(
            new CmsSelectWidgetOption(
                CmsSearchParameters.SORT_NAMES[1],
                false,
                messages.key(Messages.GUI_SELECT_LABEL_SEARCH_SORT_DATE_CREATED_0)));
        result.add(
            new CmsSelectWidgetOption(
                CmsSearchParameters.SORT_NAMES[2],
                false,
                messages.key(Messages.GUI_SELECT_LABEL_SEARCH_SORT_DATE_LAST_MODIFIED_0)));
        result.add(
            new CmsSelectWidgetOption(
                CmsSearchParameters.SORT_NAMES[3],
                false,
                messages.key(Messages.GUI_SELECT_LABEL_SEARCH_SORT_TITLE_0)));
        return result;
    }
1036394
public Collection<SelectItem> getFilterOptions() {
        return (Collection<SelectItem>) getStateHelper().eval(PropertyKeys.filterOptions, null);
    }
972262
private List<CmsSelectWidgetOption> getRoles() {

        List<CmsSelectWidgetOption> roleOptions = new ArrayList<CmsSelectWidgetOption>();
        roleOptions.add(
            new CmsSelectWidgetOption(
                NO_ROLE,
                false,
                Messages.get().getBundle(getLocale()).key(Messages.GUI_USER_EDITOR_NO_ROLE_0)));
        try {
            List<CmsRole> roles = new ArrayList<CmsRole>(
                OpenCms.getRoleManager().getRoles(getCms(), m_paramOufqn, false));
            // ensure the role sorting matches the system roles order
            CmsRole.applySystemRoleOrder(roles);
            for (CmsRole role : roles) {
                roleOptions.add(
                    new CmsSelectWidgetOption(
                        role.getRoleName(),
                        role.getRoleName().equals(CmsRole.ELEMENT_AUTHOR.getRoleName()),
                        role.getDisplayName(getCms(), getLocale())));
            }
        } catch (CmsException e) {
            LOG.error(e.getLocalizedMessage(), e);
        }
        return roleOptions;
    }
390199
public String getPreselectOption(String siteRoot, List<CmsSiteSelectorOption> options) {

        if ((siteRoot == null) || options.isEmpty()) {
            return null;
        }
        for (CmsSiteSelectorOption option : options) {
            if (CmsStringUtil.joinPaths(siteRoot, "/").equals(CmsStringUtil.joinPaths(option.getSiteRoot(), "/"))) {
                return option.getSiteRoot();
            }
        }
        return options.get(0).getSiteRoot();
    }
1345958
protected static List<String> createOptions() {

        List<String> options = new ArrayList<String>();
        options.add(optionMapping.get(CmsAliasMode.permanentRedirect));
        options.add(optionMapping.get(CmsAliasMode.redirect));
        options.add(optionMapping.get(CmsAliasMode.passthrough));
        return options;
    }
140585
protected CmsUserSearchParameters getSearchParams() throws CmsException {

        CmsListState state = getListState();
        CmsUserSearchParameters params = new CmsUserSearchParameters();
        String searchFilter = state.getFilter();
        params.setSearchFilter(searchFilter);
        params.setFilterCore(true);
        params.setPaging(getList().getMaxItemsPerPage(), state.getPage());
        params.setSorting(getSortKey(state.getColumn()), state.getOrder().equals(CmsListOrderEnum.ORDER_ASCENDING));
        return params;
    }
1327692
public java.util.List<String> getOptionsConflictsWith() {
        if (optionsConflictsWith == null) {
            optionsConflictsWith = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return optionsConflictsWith;
    }
801161
private List<CmsSelectWidgetOption> getSolrIndexOptions() {

        List<CmsSelectWidgetOption> result = new ArrayList<CmsSelectWidgetOption>();
        result.add(
            new CmsSelectWidgetOption(CmsSearchReplaceSettings.VFS, true, CmsSearchReplaceSettings.VFS.toUpperCase()));
        if (OpenCms.getSearchManager().getSolrServerConfiguration().isEnabled()) {
            for (CmsSearchIndex index : OpenCms.getSearchManager().getAllSolrIndexes()) {
                if (CmsSearchIndex.REBUILD_MODE_OFFLINE.equals(index.getRebuildMode())) {
                    result.add(new CmsSelectWidgetOption(index.getName(), false, index.getName()));
                }
            }
        }
        return result;
    }
406211
public List<ChoiceBase> getChoiceList()
    {
        if (hasExcludes())
        {
            if (m_cachedList != null)
            {
                return m_cachedList;
            }
            final List<ChoiceBase> retList = new ArrayList<ChoiceBase>();
            for (ChoiceBase choiceBase:m_propertyMetadata.getChoiceList())
            {
                final String key = choiceBase.getKey().toString();
                if (!m_excludes.contains(key))
                {
                    retList.add(choiceBase);
                }
            }
            m_cachedList = retList;
            return retList;
        }
        return m_propertyMetadata.getChoiceList();
    }
543843
@Override
    public List<String> getOptions() throws WidgetException {
        try {
            org.openqa.selenium.support.ui.Select selectBox = new org.openqa.selenium.support.ui.Select(
                    findElement());
            List<WebElement> options = selectBox.getOptions();

            List<String> optionsTextValues = new ArrayList<String>();
            for (WebElement e : options) {
                optionsTextValues.add(e.getText());
            }

            return optionsTextValues;
        } catch (Exception e) {
            throw new WidgetException("Error while fetching select options", getByLocator(), e);
        }
    }
1315644
public List<HelpOption> getOptions() {
		final BQRuntime runtime = createRuntime();
		final ApplicationMetadata application = runtime.getInstance(ApplicationMetadata.class);
		final HelpOptions helpOptions = new HelpOptions();

		application.getCommands().forEach(c -> {
			helpOptions.add(c.asOption());
			c.getOptions().forEach(o -> helpOptions.add(o));
		});

		application.getOptions().forEach(o -> helpOptions.add(o));

		return helpOptions.getOptions();
	}
840750
public List<CmsSearchResult> getSearchResult() {

        if ((m_cms != null)
            && (m_result == null)
            && (m_parameters.getIndex() != null)
            && (m_parameters.isIgnoreQuery()
                || CmsStringUtil.isNotEmpty(m_parameters.getQuery())
                || CmsStringUtil.isNotEmpty(m_parameters.getParsedQuery())
                || (m_parameters.getFieldQueries() != null))) {

            if (!m_parameters.isIgnoreQuery()
                && CmsStringUtil.isEmpty(m_parameters.getParsedQuery())
                && (getQueryLength() > 0)) {

                if (m_parameters.getFieldQueries() != null) {
                    // check all field queries if the length of the query is ok
                    for (CmsSearchParameters.CmsSearchFieldQuery fq : m_parameters.getFieldQueries()) {
                        for (String keyword : fq.getSearchTerms()) {
                            if (CmsStringUtil.isEmpty(keyword) || (keyword.trim().length() < getQueryLength())) {

                                m_lastException = new CmsSearchException(
                                    Messages.get().container(
                                        Messages.ERR_QUERY_TOO_SHORT_1,
                                        new Integer(getQueryLength())));

                                return null;
                            }
                        }
                    }

                } else if (m_parameters.getQuery().trim().length() < getQueryLength()) {

                    m_lastException = new CmsSearchException(
                        Messages.get().container(Messages.ERR_QUERY_TOO_SHORT_1, new Integer(getQueryLength())));

                    return null;
                }
            }

            try {

                CmsSearchResultList result = m_parameters.getSearchIndex().search(m_cms, getParameters());

                if (result.size() > 0) {

                    m_result = result;
                    m_searchResultCount = result.getHitCount();
                    m_categoriesFound = result.getCategories();

                    // re-caluclate the number of pages for this search result
                    m_pageCount = m_searchResultCount / m_parameters.getMatchesPerPage();
                    if ((m_searchResultCount % m_parameters.getMatchesPerPage()) != 0) {
                        m_pageCount++;
                    }

                    // re-calculate the URLs to browse forward and backward in the search result
                    String url = m_cms.getRequestContext().getUri() + m_parameters.toQueryString() + "&searchPage=";
                    if (m_parameters.getSearchPage() > 1) {
                        m_prevUrl = url + (m_parameters.getSearchPage() - 1);
                    }
                    if (m_parameters.getSearchPage() < m_pageCount) {
                        m_nextUrl = url + (m_parameters.getSearchPage() + 1);
                    }
                } else {
                    m_result = Collections.emptyList();
                    m_searchResultCount = 0;
                    m_categoriesFound = null;
                    m_pageCount = 0;
                    m_prevUrl = null;
                    m_nextUrl = null;
                }
            } catch (Exception exc) {

                if (LOG.isDebugEnabled()) {
                    LOG.debug(Messages.get().getBundle().key(Messages.LOG_SEARCHING_FAILED_0), exc);
                }

                m_result = null;
                m_searchResultCount = 0;
                m_pageCount = 0;

                m_lastException = exc;
            }
        }

        return m_result;
    }
802804
@SuppressWarnings("unchecked")
    @Override
    public List<String> getSelectedOptions() throws WidgetException {
        try {
            Object value = getValue();
            if (value != null) {
                if (value instanceof List<?>) {
                    return (List<String>) value;
                } else {
                    List<String> options = new ArrayList<String>();
                    options.add((String) value);
                    return options;
                }
            } else {
                return null;
            }
        } catch (Exception e) {
            throw new WidgetException("Error while fetching selected options", getByLocator(), e);
        }
    }
342109
@Override
	public List<CPOptionValue> findAll() {
		return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
1371002
private List<CmsSelectWidgetOption> getTypeWidgetConfiguration() {

        List<CmsSelectWidgetOption> result = new ArrayList<CmsSelectWidgetOption>();
        result.add(new CmsSelectWidgetOption(CmsSearchFieldMappingType.CONTENT.toString(), true));
        result.add(new CmsSelectWidgetOption(CmsSearchFieldMappingType.PROPERTY.toString(), false));
        result.add(new CmsSelectWidgetOption(CmsSearchFieldMappingType.PROPERTY_SEARCH.toString(), false));
        result.add(new CmsSelectWidgetOption(CmsSearchFieldMappingType.ITEM.toString(), false));
        return result;
    }
54491
public SelectionCriteria[] getCriterias()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.entry(tc, "getCriterias");
      
    SelectionCriteria[] criterias = aiRequestedTick.getCriterias();
    
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.exit(tc, "getCriterias", criterias);
    return criterias;
  }
291452
@SuppressWarnings("unchecked")
    public Collection<CmsCategory> getSelectedCategories() {

        Set<CmsCategory> result = new HashSet<CmsCategory>();
        if (m_isDiplayOny) {
            // in case of display only, all displayed categories are assume selected
            result.addAll((Collection<? extends CmsCategory>)getItemIds());
        } else {
            for (Entry<CmsCategory, CheckBox> entry : m_checkboxes.entrySet()) {
                if (entry.getValue().getValue().booleanValue()) {
                    result.add(entry.getKey());
                }
            }
        }
        return result;
    }