Class AccountActionBean

java.lang.Object
org.mybatis.jpetstore.web.actions.AbstractActionBean
org.mybatis.jpetstore.web.actions.AccountActionBean
All Implemented Interfaces:
Serializable, net.sourceforge.stripes.action.ActionBean

@SessionScope public class AccountActionBean extends AbstractActionBean
The Class AccountActionBean.
Author:
Eduardo Macarron
See Also:
  • Constructor Details

    • AccountActionBean

      public AccountActionBean()
  • Method Details

    • getAccount

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

      public String getUsername()
      Gets the username.
      Returns:
      the username
    • setUsername

      @Validate(required=true, on={"signon","newAccount","editAccount"}) public void setUsername(String username)
      Sets the username.
      Parameters:
      username - the username
    • getPassword

      public String getPassword()
      Gets the password.
      Returns:
      the password
    • setPassword

      @Validate(required=true, on={"signon","newAccount","editAccount"}) public void setPassword(String password)
      Sets the password.
      Parameters:
      password - the password
    • getMyList

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

      public void setMyList(List<Product> myList)
      Sets the my list.
      Parameters:
      myList - the my list
    • getLanguages

      public List<String> getLanguages()
      Gets the languages.
      Returns:
      the languages
    • getCategories

      public List<String> getCategories()
      Gets the categories.
      Returns:
      the categories
    • newAccountForm

      public net.sourceforge.stripes.action.Resolution newAccountForm()
      New account form.
      Returns:
      the resolution
    • newAccount

      public net.sourceforge.stripes.action.Resolution newAccount()
      New account.
      Returns:
      the resolution
    • editAccountForm

      public net.sourceforge.stripes.action.Resolution editAccountForm()
      Edits the account form.
      Returns:
      the resolution
    • editAccount

      public net.sourceforge.stripes.action.Resolution editAccount()
      Edits the account.
      Returns:
      the resolution
    • signonForm

      @DefaultHandler public net.sourceforge.stripes.action.Resolution signonForm()
      Signon form.
      Returns:
      the resolution
    • signon

      public net.sourceforge.stripes.action.Resolution signon()
      Signon.
      Returns:
      the resolution
    • signoff

      public net.sourceforge.stripes.action.Resolution signoff()
      Signoff.
      Returns:
      the resolution
    • isAuthenticated

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

      public void clear()
      Clear.