Interface TextModuleSecondLevelGroupModifier
-
- All Superinterfaces:
Modifier<TextModuleSecondLevelGroup>
,TextModuleGroupModifier<TextModuleSecondLevelGroup>
,TextModuleNodeModifier<TextModuleSecondLevelGroup>
public interface TextModuleSecondLevelGroupModifier extends TextModuleGroupModifier<TextModuleSecondLevelGroup>
Defines an API to modify an instance of typeTextModuleSecondLevelGroup
- Since:
- 10.0.206
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TextModuleFirstLevelGroup
getParent()
Get the current parent textmodule first level group which is held in thisTextModuleSecondLevelGroupModifier
.TextModuleSecondLevelGroupModifier
setChildTextModules(java.util.List<TextModule> childTextModules)
Change the direct child textmodules list of the associatedTextModuleGroup
.TextModuleSecondLevelGroupModifier
setName(java.lang.String name)
Change the name of the associatedTextModuleNode
.TextModuleSecondLevelGroupModifier
setParent(TextModuleFirstLevelGroup textModuleFirstLevelGroup)
Change the parent textmodule first level group of the associatedTextModuleSecondLevelGroup
.boolean
validateChildTextModules(java.util.List<TextModule> childTextModules)
Validate the given direct child textmodules list.boolean
validateParent(TextModuleFirstLevelGroup textModuleFirstLevelGroup)
Validate the given parent textmodule first level group.-
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.TextModuleGroupModifier
getChildTextModules
-
Methods inherited from interface com.novomind.ecom.api.imail.routing.persistence.TextModuleNodeModifier
getName, validateName
-
-
-
-
Method Detail
-
setName
TextModuleSecondLevelGroupModifier 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 interfaceTextModuleGroupModifier<TextModuleSecondLevelGroup>
- Specified by:
setName
in interfaceTextModuleNodeModifier<TextModuleSecondLevelGroup>
- Parameters:
name
- the new name as String- Returns:
- the
TextModuleNodeModifier
- Throws:
ValidationException
- if the new name is invalid
-
getParent
TextModuleFirstLevelGroup getParent()
Get the current parent textmodule first level group which is held in thisTextModuleSecondLevelGroupModifier
.- Returns:
- the current parent textmodule first level group
- Since:
- 10.0.206
-
setParent
TextModuleSecondLevelGroupModifier setParent(TextModuleFirstLevelGroup textModuleFirstLevelGroup) throws ValidationException
Change the parent textmodule first level group of the associated
TextModuleSecondLevelGroup
.The change is applied after the
Modifier.write()
method is called.- Parameters:
textModuleFirstLevelGroup
- the new parent textmodule first level group- Returns:
- the
TextModuleSecondLevelGroupModifier
- Throws:
ValidationException
- if the new name is invalid- Since:
- 10.0.206
-
validateParent
boolean validateParent(TextModuleFirstLevelGroup textModuleFirstLevelGroup) throws ValidationException
Validate the given parent textmodule first level group.- Parameters:
textModuleFirstLevelGroup
- the parent textmodule first level group- Returns:
- true if the parent textmodule first level group is valid
- Throws:
ValidationException
- if the parent textmodule first level group is invalid- Since:
- 10.0.206
-
setChildTextModules
TextModuleSecondLevelGroupModifier setChildTextModules(java.util.List<TextModule> childTextModules) throws ValidationException
Change the direct child textmodules list of the associated
TextModuleGroup
.The change is applied after the
Modifier.write()
method is called.- Parameters:
childTextModules
- the new direct child textmodules list- Returns:
- the
TextModuleGroupModifier
- Throws:
ValidationException
- if the new new direct child textmodules list is invalid- Since:
- 10.0.206
-
validateChildTextModules
boolean validateChildTextModules(java.util.List<TextModule> childTextModules) throws ValidationException
Validate the given direct child textmodules list.- Parameters:
childTextModules
- the direct child textmodules list to validate- Returns:
- true if the direct child textmodules list is valid
- Throws:
ValidationException
- if the direct child textmodules list is invalid- Since:
- 10.0.206
-
-