Package net.relatedwork.server.userHelper

Examples of net.relatedwork.server.userHelper.UserInformation


  @Override
  public UserVerifyActionResult execute(UserVerifyAction action,
      ExecutionContext context) throws ActionException {

    UserInformation UIO = new UserInformation(servletContext);
   
    try {
      return UIO.verifyUser(action);
    } catch (VerificationException e) {
      throw new ActionException(e.getMessage());
    }
  }
View Full Code Here


    // Check login
    String email = loginAction.getEmail();
    String password = loginAction.getPassword();
    SessionInformation SIO = loginAction.getSession();
   
    UserInformation UIO = new UserInformation(servletContext);
   
    try {
      UIO.loginUser(loginAction);
    } catch (LoginException e) {
      throw new ActionException(e.getMessage());
    }
       
    // return LoginResult object with userdata
    SIO = UIO.updateSIO(SIO);
   
        return new LoginActionResult(SIO);
  }
View Full Code Here

    ServerSIO session = new ServerSIO(newUserAction.getSession());
    session.save();
   
    // Register new user on server
    try {
      UserInformation UIO = new UserInformation(servletContext);
      UIO.registerNewUser(newUserAction);
    } catch (NewUserError e) {
      // something went wrong
      throw new ActionException(e.getMessage());
    }
   
View Full Code Here

TOP

Related Classes of net.relatedwork.server.userHelper.UserInformation

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.