Examples of WorkspaceManager


Examples of edu.isi.karma.rep.WorkspaceManager

  }

  @Override
  public UpdateContainer doIt(Workspace workspace) throws CommandException {
    UpdateContainer uc = new UpdateContainer();
    WorkspaceManager mgr = WorkspaceManager.getInstance();
    // Remove it from the rep factory
    mgr.removeWorkspace(workspaceId);
   
    // Remove any alignments from the AlignmentManager
    AlignmentManager.Instance().removeWorkspaceAlignments(workspace.getId());
   
    // Remove it from the workspace registry
View Full Code Here

Examples of intellijcoder.workspace.WorkspaceManager

        workspaceManager.hasReceivedProblemEqualTo(problem);
    }

    @Test(timeout = TIMEOUT)
    public void testSourceTransferFromServerToClient() throws Exception {
        final WorkspaceManager workspaceManager = context.mock(WorkspaceManager.class);
        IntelliJCoderServer server = new IntelliJCoderServer(workspaceManager, new Network());

        int port = server.start();
        IntelliJCoderClient client = new IntelliJCoderClient(new Network(), port);
View Full Code Here

Examples of intellijcoder.workspace.WorkspaceManager

        assertEquals("solution class source", "solution source", client.getSolutionSource("className"));
    }

    @Test(timeout = TIMEOUT)
    public void clientRethrowsWorkspaceCreationExceptionOccuredOnServer() throws Exception {
        final WorkspaceManager workspaceManager = context.mock(WorkspaceManager.class);

        IntelliJCoderServer server = new IntelliJCoderServer(workspaceManager, new Network());
        int port = server.start();
        IntelliJCoderClient client = new IntelliJCoderClient(new Network(), port);
View Full Code Here

Examples of intellijcoder.workspace.WorkspaceManager

        }
    }

    @Test(timeout = TIMEOUT)
    public void clientRethrowsGettingSourceExceptionOccuredOnServer() throws Exception {
        final WorkspaceManager workspaceManager = context.mock(WorkspaceManager.class);

        IntelliJCoderServer server = new IntelliJCoderServer(workspaceManager, new Network());
        int port = server.start();
        IntelliJCoderClient client = new IntelliJCoderClient(new Network(), port);
View Full Code Here

Examples of intellijcoder.workspace.WorkspaceManager

        }
    }

    @Test(timeout = TIMEOUT)
    public void severalRequestsToServer() throws Exception {
        final WorkspaceManager workspaceManager = context.mock(WorkspaceManager.class);
        IntelliJCoderServer server = new IntelliJCoderServer(workspaceManager, new Network());

        int port = server.start();
        IntelliJCoderClient client = new IntelliJCoderClient(new Network(), port);
View Full Code Here

Examples of org.apache.abdera.protocol.server.WorkspaceManager

        RequestProcessor processor = this.requestProcessors.get(type);
        if (processor == null) {
            return ProviderHelper.notfound(request);
        }

        WorkspaceManager wm = getWorkspaceManager(request);
        CollectionAdapter adapter = wm.getCollectionAdapter(request);
        Transactional transaction = adapter instanceof Transactional ? (Transactional) adapter : null;
        ResponseContext response = null;
        try {
            transactionStart(transaction, request);
            response = processor.process(request, wm, adapter);
View Full Code Here

Examples of org.apache.abdera.protocol.server.WorkspaceManager

        DefaultProvider p = (DefaultProvider)applicationContext.getBean(Provider.class.getName());

        Resolver<Target> tresolver = p.getTargetResolver();
        assertTrue(tresolver instanceof RegexTargetResolver);

        WorkspaceManager wm = p.getWorkspaceManager();

        Collection<WorkspaceInfo> workspaces = wm.getWorkspaces(null);
        assertEquals(1, workspaces.size());

        WorkspaceInfo w = workspaces.iterator().next();
        assertNotNull(w);
        assertEquals("Foo Workspace", w.getTitle(null));
View Full Code Here

Examples of org.apache.abdera.protocol.server.WorkspaceManager

        RequestProcessor processor = this.requestProcessors.get(type);
        if (processor == null) {
            return ProviderHelper.notfound(request);
        }

        WorkspaceManager wm = getWorkspaceManager(request);
        CollectionAdapter adapter = wm.getCollectionAdapter(request);
        Transactional transaction = adapter instanceof Transactional ? (Transactional)adapter : null;
        ResponseContext response = null;
        try {
            transactionStart(transaction, request);
            response = processor.process(request, wm, adapter);
View Full Code Here

Examples of org.apache.abdera.protocol.server.WorkspaceManager

        RequestProcessor processor = this.requestProcessors.get(type);
        if (processor == null) {
            return ProviderHelper.notfound(request);
        }

        WorkspaceManager wm = getWorkspaceManager(request);
        CollectionAdapter adapter = wm.getCollectionAdapter(request);
        Transactional transaction = adapter instanceof Transactional ? (Transactional) adapter
                : null;
        ResponseContext response = null;
        try {
            transactionStart(transaction, request);
View Full Code Here

Examples of org.apache.abdera.protocol.server.WorkspaceManager

      TargetType type = target.getType();
      if (type == TargetType.TYPE_SERVICE &&
          method.equalsIgnoreCase("GET")) {
          return getServiceDocument(request);
      }
      WorkspaceManager wm = getWorkspaceManager(request);
     
      CollectionAdapter adapter =
        wm.getCollectionAdapter(request);
      if (adapter == null) {
        return ProviderHelper.notfound(
          request);
      }
     
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.