Package org.opencms.ade.contenteditor
Class CmsEditorChangeHandlerFormatterSelection
- java.lang.Object
-
- org.opencms.ade.contenteditor.A_CmsXmlContentEditorChangeHandler
-
- org.opencms.ade.contenteditor.CmsEditorChangeHandlerFormatterSelection
-
- All Implemented Interfaces:
I_CmsXmlContentEditorChangeHandler
public class CmsEditorChangeHandlerFormatterSelection extends A_CmsXmlContentEditorChangeHandler
Editor change handler implementation for the formatter selection in the sitemap config. If "Remove all formatters" is selected/deselected, the set of formatters that can be added/removed changes. That means, formerly explicitly added/removed formatters in the sitemap config can not be added/removed anymore. The respective content nodes must be removed. This is done by that handler.
-
-
Field Summary
-
Fields inherited from class org.opencms.ade.contenteditor.A_CmsXmlContentEditorChangeHandler
m_configuration, m_scope
-
-
Constructor Summary
Constructors Constructor Description CmsEditorChangeHandlerFormatterSelection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CmsXmlContent
handleChange(CmsObject cms, CmsXmlContent content, java.util.Locale locale, java.util.Collection<java.lang.String> changedPaths)
Adjusts the added/removed formatters if "Remove all formatters" is checked/unchecked.-
Methods inherited from class org.opencms.ade.contenteditor.A_CmsXmlContentEditorChangeHandler
getConfiguration, getScope, resolveRelativePath, setConfiguration, setScope
-
-
-
-
Constructor Detail
-
CmsEditorChangeHandlerFormatterSelection
public CmsEditorChangeHandlerFormatterSelection()
-
-
Method Detail
-
handleChange
public CmsXmlContent handleChange(CmsObject cms, CmsXmlContent content, java.util.Locale locale, java.util.Collection<java.lang.String> changedPaths)
Adjusts the added/removed formatters if "Remove all formatters" is checked/unchecked.- Parameters:
cms
- the cms contextcontent
- the changed contentlocale
- the edited localechangedPaths
- the changed content value paths- Returns:
- the changed content
- See Also:
I_CmsXmlContentEditorChangeHandler.handleChange(org.opencms.file.CmsObject, org.opencms.xml.content.CmsXmlContent, java.util.Locale, java.util.Collection)
-
-