Package com.gitblit.manager

Examples of com.gitblit.manager.RuntimeManager


  @Override
  protected ITicketService getService(boolean deleteAll) throws Exception {

    IStoredSettings settings = getSettings(deleteAll);

    IRuntimeManager runtimeManager = new RuntimeManager(settings).start();
    IPluginManager pluginManager = new PluginManager(runtimeManager).start();
    INotificationManager notificationManager = new NotificationManager(settings).start();
    IUserManager userManager = new UserManager(runtimeManager).start();
    IRepositoryManager repositoryManager = new RepositoryManager(runtimeManager, userManager).start();
View Full Code Here


    MemorySettings getSettings() {
      return new MemorySettings(new HashMap<String, Object>());
    }

    IAuthenticationManager newAuthenticationManager() {
      RuntimeManager runtime = new RuntimeManager(getSettings(), GitBlitSuite.BASEFOLDER).start();
      users = new UserManager(runtime).start();
      AuthenticationManager auth = new AuthenticationManager(runtime, users).start();
      return auth;
    }
View Full Code Here

    MemorySettings getSettings() {
      return new MemorySettings(new HashMap<String, Object>());
    }

    RedmineAuthProvider newRedmineAuthentication(IStoredSettings settings) {
      RuntimeManager runtime = new RuntimeManager(settings, GitBlitSuite.BASEFOLDER).start();
      UserManager users = new UserManager(runtime).start();
      RedmineAuthProvider redmine = new RedmineAuthProvider();
      redmine.setup(runtime, users);
      return redmine;
    }
View Full Code Here

    RedmineAuthProvider newRedmineAuthentication() {
      return newRedmineAuthentication(getSettings());
    }
   
    AuthenticationManager newAuthenticationManager() {
      RuntimeManager runtime = new RuntimeManager(getSettings(), GitBlitSuite.BASEFOLDER).start();
      UserManager users = new UserManager(runtime).start();
      RedmineAuthProvider redmine = new RedmineAuthProvider();
      redmine.setup(runtime, users);
        redmine.setTestingCurrentUserAsJson(JSON);
      AuthenticationManager auth = new AuthenticationManager(runtime, users);
View Full Code Here

  @Override
  protected ITicketService getService(boolean deleteAll) throws Exception {

    IStoredSettings settings = getSettings(deleteAll);

    IRuntimeManager runtimeManager = new RuntimeManager(settings).start();
    IPluginManager pluginManager = new PluginManager(runtimeManager).start();
    INotificationManager notificationManager = new NotificationManager(settings).start();
    IUserManager userManager = new UserManager(runtimeManager).start();
    IRepositoryManager repositoryManager = new RepositoryManager(runtimeManager, userManager).start();
View Full Code Here

  @Override
  protected ITicketService getService(boolean deleteAll) throws Exception {

    IStoredSettings settings = getSettings(deleteAll);

    IRuntimeManager runtimeManager = new RuntimeManager(settings).start();
    IPluginManager pluginManager = new PluginManager(runtimeManager).start();
    INotificationManager notificationManager = new NotificationManager(settings).start();
    IUserManager userManager = new UserManager(runtimeManager).start();
    IRepositoryManager repositoryManager = new RepositoryManager(runtimeManager, userManager).start();
View Full Code Here

  LuceneService lucene;

  private LuceneService newLuceneExecutor() {
    MemorySettings settings = new MemorySettings();
    settings.put(Keys.git.repositoriesFolder, GitBlitSuite.REPOSITORIES);
    RuntimeManager runtime = new RuntimeManager(settings, GitBlitSuite.BASEFOLDER).start();
    UserManager users = new UserManager(runtime).start();
    RepositoryManager repos = new RepositoryManager(runtime, users);
    return new LuceneService(settings, repos);
  }
View Full Code Here

    ldap = newLdapAuthentication(settings);
    auth = newAuthenticationManager(settings);
  }

  private LdapAuthProvider newLdapAuthentication(IStoredSettings settings) {
    RuntimeManager runtime = new RuntimeManager(settings, GitBlitSuite.BASEFOLDER).start();
    userManager = new UserManager(runtime).start();
    LdapAuthProvider ldap = new LdapAuthProvider();
    ldap.setup(runtime, userManager);
    return ldap;
  }
View Full Code Here

    ldap.setup(runtime, userManager);
    return ldap;
  }
 
  private AuthenticationManager newAuthenticationManager(IStoredSettings settings) {
    RuntimeManager runtime = new RuntimeManager(settings, GitBlitSuite.BASEFOLDER).start();
    AuthenticationManager auth = new AuthenticationManager(runtime, userManager);
    auth.addAuthenticationProvider(newLdapAuthentication(settings));
    return auth;
  }
View Full Code Here

        htpasswd = newHtpasswdAuthentication(getSettings());
        auth = newAuthenticationManager(getSettings());
    }

    private HtpasswdAuthProvider newHtpasswdAuthentication(IStoredSettings settings) {
      RuntimeManager runtime = new RuntimeManager(settings, GitBlitSuite.BASEFOLDER).start();
      UserManager users = new UserManager(runtime).start();
      HtpasswdAuthProvider htpasswd = new HtpasswdAuthProvider();
      htpasswd.setup(runtime, users);
      return htpasswd;
    }
View Full Code Here

TOP

Related Classes of com.gitblit.manager.RuntimeManager

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.