Package org.mmisw.orrclient.gwt.client.rpc

Examples of org.mmisw.orrclient.gwt.client.rpc.UserInfoResult


      return result;
    }

    ///////////////////////////////////////////////////////////////
    // Get email address for the user
    UserInfoResult userInfoResult = getUserInfo(username);
    if ( userInfoResult.getError() != null ) {
      result.setError(userInfoResult.getError());
      return result;
    }
    final String email = userInfoResult.getProps().get("email");
    if ( email == null ) {
      result.setError("No email associated with username: " +username);
      return result;
    }
   
    ///////////////////////////////////////////////////////////////
    // get new password
    String newPassword = Util2.generatePassword();
   
    ///////////////////////////////////////////////////////////////
    // update password in back-end
    Map<String, String> values = userInfoResult.getProps();
    values.put("id", userInfoResult.getProps().get("id"));
    values.put("password", newPassword);
    values.put("sessionid", "4444444444444");
    CreateUpdateUserAccountResult updatePwResult = createUpdateUserAccount(values);
    if ( updatePwResult.getError() != null ) {
      result.setError(updatePwResult.getError());
View Full Code Here


    return result;
  }

 
  public UserInfoResult getUserInfo(String username) {
    UserInfoResult result = new UserInfoResult();
   
    try {
      Map<String, String> props = OntServiceUtil.getUserInfo(username);
      result.setProps(props);
    }
    catch (Exception e) {
      String error = "error getting user information: " +e.getMessage();
      result.setError(error);
      log.error(error, e);
    }
   
    return result;
  }
View Full Code Here

   
    ////////////////////////////////////////////////////////////////////
    // contactName: first, try firstname/lastname from userInfo:
    String contactName= "";
   
    UserInfoResult userInfoResult = orrClient.getUserInfo(loginResult.getUserName());
    if ( userInfoResult != null && userInfoResult.getError() == null ) {
      Map<String, String> userProps = userInfoResult.getProps();
      contactName = "";
      if ( userProps.get("firstname") != null ) {
        contactName += userProps.get("firstname");
      }
      if ( userProps.get("lastname") != null ) {
View Full Code Here

      return result;
    }

    ///////////////////////////////////////////////////////////////
    // Get email address for the user
    UserInfoResult userInfoResult = getUserInfo(username);
    if ( userInfoResult.getError() != null ) {
      result.setError(userInfoResult.getError());
      return result;
    }
    final String email = userInfoResult.getProps().get("email");
    if ( email == null ) {
      result.setError("No email associated with username: " +username);
      return result;
    }
   
    ///////////////////////////////////////////////////////////////
    // get new password
    String newPassword = Util2.generatePassword();
   
    ///////////////////////////////////////////////////////////////
    // update password in back-end
    Map<String, String> values = userInfoResult.getProps();
    values.put("id", userInfoResult.getProps().get("id"));
    values.put("password", newPassword);
    values.put("sessionid", "4444444444444");
    CreateUpdateUserAccountResult updatePwResult = createUpdateUserAccount(values);
    if ( updatePwResult.getError() != null ) {
      result.setError(updatePwResult.getError());
View Full Code Here

    return result;
  }

 
  public UserInfoResult getUserInfo(String username) {
    UserInfoResult result = new UserInfoResult();
   
    try {
      Map<String, String> props = OntServiceUtil.getUserInfo(username);
      result.setProps(props);
    }
    catch (Exception e) {
      String error = "error getting user information: " +e.getMessage();
      result.setError(error);
      log.error(error, e);
    }
   
    return result;
  }
View Full Code Here

TOP

Related Classes of org.mmisw.orrclient.gwt.client.rpc.UserInfoResult

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.