Examples of readAllUsers()


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

      if (logger.isInfoEnabled()) {
        logger.info("Orion disk usage user data job started"); //$NON-NLS-1$
      }

      IMetaStore metaStore = OrionConfiguration.getMetaStore();
      List<String> userids = metaStore.readAllUsers();
      for (String userId : userids) {
        File userRoot = metaStore.getUserHome(userId).toLocalFile(EFS.NONE, null);
        String diskUsage = getFolderSize(userRoot);
        UserInfo userInfo = metaStore.readUser(userId);
        // try to store the disk usage timestamp and value in the user profile
View Full Code Here

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

    invalidFolderAtRoot.mkdir(EFS.NONE, null);
    assertTrue(invalidFolderAtRoot.fetchInfo().exists());
    assertTrue(invalidFolderAtRoot.fetchInfo().isDirectory());

    // read all the users which will trigger the archive
    List<String> users = metaStore.readAllUsers();
    assertNotNull(users);

    // verify the invalid metadata folder has moved to the archive
    IFileStore archiveFolder = rootLocation.getChild(SimpleMetaStoreUtil.ARCHIVE);
    assertTrue(archiveFolder.fetchInfo().exists());
View Full Code Here

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

    assertNotNull(readUserInfo);
    assertEquals(readUserInfo.getUniqueId(), userInfo.getUniqueId());
    assertEquals(readUserInfo.getUserName(), userInfo.getUserName());

    // make sure the user is in the list of all users
    List<String> allUsers = metaStore.readAllUsers();
    assertTrue(allUsers.contains(userInfo.getUniqueId()));

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

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

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

    // make sure the user is not the list of all users
    allUsers = metaStore.readAllUsers();
    assertFalse(allUsers.contains(userInfo.getUniqueId()));
  }

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

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

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

    // make sure the user is not the list of all users
    List<String> allUsers = metaStore.readAllUsers();
    assertFalse(allUsers.contains(userInfo.getUniqueId()));
  }

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

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

    orgFolder.mkdir(EFS.NONE, null);
    assertTrue(orgFolder.fetchInfo().exists());
    assertTrue(orgFolder.fetchInfo().isDirectory());

    // read all the users which will trigger the archive
    List<String> users = metaStore.readAllUsers();
    assertNotNull(users);

    // verify the invalid metadata folder has moved to the archive
    IFileStore archiveFolder = rootLocation.getChild(SimpleMetaStoreUtil.ARCHIVE);
    assertTrue(archiveFolder.fetchInfo().exists());
View Full Code Here

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

      fail("Count not create a test file in the Orion Project:" + e.getLocalizedMessage());
    }
    assertTrue(invalidFileInOrg.fetchInfo().exists());

    // read all the users which will trigger the archive
    List<String> users = metaStore.readAllUsers();
    assertNotNull(users);

    // verify the invalid metadata file has moved to the archive
    IFileStore archiveFolder = rootLocation.getChild(SimpleMetaStoreUtil.ARCHIVE);
    assertTrue(archiveFolder.fetchInfo().exists());
View Full Code Here

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

      fail("Count not create a test file in the Orion Project:" + e.getLocalizedMessage());
    }
    assertTrue(invalidFileAtRoot.fetchInfo().exists());

    // read all the users which will trigger the archive
    List<String> users = metaStore.readAllUsers();
    assertNotNull(users);

    // verify the invalid metadata file has moved to the archive
    IFileStore archiveFolder = rootLocation.getChild(SimpleMetaStoreUtil.ARCHIVE);
    assertTrue(archiveFolder.fetchInfo().exists());
View Full Code Here

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

    invalidFolderInOrg.mkdir(EFS.NONE, null);
    assertTrue(invalidFolderInOrg.fetchInfo().exists());
    assertTrue(invalidFolderInOrg.fetchInfo().isDirectory());

    // read all the users which will trigger the archive
    List<String> users = metaStore.readAllUsers();
    assertNotNull(users);

    // verify the invalid metadata folder has moved to the archive
    IFileStore archiveFolder = rootLocation.getChild(SimpleMetaStoreUtil.ARCHIVE);
    assertTrue(archiveFolder.fetchInfo().exists());
View Full Code Here

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

    userInfo2.setUserName("john");
    userInfo2.setFullName("John Doe");
    metaStore.createUser(userInfo2);

    // both user should be in the users list
    List<String> allUsers = metaStore.readAllUsers();
    assertNotNull(allUsers);
    assertTrue(allUsers.contains(userInfo1.getUniqueId()));
    assertTrue(allUsers.contains(userInfo2.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.