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()
    • getUsername

      public String getUsername()
    • setUsername

      @Validate(required=true, on={"signon","newAccount","editAccount"}) public void setUsername(String username)
    • getPassword

      public String getPassword()
    • setPassword

      @Validate(required=true, on={"signon","newAccount","editAccount"}) public void setPassword(String password)
    • getMyList

      public List<Product> getMyList()
    • setMyList

      public void setMyList(List<Product> myList)
    • getLanguages

      public List<String> getLanguages()
    • getCategories

      public List<String> getCategories()
    • newAccountForm

      public net.sourceforge.stripes.action.Resolution newAccountForm()
    • 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.