Interface TextModuleModifier
- All Superinterfaces:
Modifier<TextModule>
,TextModuleNodeModifier<TextModule>
TextModule
- Since:
- 10.0.206
-
Method Summary
Modifier and TypeMethodDescriptionSet the last save date with notify agents activated to the time of persisting the associatedTextModule
.Get the current textmodule description which is held in thisTextModuleModifier
.boolean
boolean
Get the current visibility which is held in thisTextModuleNodeModifier
.setContent
(String content) Change the content of the associatedTextModule
.setDescription
(String description) Change the description of the associatedTextModule
.setLanguageCode
(String languageCode) Change the ISO 639-1 language code of the associatedTextModule
.Change the name of the associatedTextModuleNode
.setShortcut
(String shortcut) Change the shortcut of the associatedTextModule
.setTopTextRelevant
(boolean topTextRelevant) Change the top text relevancy of the associatedTextModule
.setVisible
(boolean visible) Change the visibility.boolean
validateContent
(String content) Validate the given content.boolean
validateDescription
(String description) Validate the given description.boolean
validateLanguageCode
(String languageCode) Validate the given ISO 639-1 language code.boolean
validateShortcut
(String shortcut) Validate the given shortcut.boolean
validateTopTextRelevant
(boolean topTextRelevant) Validate the given top text relevancy.boolean
validateVisible
(boolean visible) Validate the given visibility.Methods inherited from interface com.novomind.ecom.api.imail.routing.persistence.Modifier
delete, get, write
Methods inherited from interface com.novomind.ecom.api.imail.routing.persistence.TextModuleNodeModifier
getName, validateName
-
Method Details
-
setName
Description copied from interface:TextModuleNodeModifier
Change the name of the associated
TextModuleNode
.The change is applied after the
Modifier.write()
method is called.- Specified by:
setName
in interfaceTextModuleNodeModifier<TextModule>
- Parameters:
name
- the new name as String- Returns:
- the
TextModuleNodeModifier
- Throws:
ValidationException
- if the new name is invalid
-
isVisible
boolean isVisible()Get the current visibility which is held in thisTextModuleNodeModifier
.- Returns:
- true if visible, otherwise false
- Since:
- 10.0.206
-
setVisible
Change the visibility.
The change is applied after the
Modifier.write()
method is called.- Parameters:
visible
- the new visibility- Returns:
- the
TextModuleNodeModifier
- Throws:
ValidationException
- if the change is invalid- Since:
- 10.0.206
-
validateVisible
Validate the given visibility.- Parameters:
visible
- the new visibility- Returns:
- true if the change is valid
- Throws:
ValidationException
- if the change is invalid- Since:
- 10.0.206
-
getDescription
String getDescription()Get the current textmodule description which is held in thisTextModuleModifier
.- Returns:
- the description as String
- Since:
- 10.0.206
-
setDescription
Change the description of the associated
TextModule
.The change is applied after the
Modifier.write()
method is called.- Parameters:
description
- the new description as String- Returns:
- the
TextModuleModifier
- Throws:
ValidationException
- if the new description is invalid- Since:
- 10.0.206
-
validateDescription
Validate the given description.- Parameters:
description
- the description to validate as String- Returns:
- true if the description is valid
- Throws:
ValidationException
- if the description is invalid- Since:
- 10.0.206
-
getLanguageCode
String getLanguageCode()- Returns:
- the current ISO 639-1 language code which is held in this
TextModuleModifier
. - Since:
- 10.0.206
-
setLanguageCode
Change the ISO 639-1 language code of the associated
TextModule
.The change is applied after the
Modifier.write()
method is called.- Parameters:
languageCode
- the new ISO 639-1 language code as String or null to remove the language- Returns:
- the
TextModuleModifier
- Throws:
ValidationException
- if the new ISO 639-1 language code is invalid- Since:
- 10.0.206
-
validateLanguageCode
Validate the given ISO 639-1 language code.- Parameters:
languageCode
- the ISO 639-1 language code to validate as String- Returns:
- true if the ISO 639-1 language code is valid
- Throws:
ValidationException
- if the ISO 639-1 language code is invalid- Since:
- 10.0.206
-
getShortcut
String getShortcut()- Returns:
- the current shortcut which is held in this
TextModuleModifier
. - Since:
- 10.0.206
-
setShortcut
Change the shortcut of the associated
TextModule
.The change is applied after the
Modifier.write()
method is called.- Parameters:
shortcut
- the new shortcut as String- Returns:
- the
TextModuleModifier
- Throws:
ValidationException
- if the new shortcut is invalid- Since:
- 10.0.206
-
validateShortcut
Validate the given shortcut.- Parameters:
shortcut
- the shortcut to validate as String- Returns:
- true if the shortcut is valid
- Throws:
ValidationException
- if the shortcut is invalid- Since:
- 10.0.206
-
isTopTextRelevant
boolean isTopTextRelevant()- Returns:
- the current top text relevancy which is held in this
TextModuleModifier
. - Since:
- 10.0.206
-
setTopTextRelevant
Change the top text relevancy of the associated
TextModule
.The change is applied after the
Modifier.write()
method is called.- Parameters:
topTextRelevant
- the new top text relevancy- Returns:
- the
TextModuleModifier
- Throws:
ValidationException
- if the new top text relevancy is invalid- Since:
- 10.0.206
-
validateTopTextRelevant
Validate the given top text relevancy.- Parameters:
topTextRelevant
- the top text relevancy to validate- Returns:
- true if the top text relevancy is valid
- Throws:
ValidationException
- if the top text relevancy is invalid- Since:
- 10.0.206
-
getContent
String getContent()- Returns:
- the current content which is held in this
TextModuleModifier
. - Since:
- 10.0.206
-
setContent
Change the content of the associated
TextModule
.The change is applied after the
Modifier.write()
method is called.- Parameters:
content
- the new content as String- Returns:
- the
TextModuleModifier
- Throws:
ValidationException
- if the new content is invalid- Since:
- 10.0.206
-
validateContent
Validate the given content.- Parameters:
content
- the content to validate- Returns:
- true if the content is valid
- Throws:
ValidationException
- if the content is invalid- Since:
- 10.0.206
-
getLastChangeDateWithNotify
- Returns:
- the current optional last save date with notify agents activated which is held in this
TextModuleModifier
. - Since:
- 11.32
-
activateNotification
TextModuleModifier activateNotification()Set the last save date with notify agents activated to the time of persisting the associated
TextModule
.The change is applied after the
Modifier.write()
method is called.- Returns:
- the
TextModuleModifier
- Since:
- 11.32
-