Codota Logo
CmsCategory.getDescription
Code IndexAdd Codota to your IDE (free)

How to use
getDescription
method
in
org.opencms.relations.CmsCategory

Best Java code snippets using org.opencms.relations.CmsCategory.getDescription (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: org.opencms/opencms-solr

/**
 * @see org.opencms.workplace.list.A_CmsListDialog#fillDetails(java.lang.String)
 */
@Override
protected void fillDetails(String detailId) {
  // get content
  List users = getList().getAllContent();
  Iterator itCategories = users.iterator();
  while (itCategories.hasNext()) {
    CmsListItem item = (CmsListItem)itCategories.next();
    String categoryPath = item.getId();
    StringBuffer html = new StringBuffer(512);
    try {
      CmsCategory category = m_categoryService.readCategory(getCms(), categoryPath, getParamResource());
      if (detailId.equals(LIST_DETAIL_PATH)) {
        html.append(category.getRootPath());
      } else if (detailId.equals(LIST_DETAIL_DESCRIPTION)) {
        // Append the description if one is given
        if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(category.getDescription())) {
          html.append(category.getDescription());
        }
      }
    } catch (Exception e) {
      // noop
    }
    item.set(detailId, html.toString());
  }
}
origin: org.opencms/org.opencms.workplace

/**
 * @see org.opencms.workplace.list.A_CmsListDialog#fillDetails(java.lang.String)
 */
@Override
protected void fillDetails(String detailId) {
  // get content
  List<CmsListItem> items = getList().getAllContent();
  Iterator<CmsListItem> itCategories = items.iterator();
  while (itCategories.hasNext()) {
    CmsListItem item = itCategories.next();
    String categoryPath = item.getId();
    StringBuffer html = new StringBuffer(512);
    try {
      CmsCategory category = m_categoryService.readCategory(getCms(), categoryPath, getParamResource());
      if (detailId.equals(LIST_DETAIL_PATH)) {
        html.append(category.getRootPath());
      } else if (detailId.equals(LIST_DETAIL_DESCRIPTION)) {
        // Append the description if one is given
        if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(category.getDescription())) {
          html.append(category.getDescription());
        }
      }
    } catch (Exception e) {
      // noop
    }
    item.set(detailId, html.toString());
  }
}
origin: org.opencms/opencms-core

/**
 * Constructor.<p>
 *
 * @param category the server-side category
 */
public CmsCategoryBean(CmsCategory category) {
  this(
    category.getId(),
    category.getTitle(),
    category.getDescription(),
    category.getPath(),
    category.getBasePath(),
    category.getRootPath());
}
org.opencms.relationsCmsCategorygetDescription

Javadoc

Returns the description.

Popular methods of CmsCategory

  • getPath
    Returns the path.
  • getRootPath
    Returns the category's root path.
  • getTitle
    Returns the title.
  • <init>
    Default constructor.
  • getBasePath
  • getCategoryPath
    Returns the category path for the given root path.
  • getId
    Returns the id.
  • getName
    Returns the mere category name without it's complete path and without the trailing folder - slash.

Popular in Java

  • Creating JSON documents from java classes using gson
  • requestLocationUpdates (LocationManager)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • onRequestPermissionsResult (Fragment)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
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