Package com.google.gerrit.server.account

Examples of com.google.gerrit.server.account.VisibleGroups


    try {
      if (user != null && !projects.isEmpty()) {
        throw new UnloggedFailure(1, "fatal: --user and --project options are not compatible.");
      }

      final VisibleGroups visibleGroups = visibleGroupsFactory.create();
      visibleGroups.setOnlyVisibleToAll(visibleToAll);
      visibleGroups.setGroupType(groupType);
      final GroupList groupList;
      if (!projects.isEmpty()) {
        groupList = visibleGroups.get(projects);
      } else if (user != null) {
        groupList = visibleGroups.get(userFactory.create(user));
      } else {
        groupList = visibleGroups.get();
      }

      final ColumnFormatter formatter = new ColumnFormatter(stdout, '\t');
      for (final GroupDetail groupDetail : groupList.getGroups()) {
        final AccountGroup g = groupDetail.group;
View Full Code Here


    this.user = user;
  }

  @Override
  public List<GroupDetail> call() throws OrmException, NoSuchGroupException {
    final VisibleGroups visibleGroups = visibleGroupsFactory.create();
    return visibleGroups.get(user).getGroups();
  }
View Full Code Here

TOP

Related Classes of com.google.gerrit.server.account.VisibleGroups

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.