Examples of readUserByProperty()


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

    assertNotNull(readUserInfo2);
    assertEquals(readUserInfo2.getUniqueId(), userInfo.getUniqueId());
    assertEquals(readUserInfo2.getProperty(UserConstants2.OPENID), newOpenid);

    // read the user using the cache
    UserInfo readUserInfo3 = metaStore.readUserByProperty(UserConstants2.OPENID, openid, false, false);
    assertNull(readUserInfo3);

    // delete the openid property and update the user
    userInfo.setProperty(UserConstants2.OPENID, null);
    metaStore.updateUser(userInfo);
View Full Code Here

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

    assertNotNull(readUserInfo6);
    assertEquals(readUserInfo6.getUniqueId(), userInfo.getUniqueId());
    assertNull(readUserInfo6.getProperty(UserConstants2.OPENID));

    // read the user using the cache
    UserInfo readUserInfo7 = metaStore.readUserByProperty(UserConstants2.OPENID, newOpenid, false, false);
    assertNull(readUserInfo7);

    // delete the user
    metaStore.deleteUser(userInfo.getUniqueId());
View Full Code Here

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

    // delete the user
    metaStore.deleteUser(userInfo.getUniqueId());

    // read the user using the cache
    UserInfo readUserInfo4 = metaStore.readUserByProperty(UserConstants2.OPENID, newOpenid, false, false);
    assertNull(readUserInfo4);
  }

  @Test
  public void testReadUserByPasswordProperty() throws CoreException {
View Full Code Here

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

    userInfo.setUserName(testUserLogin);
    userInfo.setFullName(testUserLogin);
    metaStore.createUser(userInfo);

    // read the user using the cache
    UserInfo readUserInfo = metaStore.readUserByProperty(UserConstants2.USER_NAME, testUserLogin, false, false);
    assertNotNull(readUserInfo);
    assertEquals(readUserInfo.getUniqueId(), userInfo.getUniqueId());
  }

  @Test
View Full Code Here

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

  protected UserInfo createUser(String login, String password) {
    UserInfo userInfo = null;
    try {
      // see if the user exists already
      IMetaStore metaStore = OrionConfiguration.getMetaStore();
      userInfo = metaStore.readUserByProperty(UserConstants2.USER_NAME, login, false, false);
      if (userInfo != null) {
        return userInfo;
      }

      // create new user in the metadata storage
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.