Package com.ateam.webstore.service.impl

Examples of com.ateam.webstore.service.impl.RoleService


                    View rv = new View(getAdminHomeView());
                    Employee e = null;
                    try {
                        String ssn = Utilities.padStringToLength(Math.abs(new Random().nextInt())+"", "0", 9, false);
                        e = service.registerEmployee(add.getFirstName(), add.getLastName(), add.getEmail(), add.getPw(), new Long(1), "foo", ssn, "Employee", new Date(new java.util.Date().getTime()), "A1", new Double(100000));
                        RoleService rs = new RoleService();
                        Role role = rs.getById(new Integer(add.getRoleId()));
                        EmployeeRoles er = new EmployeeRoles(new Date(new java.util.Date().getTime()), e, role);
                        EmployeeRolesService ers = new EmployeeRolesService();
                        ers.store(er);
                            rv.setMessage("Employee addition Complete");
                            add.setResultMessage("Employee successfull added");
View Full Code Here


     
      aeav.addContentView(new ContentView(JSP_REGISTRATION, "New Employee"));
     
      aeav.setAdmin(true);
     
      RoleService rs = new RoleService();
      aeav.setRoles(rs.getAll());
     
      return aeav;
    }
View Full Code Here

TOP

Related Classes of com.ateam.webstore.service.impl.RoleService

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.