Codota Logo
CmsUserSettings$CmsSearchResultStyle
Code IndexAdd Codota to your IDE (free)

How to use
CmsUserSettings$CmsSearchResultStyle
in
org.opencms.db

Best Java code snippets using org.opencms.db.CmsUserSettings$CmsSearchResultStyle (Showing top 16 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: org.opencms/opencms-core

/**
 * 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;
  }
}
origin: org.opencms/org.opencms.workplace

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())) {
origin: org.opencms/opencms-solr

/**
 * 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));
}
origin: org.opencms/org.opencms.workplace

/**
 * 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));
}
origin: org.opencms/opencms-solr

/**
 * 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));
}
origin: org.opencms/opencms-solr

/**
 * Returns the "workplace search result style" setting.<p>
 * 
 * @return the "workplace search result style" setting
 */
public String getParamTabExWorkplaceSearchResult() {
  return m_userSettings.getWorkplaceSearchViewStyle().toString();
}
origin: org.opencms/opencms-core

/**
 * Gets the workplace search view style.
 *
 * @return the workplace search view style
 */
@PrefMetadata(type = CmsHiddenBuiltinPreference.class)
public String getWorkplaceSearchViewStyle() {
  return m_settings.getWorkplaceSearchViewStyle().toString();
}
origin: org.opencms/opencms-solr

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())) {
origin: org.opencms/opencms-solr

m_workplaceSearchViewStyle = CmsSearchResultStyle.valueOf((String)m_user.getAdditionalInfo(PREFERENCES
  + CmsWorkplaceConfiguration.N_WORKPLACESEARCH
  + CmsWorkplaceConfiguration.N_SEARCHVIEWSTYLE));
origin: org.opencms/opencms-core

m_user.setAdditionalInfo(
  PREFERENCES + CmsWorkplaceConfiguration.N_WORKPLACESEARCH + CmsWorkplaceConfiguration.N_SEARCHVIEWSTYLE,
  getWorkplaceSearchViewStyle().toString());
origin: org.opencms/opencms-core

m_workplaceSearchViewStyle = CmsSearchResultStyle.valueOf(
  (String)m_user.getAdditionalInfo(
    PREFERENCES
origin: org.opencms/org.opencms.workplace

/**
 * Returns the "workplace search result style" setting.<p>
 *
 * @return the "workplace search result style" setting
 */
public String getParamTabExWorkplaceSearchResult() {
  return m_userSettings.getWorkplaceSearchViewStyle().toString();
}
origin: org.opencms/opencms-solr

m_workplaceManager.getDefaultUserSettings().getWorkplaceSearchViewStyle().toString());
origin: org.opencms/opencms-core

/**
 * 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));
}
origin: org.opencms/opencms-solr

m_user.setAdditionalInfo(PREFERENCES
  + CmsWorkplaceConfiguration.N_WORKPLACESEARCH
  + CmsWorkplaceConfiguration.N_SEARCHVIEWSTYLE, getWorkplaceSearchViewStyle().toString());
origin: org.opencms/opencms-solr

/**
 * 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;
  }
}
org.opencms.dbCmsUserSettings$CmsSearchResultStyle

Javadoc

Enumeration class for workplace search result styles.

Most used methods

  • getMode
  • toString
  • valueOf
    Returns the copy mode object from the old copy mode integer.
  • getKey
    Returns the localization key for this style.

Popular in Java

  • Creating JSON documents from java classes using gson
  • getApplicationContext (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • getContentResolver (Context)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now