Interface AccountSelectionHandler

All Superinterfaces:
CancelableHandler

public interface AccountSelectionHandler extends CancelableHandler
The object handling the outcome of an interaction where the user chooses the account to be used.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    This method must be invoked if the operation must be canceled.
    void
    username(String username)
    Provides the username of the account selected by the user.
  • Method Details

    • cancel

      void cancel()
      This method must be invoked if the operation must be canceled.
      Specified by:
      cancel in interface CancelableHandler
      Throws:
      IllegalStateException - if either this method or username(String) were previously invoked
    • username

      void username(String username)
      Provides the username of the account selected by the user.
      Parameters:
      username - the username of the selected account
      Throws:
      IllegalStateException - if either cancel() or this method were previously invoked