Examples of readUserByProperty()


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

    assertNotNull(readUserInfo2);
    assertEquals(readUserInfo2.getUniqueId(), userInfo.getUniqueId());
    assertEquals(readUserInfo2.getProperty(UserConstants2.EMAIL), newEmailAddress);

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

    // delete the email property and update the user
    userInfo.setProperty(UserConstants2.EMAIL, 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.EMAIL));

    // read the user using the cache
    UserInfo readUserInfo7 = metaStore.readUserByProperty(UserConstants2.EMAIL, newEmailAddress, 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.EMAIL, newEmailAddress, false, false);
    assertNull(readUserInfo4);
  }

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

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

    assertNotNull(readUserInfo);
    assertEquals(readUserInfo.getUniqueId(), userInfo.getUniqueId());
    assertEquals(readUserInfo.getProperty(UserConstants2.OAUTH), oauth);

    // read the user using the cache
    UserInfo readUserInfo5 = metaStore.readUserByProperty(UserConstants2.OAUTH, oauth, false, false);
    assertNotNull(readUserInfo5);
    assertEquals(readUserInfo5.getUniqueId(), userInfo.getUniqueId());
    assertEquals(readUserInfo5.getProperty(UserConstants2.OAUTH), oauth);

    // update the UserInfo
View Full Code Here

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

    // update the user
    metaStore.updateUser(userInfo);

    // read the user using the cache
    UserInfo readUserInfo2 = metaStore.readUserByProperty(UserConstants2.OAUTH, newoauth, false, false);
    assertNotNull(readUserInfo2);
    assertEquals(readUserInfo2.getUniqueId(), userInfo.getUniqueId());
    assertEquals(readUserInfo2.getProperty(UserConstants2.OAUTH), newoauth);

    // read the user using the cache
View Full Code Here

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

    assertNotNull(readUserInfo2);
    assertEquals(readUserInfo2.getUniqueId(), userInfo.getUniqueId());
    assertEquals(readUserInfo2.getProperty(UserConstants2.OAUTH), newoauth);

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

    // delete the oauth property and update the user
    userInfo.setProperty(UserConstants2.OAUTH, 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.OAUTH));

    // read the user using the cache
    UserInfo readUserInfo7 = metaStore.readUserByProperty(UserConstants2.OAUTH, newoauth, 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.OAUTH, newoauth, false, false);
    assertNull(readUserInfo4);
  }

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

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

    assertNotNull(readUserInfo);
    assertEquals(readUserInfo.getUniqueId(), userInfo.getUniqueId());
    assertEquals(openid, readUserInfo.getProperty(UserConstants2.OPENID));

    // read the user using the cache
    UserInfo readUserInfo5 = metaStore.readUserByProperty(UserConstants2.OPENID, openid, false, false);
    assertNotNull(readUserInfo5);
    assertEquals(readUserInfo5.getUniqueId(), userInfo.getUniqueId());
    assertEquals(readUserInfo5.getProperty(UserConstants2.OPENID), openid);

    // update the UserInfo
View Full Code Here

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

    // update the user
    metaStore.updateUser(userInfo);

    // read the user using the cache
    UserInfo readUserInfo2 = metaStore.readUserByProperty(UserConstants2.OPENID, newOpenid, false, false);
    assertNotNull(readUserInfo2);
    assertEquals(readUserInfo2.getUniqueId(), userInfo.getUniqueId());
    assertEquals(readUserInfo2.getProperty(UserConstants2.OPENID), newOpenid);

    // read the user using the cache
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.