Class AccountController.AccountSession
java.lang.Object
org.mybatis.jpetstore.web.controllers.AccountController.AccountSession
- All Implemented Interfaces:
Serializable
- Enclosing class:
AccountController
Inner class to hold account session data, compatible with JSP ${sessionScope.accountBean.*} references.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAccountSession(Account account, List<Product> myList, boolean authenticated) Instantiates a new account session. -
Method Summary
Modifier and TypeMethodDescriptionGets the account.Gets the my list.booleanChecks if is authenticated.
-
Constructor Details
-
AccountSession
-
-
Method Details
-
getAccount
-
getMyList
-
isAuthenticated
public boolean isAuthenticated()Checks if is authenticated.- Returns:
- true, if successful
-