Interface MessengerAccountPersistencyHandler
public interface MessengerAccountPersistencyHandler
A persistency handler to create, update or delete instances of
MessengerAccount
- Since:
- 11.15
-
Method Summary
Modifier and TypeMethodDescriptioncreateMessengerAccount
(Optional<User> user) Create a newMessengerAccount
object.getMessengerAccountModifier
(MessengerAccount messengerAccount, Optional<User> user) Build aMessengerAccountModifier
for the passedMessengerAccount
object.
-
Method Details
-
createMessengerAccount
Create a newMessengerAccount
object. TheMessengerAccount
is persisted after calling theModifier.write()
method of the returnedMessengerAccountModifier
.- Parameters:
user
- pass a user, if called in an user context. Otherwise pass an empty optional.- Returns:
- a
MessengerAccountModifier
associated with the newMessengerAccount
. - Since:
- 12.20
-
getMessengerAccountModifier
MessengerAccountModifier getMessengerAccountModifier(MessengerAccount messengerAccount, Optional<User> user) Build aMessengerAccountModifier
for the passedMessengerAccount
object.- Parameters:
messengerAccount
- the instance to modifyuser
- pass a user, if called in an user context. Otherwise pass an empty optional.- Returns:
- a
MessengerAccountModifier
associated with theMessengerAccount
. - Since:
- 12.20
-