Package com.ateam.webstore.ui.views

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


         * @param req
         * @return
         */
        public AdminEmployeeDetailsView getEmployeeDetailsView() {
              
            AdminEmployeeDetailsView ev = new AdminEmployeeDetailsView(getMainAdminView());
           
            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) {
                  ev.addRole(role.getRole().getDescription());
                }
              
                return ev;
        }
View Full Code Here

TOP

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

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.