public class InternalGroupQuery extends com.google.gerrit.index.query.InternalQuery<InternalGroup>
Instances are one-time-use. Other singleton classes should inject a Provider rather than holding on to a single instance.
Modifier and Type | Method and Description |
---|---|
java.util.Optional<InternalGroup> |
byId(AccountGroup.Id groupId) |
java.util.List<InternalGroup> |
byMember(Account.Id memberId) |
java.util.Optional<InternalGroup> |
byName(AccountGroup.NameKey groupName) |
java.util.List<InternalGroup> |
bySubgroup(AccountGroup.UUID subgroupId) |
public java.util.Optional<InternalGroup> byName(AccountGroup.NameKey groupName) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public java.util.Optional<InternalGroup> byId(AccountGroup.Id groupId) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public java.util.List<InternalGroup> byMember(Account.Id memberId) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException
public java.util.List<InternalGroup> bySubgroup(AccountGroup.UUID subgroupId) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException