Package com.ateam.webstore.ui.views

Examples of com.ateam.webstore.ui.views.ContentView


   *
   * @param message
   * @return
   */
  protected ContentView getErrorContent() {
    ContentView cv = new ContentView(Constants.JSP_MESSAGE, "Opps...");
    return cv;
  }
View Full Code Here


   
    r.setForm(form);
   
    r.setShowVisitorInfo(false);
   
    r.addContentView(new ContentView(JSP_REGISTRATION, "Register"));
   
    return r;
   
  }
View Full Code Here

      reg.setResultView(getRegistrationView("An account for"+reg.getEmail()+" already exists"));
    }
    else {
      View rv = new View(getMainView());
     
      rv.addContentView(new ContentView(JSP_LOGIN, "Login"));
     
      try {
        service.registerCustomer(reg.getFirstName(), reg.getLastName(), reg.getEmail(), reg.getPw(), reg.getSecurityQuestionIdLong(), reg.getSecurityAnswer());
        rv.setMessage("Registration Complete, please login.");
      } catch (Exception e) {
View Full Code Here

  }

  public View getForgotPasswordView() {
    View v = new View(getMainView());
   
    v.addContentView(new ContentView(JSP_FORGOT_PASSWORD, "Password Recovery"));
    v.setShowLogonForm(false);
   
    return v;
  }
View Full Code Here

  public View getMyAccountView() {
   
    View v = new View(getMainView());
   
    v.addContentView(new ContentView(JSP_MY_ACCOUNT, "My Account"));
   
    return v;
  }
View Full Code Here

           
            Employee e = getEmployee();
              
                if (e != null) {
                ev.setEmployee(e);
                ev.addContentView(new ContentView(JSP_EMPLOYEE_DETAILS, "Employee "+e.getId()));
                }
                else {
                        ev.addContentView(new ContentView(JSP_MESSAGE, "Not Found"));
                        ev.setMessage("Sorry, employee not found.");
                }
               
                Collection<EmployeeRoles> roles = e.getRoles();
                for (EmployeeRoles role : roles) {
View Full Code Here

              
                AdminEmployeeListView ep = new AdminEmployeeListView (getMainAdminView());
              
                ep.setEmployees(service.getAll());
              
                ContentView cv = new ContentView(JSP_EMPLOYEE_LIST, "All Employees");
               
                ep.addContentView(cv);

                return ep;
              
View Full Code Here

    public RegistrationView getAdminAddEmployeeView(String string) {
     
      RegistrationView aeav = new RegistrationView(getMainAdminView());
     
      aeav.addContentView(new ContentView(JSP_REGISTRATION, "New Employee"));
     
      aeav.setAdmin(true);
     
      RoleService rs = new RoleService();
      aeav.setRoles(rs.getAll());
View Full Code Here

     
      AdminEmployeeListView aempl = new AdminEmployeeListView(getMainAdminView());
     
      aempl.setEmployees(service.getAll());
     
      aempl.addContentView(new ContentView(JSP_EMPLOYEE_LIST, "All Employees"));

      return aempl;
    }
View Full Code Here

      updateCart();
    }
     
    CartView cv = new CartView(getMainView());
   
    cv.addContentView(new ContentView(JSP_CART, "Your Cart"));
   
    if (cart != null) {
      cv.setProducts(cart.getProducts());
    }
   
View Full Code Here

TOP

Related Classes of com.ateam.webstore.ui.views.ContentView

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.