Examples of readUserByProperty()


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

    userPropertyCache.register(propertyKeys);
    assertTrue(userPropertyCache.isRegistered("property"));

    // add a property value and ensure it is in the cache
    userPropertyCache.add("property", "value", "user");
    assertEquals("user", userPropertyCache.readUserByProperty("property", "value", false, false));

    // update the property value and ensure it is updated in the cache
    userPropertyCache.add("property", "newvalue", "user");
    assertEquals("user", userPropertyCache.readUserByProperty("property", "newvalue", false, false));
    assertNull(userPropertyCache.readUserByProperty("property", "value", false, false));
View Full Code Here

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

    userPropertyCache.add("property", "value", "user");
    assertEquals("user", userPropertyCache.readUserByProperty("property", "value", false, false));

    // update the property value and ensure it is updated in the cache
    userPropertyCache.add("property", "newvalue", "user");
    assertEquals("user", userPropertyCache.readUserByProperty("property", "newvalue", false, false));
    assertNull(userPropertyCache.readUserByProperty("property", "value", false, false));
  }
}
View Full Code Here

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

    assertEquals("user", userPropertyCache.readUserByProperty("property", "value", false, false));

    // update the property value and ensure it is updated in the cache
    userPropertyCache.add("property", "newvalue", "user");
    assertEquals("user", userPropertyCache.readUserByProperty("property", "newvalue", false, false));
    assertNull(userPropertyCache.readUserByProperty("property", "value", false, false));
  }
}
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
    UserInfo readUserInfo = metaStore.readUserByProperty(UserConstants2.USER_NAME, testUserLogin, false, false);
    assertNotNull(readUserInfo);
    assertEquals(readUserInfo.getUniqueId(), userInfo.getUniqueId());

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

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

    // delete the user
    metaStore.deleteUser(testUserLogin);

    // read the user again
    UserInfo readUserInfo2 = metaStore.readUserByProperty(UserConstants2.USER_NAME, testUserLogin, false, false);
    assertNull(readUserInfo2);
  }

  @Test
  public void testEncodedProjectContentLocation() 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());

    // create the workspace
    String workspaceName = SimpleMetaStore.DEFAULT_WORKSPACE_NAME;
View Full Code Here

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

    UserInfo readUserInfo2 = metaStore.readUser(newUserName);
    assertNotNull(readUserInfo2);
    assertTrue(readUserInfo2.getUserName().equals(newUserName));

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

    // read the user using the cache
    UserInfo readUserInfo4 = metaStore.readUserByProperty(UserConstants2.USER_NAME, newUserName, false, false);
    assertNotNull(readUserInfo4);
View Full Code Here

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

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

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

    // read the moved workspace
    List<String> workspaceIds = userInfo.getWorkspaceIds();
View Full Code Here

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

    userInfo.setFullName(testUserLogin);
    userInfo.setProperty(UserConstants2.EMAIL, emailAddress);
    metaStore.createUser(userInfo);

    // read the user using the cache
    UserInfo readUserInfo = metaStore.readUserByProperty(UserConstants2.EMAIL, emailAddress, false, false);
    assertNotNull(readUserInfo);
    assertEquals(readUserInfo.getUniqueId(), userInfo.getUniqueId());
    assertEquals(readUserInfo.getProperty(UserConstants2.EMAIL), emailAddress);

    // 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.EMAIL, newEmailAddress, false, false);
    assertNotNull(readUserInfo2);
    assertEquals(readUserInfo2.getUniqueId(), userInfo.getUniqueId());
    assertEquals(readUserInfo2.getProperty(UserConstants2.EMAIL), newEmailAddress);

    // 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.