Interface TextModuleModifier
-
- All Superinterfaces:
Modifier<TextModule>
,TextModuleNodeModifier<TextModule>
public interface TextModuleModifier extends TextModuleNodeModifier<TextModule>
Defines an API to modify an instance of typeTextModule
- Since:
- 10.0.206
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TextModuleModifier
activateNotification()
Set the last save date with notify agents activated to the time of persisting the associatedTextModule
.java.lang.String
getContent()
java.lang.String
getDescription()
Get the current textmodule description which is held in thisTextModuleModifier
.java.lang.String
getLanguageCode()
java.util.Optional<java.util.Date>
getLastChangeDateWithNotify()
java.lang.String
getShortcut()
boolean
isTopTextRelevant()
boolean
isVisible()
Get the current visibility which is held in thisTextModuleNodeModifier
.TextModuleModifier
setContent(java.lang.String content)
Change the content of the associatedTextModule
.TextModuleModifier
setDescription(java.lang.String description)
Change the description of the associatedTextModule
.TextModuleModifier
setLanguageCode(java.lang.String languageCode)
Change the ISO 639-1 language code of the associatedTextModule
.TextModuleModifier
setName(java.lang.String name)
Change the name of the associatedTextModuleNode
.TextModuleModifier
setShortcut(java.lang.String shortcut)
Change the shortcut of the associatedTextModule
.TextModuleModifier
setTopTextRelevant(boolean topTextRelevant)
Change the top text relevancy of the associatedTextModule
.TextModuleModifier
setVisible(boolean visible)
Change the visibility.boolean
validateContent(java.lang.String content)
Validate the given content.boolean
validateDescription(java.lang.String description)
Validate the given description.boolean
validateLanguageCode(java.lang.String languageCode)
Validate the given ISO 639-1 language code.boolean
validateShortcut(java.lang.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 Detail
-
setName
TextModuleModifier setName(java.lang.String name) throws ValidationException
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
TextModuleModifier setVisible(boolean visible) throws ValidationException
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
boolean validateVisible(boolean visible) throws ValidationException
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
java.lang.String getDescription()
Get the current textmodule description which is held in thisTextModuleModifier
.- Returns:
- the description as String
- Since:
- 10.0.206
-
setDescription
TextModuleModifier setDescription(java.lang.String description) throws ValidationException
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
boolean validateDescription(java.lang.String description) throws ValidationException
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
java.lang.String getLanguageCode()
- Returns:
- the current ISO 639-1 language code which is held in this
TextModuleModifier
. - Since:
- 10.0.206
-
setLanguageCode
TextModuleModifier setLanguageCode(java.lang.String languageCode) throws ValidationException
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
boolean validateLanguageCode(java.lang.String languageCode) throws ValidationException
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
java.lang.String getShortcut()
- Returns:
- the current shortcut which is held in this
TextModuleModifier
. - Since:
- 10.0.206
-
setShortcut
TextModuleModifier setShortcut(java.lang.String shortcut) throws ValidationException
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
boolean validateShortcut(java.lang.String shortcut) throws ValidationException
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
TextModuleModifier setTopTextRelevant(boolean topTextRelevant) throws ValidationException
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
boolean validateTopTextRelevant(boolean topTextRelevant) throws ValidationException
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
java.lang.String getContent()
- Returns:
- the current content which is held in this
TextModuleModifier
. - Since:
- 10.0.206
-
setContent
TextModuleModifier setContent(java.lang.String content) throws ValidationException
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
boolean validateContent(java.lang.String content) throws ValidationException
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
java.util.Optional<java.util.Date> 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
-
-