Examples of updateProject()


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

    // move the project by renaming the project by changing the projectName
    String movedProjectName = "Moved Orion Project";
    projectInfo.setFullName(movedProjectName);

    // update the project
    metaStore.updateProject(projectInfo);

    // read the project back again
    ProjectInfo readProjectInfo = metaStore.readProject(workspaceInfo.getUniqueId(), projectInfo.getFullName());
    assertNotNull(readProjectInfo);
    assertTrue(readProjectInfo.getFullName().equals(movedProjectName));
View Full Code Here

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

    metaStore.createProject(projectInfo);

    // update the content location
    IFileStore projectLocation = metaStore.getDefaultContentLocation(projectInfo);
    projectInfo.setContentLocation(projectLocation.toURI());
    metaStore.updateProject(projectInfo);

    // read the user back again
    userInfo = metaStore.readUser(testUserLogin);
    assertNotNull(userInfo);
    assertTrue(userInfo.getUserName().equals(testUserLogin));
View Full Code Here

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

    URI newURI = new URI("file:/workspace/foo");
    projectInfo.setContentLocation(newURI);
    projectInfo.setProperty("New", "Property");

    // update the project
    metaStore.updateProject(projectInfo);

    // read the project back again
    ProjectInfo readProjectInfo = metaStore.readProject(workspaceInfo.getUniqueId(), projectInfo.getFullName());
    assertNotNull(readProjectInfo);
    assertTrue(readProjectInfo.getContentLocation().equals(newURI));
View Full Code Here

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

        return statusHandler.handleRequest(request, response, new ServerStatus(IStatus.ERROR, HttpServletResponse.SC_INTERNAL_SERVER_ERROR,
            "Error persisting project state", e));
      }
      try {
        WorkspaceResourceHandler.computeProjectLocation(request, project, null, false);
        metaStore.updateProject(project);
      } catch (CoreException e) {
        // delete the project so we don't end up with a project in a bad location
        try {
          metaStore.deleteProject(workspace.getUniqueId(), project.getFullName());
        } catch (CoreException e1) {
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.