public interface I_CmsXmlContentEditorChangeHandler
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.
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getConfiguration()
Returns the handler configuration.
|
java.lang.String |
getScope()
Returns the handler scope.
|
CmsXmlContent |
handleChange(CmsObject cms,
CmsXmlContent content,
java.util.Locale locale,
java.util.Collection<java.lang.String> changedPaths)
Handles the content change.
|
void |
setConfiguration(java.lang.String configuration)
Sets the configuration.
|
void |
setScope(java.lang.String scope)
Sets the scope to observe for changes.
|
java.lang.String getConfiguration()
java.lang.String getScope()
CmsXmlContent handleChange(CmsObject cms, CmsXmlContent content, java.util.Locale locale, java.util.Collection<java.lang.String> changedPaths)
cms - the cms contextcontent - the changed contentlocale - the edited localechangedPaths - the changed content value pathsvoid setConfiguration(java.lang.String configuration)
configuration - the configurationvoid setScope(java.lang.String scope)
With a scope set to '/link' all changes below the path /link will be observed.
scope - the scope