Examples of readWorkspace()


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

  public void testReadWorkspaceSpecifyNullWorkspaceId() throws CoreException {
    // create the MetaStore
    IMetaStore metaStore = OrionConfiguration.getMetaStore();

    // read the workspace that does not exist
    WorkspaceInfo readWorkspaceInfo = metaStore.readWorkspace(null);
    assertNull(readWorkspaceInfo);
  }

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

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

    workspaceInfo1.setFullName(workspaceName1);
    workspaceInfo1.setUserId(userInfo.getUniqueId());
    metaStore.createWorkspace(workspaceInfo1);

    // read the workspace that does not exist
    WorkspaceInfo readWorkspaceInfo = metaStore.readWorkspace("anthony-Workspace77");
    assertNull(readWorkspaceInfo);
  }

  @Test
  public void testUpdateProject() throws URISyntaxException, CoreException {
View Full Code Here

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

    // update the workspace
    workspaceInfo.setProperty("New", "Property");
    metaStore.updateWorkspace(workspaceInfo);

    // read the workspace back again
    WorkspaceInfo readWorkspaceInfo = metaStore.readWorkspace(workspaceInfo.getUniqueId());
    assertNotNull(readWorkspaceInfo);
    assertEquals(readWorkspaceInfo.getProperty("New"), "Property");
  }

}
View Full Code Here

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

    } else if (workspacePath != null) {
      IPath path = new Path(workspacePath);
      // TODO: move this to CloneJob
      // if so, modify init part to create a new project if necessary
      final IMetaStore metaStore = OrionConfiguration.getMetaStore();
      WorkspaceInfo workspace = metaStore.readWorkspace(path.segment(1));
      if (cloneName == null)
        cloneName = new URIish(url).getHumanishName();
      cloneName = getUniqueProjectName(workspace, cloneName);
      webProjectExists = false;
      project = new ProjectInfo();
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.