Examples of LoginResult


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

      }
    }
   
    try {
      SignInResult signInResult = ontClient.createUpdateUserAccount(values);
      final LoginResult loginResult = new LoginResult();
      loginResult.setSessionId(signInResult.getSessionId());
      loginResult.setUserId(signInResult.getUserId());
      loginResult.setUserName(signInResult.getUserName());
      loginResult.setUserRole(signInResult.getUserRole());
      result.setLoginResult(loginResult);

            _notifyUserCreated(loginResult);
    }
    catch (Exception e) {
View Full Code Here

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

      return null;
    }
   
    System.out.println("getOntologyInfo: " +registeredOntologyInfo.getDisplayLabel());
   
    LoginResult loginResult = orrClient.authenticateUser(username, password);
    if ( loginResult.getError() != null ) {
      System.out.println("authenticateUser: " +loginResult.getError());
      return null;
    }
    System.out.println("authenticateUser: sessionId=" +loginResult.getSessionId());
   
   
    return orrClient.unregisterOntology(loginResult, registeredOntologyInfo);
  }
View Full Code Here

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

    String namespace = tempOntologyInfo.getUri();
    log.info("tempOntologyInfo.getUri() = " +namespace);
    assertNotNull("namespace must be present", namespace);
   
    log.info("=============== authenticate user =================");
    LoginResult loginResult = _authenticateUser(orrClient);
   
    log.info("=============== createOntology =================");
    CreateOntologyInfo createOntologyInfo = new CreateOntologyInfo();
    OtherDataCreationInfo dataCreationInfo = new OtherDataCreationInfo();
    dataCreationInfo.setTempOntologyInfo(tempOntologyInfo);
View Full Code Here

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

    }
  }

  @BeforeClass
  private LoginResult _authenticateUser(IOrrClient orrClient) {
    LoginResult loginResult = orrClient.authenticateUser(username, password);
    assertNull("No error in login", loginResult.getError());
   
    return loginResult;
  }
View Full Code Here

Examples of org.projectforge.user.LoginResult

   * @return i18n key of the validation error message if not successfully logged in, otherwise null.
   */
  public static LoginResultStatus internalCheckLogin(final WebPage page, final UserDao userDao, final String username, final String password,
      final boolean userWantsToStayLoggedIn, final Class< ? extends WebPage> defaultPage)
  {
    final LoginResult loginResult = Login.getInstance().checkLogin(username, password);
    final PFUserDO user = loginResult.getUser();
    if (user == null || loginResult.getLoginResultStatus() != LoginResultStatus.SUCCESS) {
      return loginResult.getLoginResultStatus();
    }
    if (UserFilter.isUpdateRequiredFirst() == true) {
      internalLogin(page, user);
      log.info("Admin login for maintenance (data-base update) successful for user '" + username + "'.");
      throw new RestartResponseException(SystemUpdatePage.class);
View Full Code Here

Examples of org.wikipediacleaner.api.data.LoginResult

   */
  public LoginResult executeLogin(
      Map<String, String> properties)
          throws APIException {
    try {
      LoginResult result = constructLogin(getRoot(properties, 1));
      if ((result != null) && (result.isTokenNeeded())) {
        properties.put(ApiLoginRequest.PROPERTY_TOKEN, result.getDetails());
        result = constructLogin(getRoot(properties, 1));
      }
      return result;
    } catch (JDOMParseException e) {
      log.error("Exception in MediaWikiAPI.login()", e);
View Full Code Here

Examples of org.wikipediacleaner.api.data.LoginResult

   */
  public LoginResult login(String username, String password) throws APIException {
    Map<String, String> properties = getProperties(ACTION_LOGIN, result.getFormat());
    properties.put(PROPERTY_NAME, username);
    properties.put(PROPERTY_PASSWORD, password);
    LoginResult loginResult = result.executeLogin(properties);
    return loginResult;
  }
View Full Code Here

Examples of org.wikipediacleaner.api.data.LoginResult

      EnumWikipedia wiki = getWikipedia();

      // Login
      if (!reloadOnly) {
        setText(GT._("Login"));
        LoginResult result = api.login(wiki, username, new String(password), login);
        if (login) {
          if ((result == null) || (!result.isLoginSuccessful())) {
            throw new APIException("Login unsuccessful: " + ((result != null) ? result.toString() : ""));
          }
        }
        User user = api.retrieveUser(wiki, username);
        username = (user != null) ? user.getName() : null;
        wiki.getConnection().setUser(user);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.