Package com.google.gerrit.server.account

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


  }

  public SingleGroupUser(CapabilityControl.Factory capabilityControlFactory,
      Set<AccountGroup.UUID> groups) {
    super(capabilityControlFactory, AccessPath.UNKNOWN);
    this.groups = new ListGroupMembership(groups);
  }
View Full Code Here


    if (id == null) {
      return GroupMembership.EMPTY;
    }

    try {
      return new ListGroupMembership(membershipCache.get(id));
    } catch (ExecutionException e) {
      log.warn(String.format("Cannot lookup membershipsOf %s in LDAP", id), e);
      return GroupMembership.EMPTY;
    }
  }
View Full Code Here

    super(capabilityControlFactory, AccessPath.UNKNOWN);
  }

  @Override
  public GroupMembership getEffectiveGroups() {
    return new ListGroupMembership(Collections.singleton(AccountGroup.ANONYMOUS_USERS));
  }
View Full Code Here

      super(RefControlTest.this.capabilityControlFactory, AccessPath.UNKNOWN);
      username = name;
      ArrayList<AccountGroup.UUID> groupIds = Lists.newArrayList(groupId);
      groupIds.add(registered);
      groupIds.add(anonymous);
      groups = new ListGroupMembership(groupIds);
    }
View Full Code Here

TOP

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

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.