Added GroupMembership for group membership checks.
This replaces existing uses of a Set to determine membership and will make it possible to integrate with group systems that do not allow efficient enumentation of memberships. Change-Id: Iba9842ca1a355fc100fb4a02d7954d89032cdba0
This commit is contained in:
@@ -14,10 +14,10 @@
|
||||
|
||||
package com.google.gerrit.server;
|
||||
|
||||
import com.google.gerrit.reviewdb.client.AccountGroup;
|
||||
import com.google.gerrit.reviewdb.client.AccountProjectWatch;
|
||||
import com.google.gerrit.reviewdb.client.Change;
|
||||
import com.google.gerrit.server.account.CapabilityControl;
|
||||
import com.google.gerrit.server.account.GroupMembership;
|
||||
import com.google.inject.servlet.RequestScoped;
|
||||
|
||||
import java.util.Collection;
|
||||
@@ -60,7 +60,7 @@ public abstract class CurrentUser {
|
||||
*
|
||||
* @return active groups for this user.
|
||||
*/
|
||||
public abstract Set<AccountGroup.UUID> getEffectiveGroups();
|
||||
public abstract GroupMembership getEffectiveGroups();
|
||||
|
||||
/** Set of changes starred by this user. */
|
||||
public abstract Set<Change.Id> getStarredChanges();
|
||||
|
||||
Reference in New Issue
Block a user