options.add(key(CmsSearchResultStyle.STYLE_EXPLORER.getKey())); values.add(CmsSearchResultStyle.STYLE_EXPLORER.getMode()); if (getParamTabExWorkplaceSearchResult().equals(CmsSearchResultStyle.STYLE_EXPLORER.toString())) { options.add(key(CmsSearchResultStyle.STYLE_LIST_WITH_EXCERPTS.getKey())); values.add(CmsSearchResultStyle.STYLE_LIST_WITH_EXCERPTS.getMode()); if (getParamTabExWorkplaceSearchResult().equals(CmsSearchResultStyle.STYLE_LIST_WITH_EXCERPTS.toString())) { options.add(key(CmsSearchResultStyle.STYLE_LIST_WITHOUT_EXCERPTS.getKey())); values.add(CmsSearchResultStyle.STYLE_LIST_WITHOUT_EXCERPTS.getMode()); if (getParamTabExWorkplaceSearchResult().equals(CmsSearchResultStyle.STYLE_LIST_WITHOUT_EXCERPTS.toString())) {
m_user.setAdditionalInfo(PREFERENCES + CmsWorkplaceConfiguration.N_WORKPLACESEARCH + CmsWorkplaceConfiguration.N_SEARCHVIEWSTYLE, getWorkplaceSearchViewStyle().toString());
m_workplaceManager.getDefaultUserSettings().getWorkplaceSearchViewStyle().toString());
m_workplaceSearchViewStyle = CmsSearchResultStyle.valueOf( (String)m_user.getAdditionalInfo( PREFERENCES
m_user.setAdditionalInfo( PREFERENCES + CmsWorkplaceConfiguration.N_WORKPLACESEARCH + CmsWorkplaceConfiguration.N_SEARCHVIEWSTYLE, getWorkplaceSearchViewStyle().toString());
m_workplaceSearchViewStyle = CmsSearchResultStyle.valueOf((String)m_user.getAdditionalInfo(PREFERENCES + CmsWorkplaceConfiguration.N_WORKPLACESEARCH + CmsWorkplaceConfiguration.N_SEARCHVIEWSTYLE));
options.add(key(CmsSearchResultStyle.STYLE_EXPLORER.getKey())); values.add(CmsSearchResultStyle.STYLE_EXPLORER.getMode()); if (getParamTabExWorkplaceSearchResult().equals(CmsSearchResultStyle.STYLE_EXPLORER.toString())) { options.add(key(CmsSearchResultStyle.STYLE_LIST_WITH_EXCERPTS.getKey())); values.add(CmsSearchResultStyle.STYLE_LIST_WITH_EXCERPTS.getMode()); if (getParamTabExWorkplaceSearchResult().equals(CmsSearchResultStyle.STYLE_LIST_WITH_EXCERPTS.toString())) { options.add(key(CmsSearchResultStyle.STYLE_LIST_WITHOUT_EXCERPTS.getKey())); values.add(CmsSearchResultStyle.STYLE_LIST_WITHOUT_EXCERPTS.getMode()); if (getParamTabExWorkplaceSearchResult().equals(CmsSearchResultStyle.STYLE_LIST_WITHOUT_EXCERPTS.toString())) {
/** * Returns the copy mode object from the old copy mode integer.<p> * * @param mode the old copy mode integer * * @return the copy mode object */ public static CmsSearchResultStyle valueOf(String mode) { if (STYLE_LIST_WITHOUT_EXCERPTS.getMode().equals(mode)) { return STYLE_LIST_WITHOUT_EXCERPTS; } else if (STYLE_LIST_WITH_EXCERPTS.getMode().equals(mode)) { return STYLE_LIST_WITH_EXCERPTS; } else { return STYLE_EXPLORER; } }
/** * Returns the copy mode object from the old copy mode integer.<p> * * @param mode the old copy mode integer * * @return the copy mode object */ public static CmsSearchResultStyle valueOf(String mode) { if (STYLE_LIST_WITHOUT_EXCERPTS.getMode().equals(mode)) { return STYLE_LIST_WITHOUT_EXCERPTS; } else if (STYLE_LIST_WITH_EXCERPTS.getMode().equals(mode)) { return STYLE_LIST_WITH_EXCERPTS; } else { return STYLE_EXPLORER; } }
/** * Returns the "workplace search result style" setting.<p> * * @return the "workplace search result style" setting */ public String getParamTabExWorkplaceSearchResult() { return m_userSettings.getWorkplaceSearchViewStyle().toString(); }
/** * Sets the "workplace search result style".<p> * * @param style the "workplace search result style" to set */ public void setParamTabExWorkplaceSearchResult(String style) { if (style == null) { style = OpenCms.getWorkplaceManager().getDefaultUserSettings().getWorkplaceSearchViewStyle().getMode(); } m_userSettings.setWorkplaceSearchViewStyle(CmsSearchResultStyle.valueOf(style)); }
/** * Sets the "workplace search result style".<p> * * @param style the "workplace search result style" to set */ public void setParamTabExWorkplaceSearchResult(String style) { if (style == null) { style = OpenCms.getWorkplaceManager().getDefaultUserSettings().getWorkplaceSearchViewStyle().getMode(); } m_userSettings.setWorkplaceSearchViewStyle(CmsSearchResultStyle.valueOf(style)); }
/** * Gets the workplace search view style. * * @return the workplace search view style */ @PrefMetadata(type = CmsHiddenBuiltinPreference.class) public String getWorkplaceSearchViewStyle() { return m_settings.getWorkplaceSearchViewStyle().toString(); }
/** * Returns the "workplace search result style" setting.<p> * * @return the "workplace search result style" setting */ public String getParamTabExWorkplaceSearchResult() { return m_userSettings.getWorkplaceSearchViewStyle().toString(); }
/** * Sets the style of the workplace search default view.<p> * * @param viewStyle the style of the workplace search default view */ public void setWorkplaceSearchViewStyle(String viewStyle) { setWorkplaceSearchViewStyle(CmsSearchResultStyle.valueOf(viewStyle)); }
/** * Sets the style of the workplace search default view.<p> * * @param viewStyle the style of the workplace search default view */ public void setWorkplaceSearchViewStyle(String viewStyle) { setWorkplaceSearchViewStyle(CmsSearchResultStyle.valueOf(viewStyle)); }