Package org.dmd.dmp.server.servlet.generated.dmw

Examples of org.dmd.dmp.server.servlet.generated.dmw.UserRIDMW


   
    UserFolderRIDMW  uf = new UserFolderRIDMW();
    uf.setDotName(new DotName("uf"));
    cache.addObject(uf);
   
    UserRIDMW    user1 = new UserRIDMW();
    user1.setDotName(new DotName("uf.1"));
    user1.setUserName("user1");
    user1.setPassword("user1");
    cache.addObject(user1);
    users.put(user1.getUserName(), user1);
   
    UserRIDMW    user2 = new UserRIDMW();
    user2.setDotName(new DotName("uf.2"));
    user2.setUserName("user2");
    user2.setPassword("user2");
    cache.addObject(user2);
    users.put(user1.getUserName(), user1);
   
    SessionFolderRIDMW  sf = new SessionFolderRIDMW();
    sf.setDotName(new DotName("sf"));
View Full Code Here


  @Override
  public LoginResponse login(LoginRequest request){
    LoginResponse response = request.getResponse();
   
    synchronized (sessions) {
      UserRIDMW user = users.get(request.getUserName());
     
      if (user == null){
        // Just indicate that there was an error, don't provide additional info
        response.setResponseType(ResponseTypeEnum.ERROR);
       
        if (request.isTrackingEnabled())
          logger.warn("Unknown user: " + request.getUserName());
      }
      else{
        if (!user.getPassword().equals(request.getPassword())){
          response.setResponseType(ResponseTypeEnum.ERROR);
         
          if (request.isTrackingEnabled())
            logger.warn("Incorrect password for user: " + request.getUserName());
        }
View Full Code Here

TOP

Related Classes of org.dmd.dmp.server.servlet.generated.dmw.UserRIDMW

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.