Interface MessengerAccountModifier
- All Superinterfaces:
IntermediateStorageProvider
,Modifier<MessengerAccount>
,UndeletableModifier<MessengerAccount>
public interface MessengerAccountModifier
extends UndeletableModifier<MessengerAccount>, IntermediateStorageProvider
Defines an API to modify an instance of type
MessengerAccount
- Since:
- 12.20
-
Method Summary
Modifier and TypeMethodDescriptionGet the current chat channel which is held in thisMessengerAccountModifier
.getName()
Get the current messenger account name which is held in thisMessengerAccountModifier
.Get the current protocol which is held in thisMessengerAccountModifier
.Get the current tenant which is held in thisMessengerAccountModifier
.boolean
Get the current enabled state which is held in thisMessengerAccountModifier
.setChannel
(ChatChannel chatChannel) Change the chat channel of the associatedMessengerAccount
.setEnabled
(boolean enabled) Change the enabled state of the associatedMessengerAccount
.Change the name of the associatedMessengerAccount
.setProtocol
(String protocol) Change the protocol of the associatedMessengerAccount
.Change the tenant of the associatedMessengerAccount
.boolean
validateChannel
(ChatChannel chatChannel) Validate the given chat channel.boolean
validateEnabled
(boolean enabled) Validate the given enabled.boolean
validateName
(String name) Validate the given name.boolean
validateProtocol
(String protocol) Validate the given protocol.boolean
validateTenant
(Tenant tenant) Validate the given tenant.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 messenger account name which is held in thisMessengerAccountModifier
.- Returns:
- the name as String
- Since:
- 12.20
-
setName
Change the name of the associated
MessengerAccount
.The change is applied after the
Modifier.write()
method is called.- Parameters:
name
- the new name as String- Returns:
- the
MessengerAccountModifier
- Throws:
ValidationException
- if the new name is invalid- Since:
- 12.20
-
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:
- 12.20
-
getProtocol
String getProtocol()Get the current protocol which is held in thisMessengerAccountModifier
.- Returns:
- the protocol as String
- Since:
- 12.20
-
setProtocol
Change the protocol of the associated
MessengerAccount
.The change is applied after the
Modifier.write()
method is called.- Parameters:
protocol
- the new protocol as String- Returns:
- the
MessengerAccountModifier
- Throws:
ValidationException
- if the new protocol is invalid- Since:
- 12.20
-
validateProtocol
Validate the given protocol.- Parameters:
protocol
- the protocol to validate as String- Returns:
- true if the protocol is valid
- Throws:
ValidationException
- if the protocol is invalid- Since:
- 12.20
-
getChannel
ChatChannel getChannel()Get the current chat channel which is held in thisMessengerAccountModifier
.- Returns:
- the chat channel
- Since:
- 12.20
-
setChannel
Change the chat channel of the associated
MessengerAccount
.The change is applied after the
Modifier.write()
method is called.- Parameters:
chatChannel
- the new chat channel- Returns:
- the
MessengerAccountModifier
- Throws:
ValidationException
- if the new chat channel is invalid- Since:
- 12.20
-
validateChannel
Validate the given chat channel.- Parameters:
chatChannel
- the chat channel to validate- Returns:
- true if the chat channel is valid
- Throws:
ValidationException
- if the chat channel is invalid- Since:
- 12.20
-
getTenant
Tenant getTenant()Get the current tenant which is held in thisMessengerAccountModifier
.- Returns:
- the tenant
- Since:
- 12.20
-
setTenant
Change the tenant of the associated
MessengerAccount
.The change is applied after the
Modifier.write()
method is called.- Parameters:
tenant
- the new tenant- Returns:
- the
MessengerAccountModifier
- Throws:
ValidationException
- if the new tenant is invalid- Since:
- 12.20
-
validateTenant
Validate the given tenant.- Parameters:
tenant
- the tenant to validate- Returns:
- true if the tenant is valid
- Throws:
ValidationException
- if the tenant is invalid- Since:
- 12.20
-
isEnabled
boolean isEnabled()Get the current enabled state which is held in thisMessengerAccountModifier
.- Returns:
- the enabled state
- Since:
- 12.20
-
setEnabled
Change the enabled state of the associated
MessengerAccount
.The change is applied after the
Modifier.write()
method is called.- Parameters:
enabled
- the new enabled state- Returns:
- the
MessengerAccountModifier
- Throws:
ValidationException
- if the new enabled state cannot be applied- Since:
- 12.20
-
validateEnabled
Validate the given enabled.- Parameters:
enabled
- the enabled state to validate- Returns:
- true if the enabled is valid
- Throws:
ValidationException
- if the enabled is invalid- Since:
- 12.20
-