Interface MessengerAccountPersistencyHandler
-
public interface MessengerAccountPersistencyHandler
A persistency handler to create, update or delete instances ofMessengerAccount
- Since:
- 11.15
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MessengerAccountModifier
createMessengerAccount(java.util.Optional<User> user)
Create a newMessengerAccount
object.MessengerAccountModifier
getMessengerAccountModifier(MessengerAccount messengerAccount, java.util.Optional<User> user)
Build aMessengerAccountModifier
for the passedMessengerAccount
object.
-
-
-
Method Detail
-
createMessengerAccount
MessengerAccountModifier createMessengerAccount(java.util.Optional<User> user)
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, java.util.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
-
-