Package org.jboss.dna.graph.connector.federation

Examples of org.jboss.dna.graph.connector.federation.ProjectionParser


            Path parentOfTypeNodes = pathFactory.create(systemPath, JcrLexicon.NODE_TYPES);
            this.repositoryTypeManager.projectOnto(systemGraph, parentOfTypeNodes);
        }

        // Create the projection for the system repository ...
        ProjectionParser projectionParser = ProjectionParser.getInstance();
        String rule = "/jcr:system => /jcr:system";
        Projection.Rule[] systemProjectionRules = projectionParser.rulesFromString(this.executionContext, rule);
        this.systemSourceProjection = new Projection(systemSourceName, systemWorkspaceName, true, systemProjectionRules);

        // Define the federated repository source. Use the same name as the repository, since this federated source
        // will not be in the connection factory ...
        this.federatedSource = new FederatedRepositorySource();
View Full Code Here


        }

        synchronized (this.federatedSource) {
            if (!this.federatedSource.hasWorkspace(workspaceName)) {
                // Add the workspace to the federated source ...
                ProjectionParser projectionParser = ProjectionParser.getInstance();
                Projection.Rule[] mirrorRules = projectionParser.rulesFromString(this.executionContext, "/ => /");
                List<Projection> projections = new ArrayList<Projection>(2);
                projections.add(new Projection(sourceName, workspaceName, false, mirrorRules));
                projections.add(this.systemSourceProjection);
                this.federatedSource.addWorkspace(workspaceName, projections, isDefault);
            }
View Full Code Here

                Path parentOfTypeNodes = pathFactory.create(systemPath, JcrLexicon.NODE_TYPES);
                this.repositoryTypeManager.projectOnto(systemGraph, parentOfTypeNodes);
            }

            // Create the projection for the system repository ...
            ProjectionParser projectionParser = ProjectionParser.getInstance();
            String rule = "/jcr:system => /jcr:system";
            Projection.Rule[] systemProjectionRules = projectionParser.rulesFromString(this.executionContext, rule);
            this.systemSourceProjection = new Projection(systemSourceName, systemWorkspaceName, true, systemProjectionRules);

            // Define the federated repository source. Use the same name as the repository, since this federated source
            // will not be in the connection factory ...
            this.federatedSource = new FederatedRepositorySource();
View Full Code Here

            assert this.federatedSource != null;
            assert this.systemSourceProjection != null;
            synchronized (this.federatedSource) {
                if (!this.federatedSource.hasWorkspace(workspaceName)) {
                    // Add the workspace to the federated source ...
                    ProjectionParser projectionParser = ProjectionParser.getInstance();
                    Projection.Rule[] mirrorRules = projectionParser.rulesFromString(this.executionContext, "/ => /");
                    List<Projection> projections = new ArrayList<Projection>(2);
                    projections.add(new Projection(sourceName, workspaceName, false, mirrorRules));
                    projections.add(this.systemSourceProjection);
                    this.federatedSource.addWorkspace(workspaceName, projections, isDefault);
                }
View Full Code Here

TOP

Related Classes of org.jboss.dna.graph.connector.federation.ProjectionParser

Copyright © 2018 www.massapicom. 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.