Interface MessengerAccountModifier
-
- All Superinterfaces:
IntermediateStorageProvider
,Modifier<MessengerAccount>
,UndeletableModifier<MessengerAccount>
public interface MessengerAccountModifier extends UndeletableModifier<MessengerAccount>, IntermediateStorageProvider
Defines an API to modify an instance of typeMessengerAccount
- Since:
- 12.20
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ChatChannel
getChannel()
Get the current chat channel which is held in thisMessengerAccountModifier
.java.lang.String
getName()
Get the current messenger account name which is held in thisMessengerAccountModifier
.java.lang.String
getProtocol()
Get the current protocol which is held in thisMessengerAccountModifier
.Tenant
getTenant()
Get the current tenant which is held in thisMessengerAccountModifier
.boolean
isEnabled()
Get the current enabled state which is held in thisMessengerAccountModifier
.MessengerAccountModifier
setChannel(ChatChannel chatChannel)
Change the chat channel of the associatedMessengerAccount
.MessengerAccountModifier
setEnabled(boolean enabled)
Change the enabled state of the associatedMessengerAccount
.MessengerAccountModifier
setName(java.lang.String name)
Change the name of the associatedMessengerAccount
.MessengerAccountModifier
setProtocol(java.lang.String protocol)
Change the protocol of the associatedMessengerAccount
.MessengerAccountModifier
setTenant(Tenant tenant)
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(java.lang.String name)
Validate the given name.boolean
validateProtocol(java.lang.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 Detail
-
getName
java.lang.String getName()
Get the current messenger account name which is held in thisMessengerAccountModifier
.- Returns:
- the name as String
- Since:
- 12.20
-
setName
MessengerAccountModifier setName(java.lang.String name) throws ValidationException
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
boolean validateName(java.lang.String name) throws ValidationException
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
java.lang.String getProtocol()
Get the current protocol which is held in thisMessengerAccountModifier
.- Returns:
- the protocol as String
- Since:
- 12.20
-
setProtocol
MessengerAccountModifier setProtocol(java.lang.String protocol) throws ValidationException
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
boolean validateProtocol(java.lang.String protocol) throws ValidationException
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
MessengerAccountModifier setChannel(ChatChannel chatChannel) throws ValidationException
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
boolean validateChannel(ChatChannel chatChannel) throws ValidationException
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
MessengerAccountModifier setTenant(Tenant tenant) throws ValidationException
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
boolean validateTenant(Tenant tenant) throws ValidationException
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
MessengerAccountModifier setEnabled(boolean enabled) throws ValidationException
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
boolean validateEnabled(boolean enabled) throws ValidationException
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
-
-