Interface MessengerAccountPersistencyHandler


  • public interface MessengerAccountPersistencyHandler
    A persistency handler to create, update or delete instances of MessengerAccount
    Since:
    11.15
    • Method Detail

      • createMessengerAccount

        MessengerAccountModifier createMessengerAccount​(java.util.Optional<User> user)
        Create a new MessengerAccount object. The MessengerAccount is persisted after calling the Modifier.write() method of the returned MessengerAccountModifier.
        Parameters:
        user - pass a user, if called in an user context. Otherwise pass an empty optional.
        Returns:
        a MessengerAccountModifier associated with the new MessengerAccount.
        Since:
        12.20
      • getMessengerAccountModifier

        MessengerAccountModifier getMessengerAccountModifier​(MessengerAccount messengerAccount,
                                                             java.util.Optional<User> user)
        Build a MessengerAccountModifier for the passed MessengerAccount object.
        Parameters:
        messengerAccount - the instance to modify
        user - pass a user, if called in an user context. Otherwise pass an empty optional.
        Returns:
        a MessengerAccountModifier associated with the MessengerAccount.
        Since:
        12.20