Class CmsDynamicCategoryFieldList


  • public class CmsDynamicCategoryFieldList
    extends java.lang.Object
    Class used to keep track of optional dynamic category fields for a content.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(java.lang.String path)
      Adds a path.
      void ensureFields​(CmsObject cms, CmsXmlContent content)
      Tries to add the collected fields to all locales of the given content.
      void ensureFields​(CmsObject cms, CmsXmlContent content, java.util.Locale locale)
      Tries to add the collected fields to one locale of the given content.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • add

        public void add​(java.lang.String path)
        Adds a path.
        Parameters:
        path - the path to add
      • ensureFields

        public void ensureFields​(CmsObject cms,
                                 CmsXmlContent content)
        Tries to add the collected fields to all locales of the given content.
        Parameters:
        cms - the CMS context
        content - the content which the fields should be added to
      • ensureFields

        public void ensureFields​(CmsObject cms,
                                 CmsXmlContent content,
                                 java.util.Locale locale)
        Tries to add the collected fields to one locale of the given content.
        Parameters:
        cms - the CMS context
        content - the content to add the fields to
        locale - the locale