View Javadoc
1   // license-header java merge-point
2   /**
3    * This is only generated once! It will never be overwritten.
4    * You can (and have to!) safely modify it by hand.
5    */
6   package org.andromda.timetracker.service;
7   
8   import org.andromda.timetracker.domain.User;
9   import org.andromda.timetracker.vo.UserDetailsVO;
10  
11  /**
12   * @see org.andromda.timetracker.service.SecurityService
13   */
14  public class SecurityServiceImpl
15      extends SecurityServiceBase
16  {
17      /**
18       * @see org.andromda.timetracker.service.SecurityService#getUserDetails(java.lang.String)
19       */
20      @Override
21      protected UserDetailsVO handleGetUserDetails(String username)
22          throws Exception
23      {
24          UserDetailsVO userDetailsVO = null;
25          User user = getUserDao().getUserDetails(username);
26          if (user != null)
27          {
28              userDetailsVO = getUserDao().toUserDetailsVO(user);
29          }
30          return userDetailsVO;
31      }
32  }