Examples of WorkspaceInfo


Examples of com.codicesoftware.plastic.commontypes.WorkspaceInfo

    try
        {
      CreateWorkspaceCommand mkwk = new CreateWorkspaceCommand(wkName, wkPath);
      mkwk.Execute();

            WorkspaceInfo wkInfo = getWorkpsaceInfoFromPath(wkPath);

      if(wkInfo == null) {
        String message = "Unable to create workspace name " + wkName + " at " + wkPath;
        log.warn(message);
        throw new RepositoryException(message);
View Full Code Here

Examples of com.google.collide.dto.WorkspaceInfo

     * their associated tree nodes.
     */
    final JsonStringMap<WorkspaceNode> idToNode = JsonCollections.createMap();
    final JsonArray<WorkspaceNode> rootNodes = JsonCollections.createArray();
    for (int i = 0; i < workspaces.size(); i++) {
      WorkspaceInfo value = workspaces.get(i);
      WorkspaceNode node = new WorkspaceNode(value);
      rootNodes.add(node);
      idToNode.put(value.getId(), node);
    }

    /*
     * Iterate over the list of workspaces and add each workspace as a child of
     * its parent.
     */
    int count = rootNodes.size();
    for (int i = 0; i < count; i++) {
      WorkspaceNode node = rootNodes.get(i);
      WorkspaceInfo workspace = node.getWorkspace();
      WorkspaceNode parentNode = idToNode.get(workspace.getParentId());
      if (parentNode != null) {
        parentNode.addChild(node);

        // This node has a parent, so it is not a root node.
        rootNodes.remove(i);
View Full Code Here

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

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

        Collection<CollectionInfo> collections = w.getCollections(null);
        assertEquals(2, collections.size());

        assertEquals(2, p.getFilters(null).length); // Parameter isn't used
    }
View Full Code Here

Examples of org.apache.jackrabbit.core.RepositoryImpl.WorkspaceInfo

        pmList.add(pm);
        String[] wspNames = rep.getWorkspaceNames();
        Session[] sessions = new Session[wspNames.length];
        for (int i = 0; i < wspNames.length; i++) {
            String wspName = wspNames[i];
            WorkspaceInfo wspInfo = rep.getWorkspaceInfo(wspName);
            // this will initialize the workspace if required
            SessionImpl session = SystemSession.create(rep, wspInfo.getConfig());
            // mark this session as 'active' so the workspace does not get disposed
            // by the workspace-janitor until the garbage collector is done
            rep.onSessionCreated(session);
            // the workspace could be disposed again, so re-initialize if required
            // afterwards it will not be disposed because a session is registered
            wspInfo.initialize();
            sessions[i] = session;
            pm = wspInfo.getPersistenceManager();
            pmList.add(pm);
        }
        IterablePersistenceManager[] ipmList = new IterablePersistenceManager[pmList.size()];
        for (int i = 0; i < pmList.size(); i++) {
            pm = pmList.get(i);
View Full Code Here

Examples of org.apache.jackrabbit.core.RepositoryImpl.WorkspaceInfo

        pmList.add(pm);
        String[] wspNames = rep.getWorkspaceNames();
        Session[] sessions = new Session[wspNames.length];
        for (int i = 0; i < wspNames.length; i++) {
            String wspName = wspNames[i];
            WorkspaceInfo wspInfo = rep.getWorkspaceInfo(wspName);
            // this will initialize the workspace if required
            SessionImpl session = SystemSession.create(rep, wspInfo.getConfig());
            // mark this session as 'active' so the workspace does not get disposed
            // by the workspace-janitor until the garbage collector is done
            rep.onSessionCreated(session);
            // the workspace could be disposed again, so re-initialize if required
            // afterwards it will not be disposed because a session is registered
            wspInfo.initialize();
            sessions[i] = session;
            pm = wspInfo.getPersistenceManager();
            pmList.add(pm);
        }
        IterablePersistenceManager[] ipmList = new IterablePersistenceManager[pmList.size()];
        for (int i = 0; i < pmList.size(); i++) {
            pm = pmList.get(i);
View Full Code Here

Examples of org.apache.jackrabbit.core.RepositoryImpl.WorkspaceInfo

        pmList.add(pm);
        String[] wspNames = rep.getWorkspaceNames();
        Session[] sessions = new Session[wspNames.length];
        for (int i = 0; i < wspNames.length; i++) {
            String wspName = wspNames[i];
            WorkspaceInfo wspInfo = rep.getWorkspaceInfo(wspName);
            // this will initialize the workspace if required
            SessionImpl session = SystemSession.create(rep, wspInfo.getConfig());
            // mark this session as 'active' so the workspace does not get disposed
            // by the workspace-janitor until the garbage collector is done
            rep.onSessionCreated(session);
            // the workspace could be disposed again, so re-initialize if required
            // afterwards it will not be disposed because a session is registered
            wspInfo.initialize();
            sessions[i] = session;
            pm = wspInfo.getPersistenceManager();
            pmList.add(pm);
        }
        IterablePersistenceManager[] ipmList = new IterablePersistenceManager[pmList.size()];
        for (int i = 0; i < pmList.size(); i++) {
            pm = pmList.get(i);
View Full Code Here

Examples of org.eclipse.orion.server.core.metastore.WorkspaceInfo

      path = path.removeFirstSegments(1);
    }

    //path format is /file/{workspaceId}/{projectName}[/path]
    final IMetaStore metaStore = OrionConfiguration.getMetaStore();
    WorkspaceInfo workspace = metaStore.readWorkspace(path.segment(1));
    assertNotNull(workspace);
    ProjectInfo wp = metaStore.readProject(workspace.getUniqueId(), path.segment(2));
    assertNotNull(wp);
    String userId = workspace.getUserId();
    assertNotNull(userId);
    IFileStore fsStore = getProjectStore(wp, userId);
    fsStore = fsStore.getFileStore(path.removeFirstSegments(3));

    File file = new File(fsStore.toURI());
View Full Code Here

Examples of org.geoserver.catalog.WorkspaceInfo

           
            //handle the case of a store changing workspace
            if ( source instanceof StoreInfo ) {
                i = event.getPropertyNames().indexOf( "workspace");
                if ( i > -1 ) {
                    WorkspaceInfo newWorkspace = (WorkspaceInfo) event.getNewValues().get( i );
                    File oldDir = dir( (StoreInfo) source );
                    oldDir.renameTo( new File( dir( newWorkspace ), oldDir.getName() ) );
                }
            }
           
            //handle default workspace
            if ( source instanceof Catalog ) {
                i = event.getPropertyNames().indexOf("defaultWorkspace");
                if ( i > -1 ) {
                    WorkspaceInfo defWorkspace = (WorkspaceInfo) event.getNewValues().get( i );
                    File d = rl.createDirectory( "workspaces");
                    persist(defWorkspace, new File(d, "default.xml"));
                }
            }
           
View Full Code Here

Examples of org.geoserver.catalog.WorkspaceInfo

     *            the {@link Format#getName() name} of the format to create a new raster coverage
     *            for
     */
    public CoverageStoreNewPage(final String coverageFactoryName) {
        Catalog catalog = getCatalog();
        final WorkspaceInfo workspace = catalog.getDefaultWorkspace();
        CoverageStoreInfo store = catalog.getFactory().createCoverageStore();
        store.setWorkspace(workspace);
        store.setType(coverageFactoryName);
        store.setEnabled(true);
        store.setURL("file:data/example.extension");
View Full Code Here

Examples of org.geoserver.catalog.WorkspaceInfo

        }
        if (store.getWorkspace() == null) {
            throw new IllegalArgumentException("Store must be part of a workspace");
        }

        WorkspaceInfo workspace = store.getWorkspace();
        StoreInfo existing = getStoreByName(workspace, store.getName(), StoreInfo.class);
        if (existing != null && !existing.getId().equals(store.getId())) {
            String msg = "Store '" + store.getName() + "' already exists in workspace '"
                    + workspace.getName() + "'";
            throw new IllegalArgumentException(msg);
        }
    }
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.