Class AccountController.AccountSession

java.lang.Object
org.mybatis.jpetstore.web.controllers.AccountController.AccountSession
All Implemented Interfaces:
Serializable
Enclosing class:
AccountController

public static class AccountController.AccountSession extends Object implements Serializable
Inner class to hold account session data, compatible with JSP ${sessionScope.accountBean.*} references.
See Also:
  • Constructor Details

    • AccountSession

      public AccountSession(Account account, List<Product> myList, boolean authenticated)
      Instantiates a new account session.
      Parameters:
      account - the account
      myList - the my list
      authenticated - the authenticated
  • Method Details

    • getAccount

      public Account getAccount()
      Gets the account.
      Returns:
      the account
    • getMyList

      public List<Product> getMyList()
      Gets the my list.
      Returns:
      the my list
    • isAuthenticated

      public boolean isAuthenticated()
      Checks if is authenticated.
      Returns:
      true, if successful