Examples of retrieveUser()


Examples of net.sourceforge.guacamole.net.auth.mysql.service.UserService.retrieveUser()

        // Get user service
        UserService userService = injector.getInstance(UserService.class);

        // Get user
        MySQLUser authenticatedUser = userService.retrieveUser(credentials);
        if (authenticatedUser != null) {
            MySQLUserContext context = injector.getInstance(MySQLUserContext.class);
            context.init(authenticatedUser.getUserID());
            return context;
        }
View Full Code Here

Examples of org.acegisecurity.providers.ldap.LdapAuthenticationProvider.retrieveUser()

          LdapAuthenticationProvider ldapAuthenticationProvider =
            new LdapAuthenticationProvider(authenticator, authoritiesPopulator);
          LdapUserInfo user = authenticator.authenticate(userDetails.getUsername(),
              (String)authentication.getCredentials());
          if (user != null) {
              UserDetails u = ldapAuthenticationProvider.retrieveUser(userDetails.getUsername(),
                  authentication);         
              System.out.println("user " + u);
          }
          else {         
              throw new BadCredentialsException(messages.getMessage(
View Full Code Here

Examples of org.wikipediacleaner.api.API.retrieveUser()

        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);
        api.retrieveTokens(wiki);
        logged = true;
      }
View Full Code Here

Examples of org.wikipediacleaner.api.request.ApiUsersRequest.retrieveUser()

   */
  public User retrieveUser(
      EnumWikipedia wiki, String name) throws APIException {
    ApiUsersResult result = new ApiXmlUsersResult(wiki, httpClient);
    ApiUsersRequest request = new ApiUsersRequest(wiki, result);
    return request.retrieveUser(name);
  }

  /**
   * Retrieve raw watch list.
   * (<code>action=query</code>, <code>list=watchlistraw</code>).
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.