Package org.opencms.ade.contenteditor
Class CmsDynamicCategoryFieldList
java.lang.Object
org.opencms.ade.contenteditor.CmsDynamicCategoryFieldList
Class used to keep track of optional dynamic category fields for a content.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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, Locale locale) Tries to add the collected fields to one locale of the given content.
-
Constructor Details
-
CmsDynamicCategoryFieldList
public CmsDynamicCategoryFieldList()Creates a new instance.
-
-
Method Details
-
add
Adds a path.- Parameters:
path
- the path to add
-
ensureFields
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
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
-