Package com.ursu.shared.actions

Examples of com.ursu.shared.actions.CreateUserResult


    User userToCreate = action.getUserToCreate();
   
    if(userToCreate == null )
    {
      log.severe("\nreturned because userToCreate was null!!!");
      return new CreateUserResult(sessionId, dataStoreId);
    }
    else {
      dataStoreId =  dao.createUser(userToCreate);
      log.severe("\n From dao.CreateUser(), the datastoreId is: " +dataStoreId);
      if (dataStoreId != null) {
        HttpSession session = requestProvider.get().getSession();
        session.setAttribute("login.authenticated", userToCreate.getUsername());
        sessionId = session.getId();
        return new CreateUserResult(sessionId, dataStoreId);
      }
      else return new CreateUserResult(sessionId, dataStoreId) ;
    }
   
  }
View Full Code Here

TOP

Related Classes of com.ursu.shared.actions.CreateUserResult

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.