Class InternalGroupQuery
- java.lang.Object
-
- com.google.gerrit.index.query.InternalQuery<InternalGroup>
-
- com.google.gerrit.server.query.group.InternalGroupQuery
-
public class InternalGroupQuery extends InternalQuery<InternalGroup>
Query wrapper for the group index.Instances are one-time-use. Other singleton classes should inject a Provider rather than holding on to a single instance.
-
-
Field Summary
-
Fields inherited from class com.google.gerrit.index.query.InternalQuery
indexConfig
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<InternalGroup>
byId(AccountGroup.Id groupId)
List<InternalGroup>
byMember(Account.Id memberId)
Optional<InternalGroup>
byName(AccountGroup.NameKey groupName)
List<InternalGroup>
bySubgroup(AccountGroup.UUID subgroupId)
-
Methods inherited from class com.google.gerrit.index.query.InternalQuery
enforceVisibility, noFields, query, query, schema, setLimit, setRequestedFields
-
-
-
-
Method Detail
-
byName
public Optional<InternalGroup> byName(AccountGroup.NameKey groupName) throws com.google.gwtorm.server.OrmException
- Throws:
com.google.gwtorm.server.OrmException
-
byId
public Optional<InternalGroup> byId(AccountGroup.Id groupId) throws com.google.gwtorm.server.OrmException
- Throws:
com.google.gwtorm.server.OrmException
-
byMember
public List<InternalGroup> byMember(Account.Id memberId) throws com.google.gwtorm.server.OrmException
- Throws:
com.google.gwtorm.server.OrmException
-
bySubgroup
public List<InternalGroup> bySubgroup(AccountGroup.UUID subgroupId) throws com.google.gwtorm.server.OrmException
- Throws:
com.google.gwtorm.server.OrmException
-
-