Package com.gitblit.models

Examples of com.gitblit.models.FederationSet


  @Override
  public List<FederationSet> getFederationSets(String gitblitUrl) {
    List<FederationSet> list = new ArrayList<FederationSet>();
    // generate standard tokens
    for (FederationToken type : FederationToken.values()) {
      FederationSet fset = new FederationSet(type.toString(), type, getFederationToken(type));
      fset.repositories = getRepositories(gitblitUrl, fset.token);
      list.add(fset);
    }
    // generate tokens for federation sets
    for (String set : settings.getStrings(Keys.federation.sets)) {
      FederationSet fset = new FederationSet(set, FederationToken.REPOSITORIES,
          getFederationToken(set));
      fset.repositories = getRepositories(gitblitUrl, fset.token);
      list.add(fset);
    }
    return list;
View Full Code Here

TOP

Related Classes of com.gitblit.models.FederationSet

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.