Interface I_CmsXmlContentEditorChangeHandler

All Known Implementing Classes:
A_CmsXmlContentEditorChangeHandler, CmsDelayedDefaultChangeHandler, CmsEditorChangeHandlerFormatterSelection, CmsEditorChangeHandlerProperty

Handles changes during the xml content editor session.

Allows to modify the content after certain content fields have been edited. The modifications will then be transfered to the editor.

For example, if the user sets a value for the field /link the change handler may set the value of another field /linktitle to the title of the linked resource.

  • Method Details

    • getConfiguration

      Returns the handler configuration.

      Returns:
      the handler configuration
    • getScope

      Returns the handler scope.

      Returns:
      the handler scope
    • handleChange

      CmsXmlContent handleChange(CmsObject cms, CmsXmlContent content, Locale locale, Collection<String> changedPaths)
      Handles the content change.

      Parameters:
      cms - the cms context
      content - the changed content
      locale - the edited locale
      changedPaths - the changed content value paths
      Returns:
      the changed content
    • setConfiguration

      void setConfiguration(String configuration)
      Sets the configuration.

      Parameters:
      configuration - the configuration
    • setScope

      void setScope(String scope)
      Sets the scope to observe for changes.

      With a scope set to '/link' all changes below the path /link will be observed.

      Parameters:
      scope - the scope