Interface TextModuleSecondLevelGroupModifier
- All Superinterfaces:
Modifier<TextModuleSecondLevelGroup>,TextModuleGroupModifier<TextModuleSecondLevelGroup>,TextModuleNodeModifier<TextModuleSecondLevelGroup>
public interface TextModuleSecondLevelGroupModifier
extends TextModuleGroupModifier<TextModuleSecondLevelGroup>
Defines an API to modify an instance of type
TextModuleSecondLevelGroup- Since:
- 10.0.206
-
Method Summary
Modifier and TypeMethodDescriptionGet the current parent textmodule first level group which is held in thisTextModuleSecondLevelGroupModifier.setChildTextModules(List<TextModule> childTextModules) Change the direct child textmodules list of the associatedTextModuleGroup.Change the name of the associatedTextModuleNode.setParent(TextModuleFirstLevelGroup textModuleFirstLevelGroup) Change the parent textmodule first level group of the associatedTextModuleSecondLevelGroup.booleanvalidateChildTextModules(List<TextModule> childTextModules) Validate the given direct child textmodules list.booleanvalidateParent(TextModuleFirstLevelGroup textModuleFirstLevelGroup) Validate the given parent textmodule first level group.Methods inherited from interface com.novomind.ecom.api.imail.routing.persistence.Modifier
delete, get, writeMethods inherited from interface com.novomind.ecom.api.imail.routing.persistence.TextModuleGroupModifier
getChildTextModulesMethods inherited from interface com.novomind.ecom.api.imail.routing.persistence.TextModuleNodeModifier
getName, validateName
-
Method Details
-
setName
Description copied from interface:TextModuleNodeModifierChange the name of the associated
TextModuleNode.The change is applied after the
Modifier.write()method is called.- Specified by:
setNamein interfaceTextModuleGroupModifier<TextModuleSecondLevelGroup>- Specified by:
setNamein 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(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
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
-