Interface TenantModifier
- All Superinterfaces:
IntermediateStorageProvider
,Modifier<Tenant>
,UndeletableModifier<Tenant>
Defines an API to modify an instance of type
Tenant
- Since:
- 10.0.28
-
Method Summary
Modifier and TypeMethodDescriptionGet the current tenant description which is held in thisTenantModifier
.getName()
Get the current tenant name which is held in thisTenantModifier
.setDescription
(String description) Change the description of the associatedTenant
.Change the name of the associatedTenant
.boolean
validateDescription
(String description) Validate the given description.boolean
validateName
(String name) Validate the given name.Methods inherited from interface com.novomind.ecom.api.iagent.provider.IntermediateStorageProvider
getIntermediateStorage
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.UndeletableModifier
undelete
-
Method Details
-
getName
String getName()Get the current tenant name which is held in thisTenantModifier
.- Returns:
- the name as String
- Since:
- 10.0.28
-
setName
Change the name of the associated
Tenant
.The change is applied after the
Modifier.write()
method is called.- Parameters:
name
- the new name as String- Returns:
- the
TenantModifier
- Throws:
ValidationException
- if the new name is invalid- Since:
- 10.0.28
-
validateName
Validate the given name.- Parameters:
name
- the name to validate as String- Returns:
- true if the name is valid
- Throws:
ValidationException
- if the name is invalid- Since:
- 10.0.28
-
getDescription
String getDescription()Get the current tenant description which is held in thisTenantModifier
.- Returns:
- the description as String
- Since:
- 10.0.28
-
setDescription
Change the description of the associated
Tenant
.The change is applied after the
Modifier.write()
method is called.- Parameters:
description
- the new description as String- Returns:
- the
TenantModifier
- Throws:
ValidationException
- if the new description is invalid- Since:
- 10.0.28
-
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.28
-