Examples of FederationManager


Examples of com.gitblit.manager.FederationManager

    // configure the Gitblit singleton for minimal, non-server operation
    RuntimeManager runtime = new RuntimeManager(settings, baseFolder).start();
    NoopNotificationManager notifications = new NoopNotificationManager().start();
    UserManager users = new UserManager(runtime).start();
    RepositoryManager repositories = new RepositoryManager(runtime, users).start();
    FederationManager federation = new FederationManager(runtime, notifications, repositories).start();
    IGitblit gitblit = new GitblitManager(runtime, null, notifications, users, null, null, repositories, null, federation);

    FederationPullService puller = new FederationPullService(gitblit, federation.getFederationRegistrations()) {
      @Override
      public void reschedule(FederationModel registration) {
        // NOOP
      }
    };
View Full Code Here

Examples of com.gitblit.manager.FederationManager

  @Provides @Singleton IFederationManager provideFederationManager(
      IRuntimeManager runtimeManager,
      INotificationManager notificationManager,
      IRepositoryManager repositoryManager) {

    return new FederationManager(
        runtimeManager,
        notificationManager,
        repositoryManager);
  }
View Full Code Here

Examples of com.gitblit.manager.FederationManager

    XssFilter xssFilter = new AllowXssFilter();
    RuntimeManager runtime = new RuntimeManager(settings, xssFilter, baseFolder).start();
    NoopNotificationManager notifications = new NoopNotificationManager().start();
    UserManager users = new UserManager(runtime, null).start();
    RepositoryManager repositories = new RepositoryManager(runtime, null, users).start();
    FederationManager federation = new FederationManager(runtime, notifications, repositories).start();
    IGitblit gitblit = new GitblitManager(runtime, null, notifications, users, null, null, repositories, null, federation);

    FederationPullService puller = new FederationPullService(gitblit, federation.getFederationRegistrations()) {
      @Override
      public void reschedule(FederationModel registration) {
        // NOOP
      }
    };
View Full Code Here

Examples of com.gitblit.manager.FederationManager

  @Provides @Singleton IFederationManager provideFederationManager(
      IRuntimeManager runtimeManager,
      INotificationManager notificationManager,
      IRepositoryManager repositoryManager) {

    return new FederationManager(
        runtimeManager,
        notificationManager,
        repositoryManager);
  }
View Full Code Here

Examples of org.datanucleus.store.FederationManager

     * Method to initialise the StoreManager used by this factory.
     * @param clr ClassLoaderResolver to use for class loading issues
     */
    protected void initialiseStoreManager(ClassLoaderResolver clr)
    {
        fed = new FederationManager(clr,getOMFContext());
    }
View Full Code Here

Examples of org.jpox.store.FederationManager

     * Method to initialise the StoreManager used by this factory.
     * @param clr ClassLoaderResolver to use for class loading issues
     */
    protected void initialiseStoreManager(ClassLoaderResolver clr)
    {
        fed = new FederationManager(clr,getOMFContext());
    }
View Full Code Here

Examples of org.modeshape.jcr.api.federation.FederationManager

        }

        public void create( Node parentNode,
                            String childName ) throws RepositoryException {
            Session session = (Session)parentNode.getSession();
            FederationManager fedMgr = session.getWorkspace().getFederationManager();
            fedMgr.createProjection(parentNode.getPath(), getName(), "/", childName);
        }
View Full Code Here

Examples of org.modeshape.jcr.api.federation.FederationManager

        assert !initialized;
        Snapshot current = this.snapshot.get();
        for (String workspaceName : current.getWorkspacesWithProjections()) {
            JcrSession session = repository.loginInternalSession(workspaceName);
            try {
                FederationManager federationManager = session.getWorkspace().getFederationManager();
                List<RepositoryConfiguration.ProjectionConfiguration> projections = current.getProjectionConfigurationsForWorkspace(workspaceName);
                for (RepositoryConfiguration.ProjectionConfiguration projectionCfg : projections) {
                    if (current.isUnused(projectionCfg.getSourceName())) {
                        LOGGER.debug("Ignoring projection '{0}' because the connector for '{1}' is unused", projectionCfg, projectionCfg.getSourceName());
                        continue;
                    }
                    String repositoryPath = projectionCfg.getRepositoryPath();
                    String alias = projectionCfg.getAlias();

                    AbstractJcrNode node = session.getNode(repositoryPath);
                    // only create the projectionCfg if one doesn't exist with the same alias
                    if (!current.hasInternalProjection(alias, node.key().toString())
                        && !projectedPathExists(session, projectionCfg)) {
                        federationManager.createProjection(repositoryPath, projectionCfg.getSourceName(),
                                                           projectionCfg.getExternalPath(), alias);
                    }
                }
            } finally {
                session.logout();
View Full Code Here

Examples of org.modeshape.jcr.api.federation.FederationManager

        Session defaultSession = repository.login();
        // predefined
        assertNotNull(defaultSession.getNode("/projection1"));

        // create a new projection
        FederationManager federationManager = defaultSession.getWorkspace().getFederationManager();
        federationManager.createProjection("/", "filesystem_readonly", "/", "testProjection");
        assertNotNull(defaultSession.getNode("/testProjection"));

        Session otherSession = repository.login("other");
        // predefined
        assertNotNull(otherSession.getNode("/projection1"));
View Full Code Here

Examples of org.modeshape.jcr.api.federation.FederationManager

        Session session = getSession();
        Node testRoot = session.getRootNode().addNode("repos");
        session.save();

        FederationManager fedMgr = session.getWorkspace().getFederationManager();
        fedMgr.createProjection(testRoot.getPath(), "local-git-repo", "/", "git-modeshape");
    }
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.