Package org.eclipse.orion.server.core.metastore

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


    // delete the diskusage property and update the user
    userInfo.setProperty(UserConstants2.DISK_USAGE, null);
    userInfo.setProperty(UserConstants2.DISK_USAGE_TIMESTAMP, null);
    userInfo.setProperty(UserConstants2.LAST_LOGIN_TIMESTAMP, null);
    metaStore.updateUser(userInfo);

    // read the user
    UserInfo readUserInfo3 = metaStore.readUser(userInfo.getUniqueId());
    assertNotNull(readUserInfo3);
    assertEquals(readUserInfo3.getUniqueId(), userInfo.getUniqueId());
View Full Code Here


    userInfo.setProperty(UserConstants2.DISK_USAGE, diskusage);
    userInfo.setProperty(UserConstants2.DISK_USAGE_TIMESTAMP, diskusagetimestamp);
    userInfo.setProperty(UserConstants2.LAST_LOGIN_TIMESTAMP, lastlogintimestamp);

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

    // read the user back again
    UserInfo readUserInfo4 = metaStore.readUser(testUserLogin);
    assertNotNull(readUserInfo4);
    assertEquals(testUserLogin, readUserInfo4.getUserName());
View Full Code Here

    assertEquals(testUserLogin, readUserInfo.getUserName());
    assertEquals(blocked, readUserInfo.getProperty(UserConstants2.BLOCKED));

    // delete the blocked property and update the user
    userInfo.setProperty(UserConstants2.BLOCKED, null);
    metaStore.updateUser(userInfo);

    // read the user
    UserInfo readUserInfo3 = metaStore.readUser(userInfo.getUniqueId());
    assertNotNull(readUserInfo3);
    assertEquals(readUserInfo3.getUniqueId(), userInfo.getUniqueId());
View Full Code Here

    // update the UserInfo again
    blocked = "true";
    userInfo.setProperty(UserConstants2.BLOCKED, blocked);

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

    // read the user back again
    UserInfo readUserInfo4 = metaStore.readUser(testUserLogin);
    assertNotNull(readUserInfo4);
    assertEquals(testUserLogin, readUserInfo4.getUserName());
View Full Code Here

    // update the UserInfo
    String newEmailAddress = "new@sample.ca";
    userInfo.setProperty(UserConstants2.EMAIL, newEmailAddress);

    // 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());
View Full Code Here

    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);

    // read the user
    UserInfo readUserInfo6 = metaStore.readUser(userInfo.getUniqueId());
    assertNotNull(readUserInfo6);
    assertEquals(readUserInfo6.getUniqueId(), userInfo.getUniqueId());
View Full Code Here

    // update the UserInfo
    String newoauth = "https://www.google.com/accounts/o8/id?id=AItOawmBI-L96jdXg8wdb08OzgWvXveS1_95zKI";
    userInfo.setProperty(UserConstants2.OAUTH, newoauth);

    // 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());
View Full Code Here

    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);

    // read the user
    UserInfo readUserInfo6 = metaStore.readUser(userInfo.getUniqueId());
    assertNotNull(readUserInfo6);
    assertEquals(readUserInfo6.getUniqueId(), userInfo.getUniqueId());
View Full Code Here

    // update the UserInfo
    String newOpenid = "https://www.google.com/accounts/o8/id?id=AItOawmBI-L96jdXg8wdb08OzgWvXveS1_95zKI";
    userInfo.setProperty(UserConstants2.OPENID, newOpenid);

    // 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());
View Full Code Here

    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);

    // read the user
    UserInfo readUserInfo6 = metaStore.readUser(userInfo.getUniqueId());
    assertNotNull(readUserInfo6);
    assertEquals(readUserInfo6.getUniqueId(), userInfo.getUniqueId());
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.