Package com.expositds.ars.domain.user

Examples of com.expositds.ars.domain.user.User


    String passwordHash = MD5(password);

    UserEntity userEntity = userRepository.findByCredentials(email,
        passwordHash);

    User user = DozerHelper.map(userEntity, User.class);

    SessionEntity sessionEntity = sessionRepository.findByUserId(user
        .getId());

    // Creating or updating user's session
    Session session = createOrUpdateSession(user, sessionEntity);
View Full Code Here


    return result;
  }

  @Override
  public User convertFrom(UserEntity source, User destination) {
    User result = null;
    UserEntity tmp = null;
   
    if (source != null) {
      tmp = HibernateHelper.initializeAndUnproxy(source);
    }
View Full Code Here

  @RequestMapping(value = "/dashboard", method = RequestMethod.GET)
  public ModelAndView showMechanicDashboard(HttpServletRequest request) {
    log.info("Mapping /mechanic/dashboard succeeds.");

    ModelAndView model = new ModelAndView();
    User user = ((Session) request.getSession().getAttribute("session"))
        .getUser();

    Mechanic mechanic = mechanicService.getMechanicById(user.getId());
    model.addObject("mechanic", mechanic);

    List<Notification> lastNotifications = notificationService
        .getNotificationsByUser(user, false, null);
    model.addObject("last_notifications", lastNotifications);
View Full Code Here

TOP

Related Classes of com.expositds.ars.domain.user.User

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.