Exemple #1
0
  public static User getUser() {
    EhourWebSession session = EhourWebSession.getSession();

    return (session.getAuthUser() != null) ? session.getAuthUser().getUser() : null;
  }
 public static User getUser() {
   EhourWebSession session = EhourWebSession.getSession();
   AuthUser authUser = session.getAuthUser();
   return (authUser != null) ? authUser.getUser() : null;
 }