Package com.google.gdata.data.appsforyourdomain

Examples of com.google.gdata.data.appsforyourdomain.Login


        throw new NotModifiedException();
      } else {
        List entryList = new LinkedList();
        for (Iterator iter = userList.iterator(); iter.hasNext(); ) {
          UserEntry userEntry = new UserEntry();
          Login login = new Login();
          login.setUserName((String) iter.next());
          userEntry.addExtension(login);
          entryList.add(userEntry);
        }
        UserFeed userFeed = new UserFeed();
        userFeed.getEntries().addAll(entryList);
View Full Code Here


     
      public BaseEntry getEntry(URL url, Class klass) {
        if (url.toString().endsWith("admin")) {
          return new UserEntry() {
            public Login getLogin() {
              Login login = new Login();
              login.setAdmin(Boolean.TRUE);
              return login;
            }
          };
        } else {
          return new UserEntry() {
            public Login getLogin() {
              Login login = new Login();
              login.setAdmin(Boolean.FALSE);
              return login;
            }
          };
        }
      }
View Full Code Here

        (quotaLimitInMb != null
            ? "' Quota Limit: '" + quotaLimitInMb + "'." : "'.")
        );

    UserEntry entry = new UserEntry();
    Login login = new Login();
    login.setUserName(username);
    login.setPassword(password);
    if (passwordHashFunction != null) {
      login.setHashFunctionName(passwordHashFunction);
    }
    entry.addExtension(login);

    Name name = new Name();
    name.setGivenName(givenName);
View Full Code Here

    NicknameEntry entry = new NicknameEntry();
    Nickname nicknameExtension = new Nickname();
    nicknameExtension.setName(nickname);
    entry.addExtension(nicknameExtension);

    Login login = new Login();
    login.setUserName(username);
    entry.addExtension(login);

    URL insertUrl = new URL(domainUrlBase + "nickname/" + SERVICE_VERSION);
    return nicknameService.insert(insertUrl, entry);
  }
View Full Code Here

        ShaPasswordEncoder pwe = new ShaPasswordEncoder();
        String passwordHashFunction = pwe.getAlgorithm();
        passwd = pwe.encodePassword(passwd, null);

        UserEntry entry = retrieveUser(username);
        Login login = entry.getLogin();

        login.setPassword(passwd);
        if (passwordHashFunction != null) {
            login.setHashFunctionName(passwordHashFunction);
        }
        login.setChangePasswordAtNextLogin(false);

        @SuppressWarnings("unused")
    UserEntry result = updateUser(username, entry);
        return true;
    }
View Full Code Here

TOP

Related Classes of com.google.gdata.data.appsforyourdomain.Login

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.