Package efrei.ngo.entity

Examples of efrei.ngo.entity.User


      Statement statement=conn.createStatement();
      String sql ="SELECT usename,id_pi FROM PersonalInformation";
      ResultSet rs=statement.executeQuery(sql);
     
      while(rs.next()){
        arrUser.add(new User(rs.getInt("id_pi"),rs.getString("usename")));
      }
      statement.close();
    }catch(Exception ex){
      ex.printStackTrace();
      return null;
View Full Code Here


      ResultSet rs=statement.executeQuery(sql);
      Floor temp4add;
     
      while(rs.next()){
        temp4add=new Floor(rs.getString("postID"), rs.getString("floorID"), rs.getString("context"),
            efrei.ngo.util.GeneralUnil.changeDateToGregorianCalendar(rs.getDate("postDate")), new User(rs.getInt("owner")),new User(rs.getInt("toSomebody")));
        floorList.add(temp4add);
      }
      statement.close();
    }catch(Exception ex){
      ex.printStackTrace();
View Full Code Here

    // TODO Auto-generated method stub
    String logUNOrEM = request.getParameter("usernameORemail");
    String logPassword = request.getParameter("psw");
    boolean logIsEmail = request.getParameter("isEmail").equals("true") ? true
        : false;
    User temp;

    JSONObject jObResponse = new JSONObject();

    if (logIsEmail) {
      temp = new User(logUNOrEM, "");
    } else {
      temp = new User("", logUNOrEM);
    }
    DatabaseAccess.connectToDB();
    try {
      if (temp.validate(logPassword)) {
        jObResponse.accumulate("result", true);
      } else {
        jObResponse.accumulate("result", false);
      }
    } catch (JSONException e) {
View Full Code Here

TOP

Related Classes of efrei.ngo.entity.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.