Examples of readUser()


Examples of org.eclipse.orion.server.core.metastore.IMetaStore.readUser()

            String propertyKey = "property/" + currentThreadName + "/" + propertyValue.getString("property");
            userInfo.setProperty(propertyKey, propertyValue.toString());
            metaStore.updateUser(userInfo);

            // read the user again
            userInfo = metaStore.readUser("anthony");
            if (userInfo == null) {
              logger.debug("Meta File Error, could not read user anthony to verify the property.");
            } else if (userInfo.getProperty(propertyKey) == null) {
              logger.debug("Meta File Error, JSONObject is missing " + propertyKey + " that was just added.");
            }
View Full Code Here

Examples of org.eclipse.orion.server.core.metastore.IMetaStore.readUser()

          IMetaStore metaStore = getMetaStore();
          String currentThreadName = Thread.currentThread().getName();
          List<String> propertyKeys = new ArrayList<String>();

          // read the user
          UserInfo userInfo = metaStore.readUser("anthony");
          if (userInfo == null) {
            logger.debug("Meta File Error, could not read user anthony to delete a property.");
            return;
          }
View Full Code Here

Examples of org.eclipse.orion.server.core.metastore.IMetaStore.readUser()

          }

          // now delete the properties
          for (String key : propertyKeys) {
            // read the user
            userInfo = metaStore.readUser("anthony");
            if (userInfo == null) {
              logger.debug("Meta File Error, could not read user anthony to delete a property.");
              continue;
            }
View Full Code Here

Examples of org.eclipse.orion.server.core.metastore.IMetaStore.readUser()

            // set a new property
            userInfo.setProperty(key, null);
            metaStore.updateUser(userInfo);

            // read the user again
            userInfo = metaStore.readUser("anthony");
            if (userInfo == null) {
              logger.debug("Meta File Error, could not read user anthony to verify the property.");
            } else if (userInfo.getProperty(key) != null) {
              logger.debug("Meta File Error, JSONObject contains " + key + " that was just deleted.");
            }
View Full Code Here

Examples of org.eclipse.orion.server.core.metastore.IMetaStore.readUser()

        // just continue
      }
    }

    // read the user and make sure the properties are there
    userInfo = metaStore.readUser("anthony");
    int count = 0;
    Map<String, String> properties = userInfo.getProperties();
    for (String key : properties.keySet()) {
      if (key.startsWith("property/")) {
        count++;
View Full Code Here

Examples of org.eclipse.orion.server.core.metastore.IMetaStore.readUser()

        // just continue
      }
    }

    // read the user and make sure the properties are there
    userInfo = metaStore.readUser("anthony");
    int count = 0;
    Map<String, String> properties = userInfo.getProperties();
    for (String key : properties.keySet()) {
      if (key.startsWith("property/")) {
        count++;
View Full Code Here

Examples of org.eclipse.orion.server.core.metastore.IMetaStore.readUser()

        // just continue
      }
    }

    // read the user and make sure there are no properties are there
    userInfo = metaStore.readUser("anthony");
    count = 0;
    properties = userInfo.getProperties();
    for (String key : properties.keySet()) {
      if (key.startsWith("property/")) {
        count++;
View Full Code Here

Examples of org.sonatype.security.realms.tools.ConfigurationManager.readUser()

    userManager.addUser(user, "my-password");

    ConfigurationManager config = this.getConfigurationManager();

    CUser secUser = config.readUser(user.getUserId());
    Assert.assertEquals(secUser.getId(), user.getUserId());
    Assert.assertEquals(secUser.getEmail(), user.getEmailAddress());
    Assert.assertEquals(secUser.getFirstName(), user.getFirstName());
    Assert.assertEquals(secUser.getLastName(), user.getLastName());
    assertThat(this.passwordService.passwordsMatch("my-password", secUser.getPassword()), is(true));
View Full Code Here

Examples of org.sonatype.security.realms.tools.ConfigurationManager.readUser()

    user.setRoles(roles);
    userManager.updateUser(user);

    ConfigurationManager config = this.getConfigurationManager();

    CUser secUser = config.readUser(user.getUserId());
    Assert.assertEquals(secUser.getId(), user.getUserId());
    Assert.assertEquals(secUser.getEmail(), user.getEmailAddress());
    Assert.assertEquals(secUser.getFirstName(), user.getFirstName());
    Assert.assertEquals(secUser.getLastName(), user.getLastName());
    Assert.assertEquals(secUser.getPassword(), "b2a0e378437817cebdf753d7dff3dd75483af9e0");
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.