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 newMessengerAccountobject.getMessengerAccountModifier(MessengerAccount messengerAccount, Optional<User> user) Build aMessengerAccountModifierfor the passedMessengerAccountobject.
-
Method Details
-
createMessengerAccount
Create a newMessengerAccountobject. TheMessengerAccountis 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
MessengerAccountModifierassociated with the newMessengerAccount. - Since:
- 12.20
-
getMessengerAccountModifier
MessengerAccountModifier getMessengerAccountModifier(MessengerAccount messengerAccount, Optional<User> user) Build aMessengerAccountModifierfor the passedMessengerAccountobject.- Parameters:
messengerAccount- the instance to modifyuser- pass a user, if called in an user context. Otherwise pass an empty optional.- Returns:
- a
MessengerAccountModifierassociated with theMessengerAccount. - Since:
- 12.20
-