Package org.opencms.ade.contenteditor
Class CmsDynamicCategoryFieldList
- java.lang.Object
-
- org.opencms.ade.contenteditor.CmsDynamicCategoryFieldList
-
public class CmsDynamicCategoryFieldList extends java.lang.Object
Class used to keep track of optional dynamic category fields for a content.
-
-
Constructor Summary
Constructors Constructor Description CmsDynamicCategoryFieldList()
Creates a new instance.
-
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.
-
-
-
Constructor Detail
-
CmsDynamicCategoryFieldList
public CmsDynamicCategoryFieldList()
Creates a new instance.
-
-
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 contextcontent
- 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 contextcontent
- the content to add the fields tolocale
- the locale
-
-