public class ListGroups extends Object implements com.google.gerrit.extensions.restapi.RestReadView<com.google.gerrit.extensions.restapi.TopLevelResource>
Modifier and Type | Field and Description |
---|---|
protected GroupCache |
groupCache |
Modifier | Constructor and Description |
---|---|
protected |
ListGroups(GroupCache groupCache,
GroupControl.Factory groupControlFactory,
GroupControl.GenericFactory genericGroupControlFactory,
com.google.inject.Provider<IdentifiedUser> identifiedUser,
IdentifiedUser.GenericFactory userFactory,
GetGroups accountGetGroups,
GroupJson json,
GroupBackend groupBackend) |
Modifier and Type | Method and Description |
---|---|
void |
addGroup(com.google.gerrit.reviewdb.client.AccountGroup.UUID id) |
void |
addProject(ProjectControl project) |
SortedMap<String,com.google.gerrit.extensions.common.GroupInfo> |
apply(com.google.gerrit.extensions.restapi.TopLevelResource resource) |
List<com.google.gerrit.extensions.common.GroupInfo> |
get() |
List<ProjectControl> |
getProjects() |
com.google.gerrit.reviewdb.client.Account.Id |
getUser() |
void |
setLimit(int limit) |
void |
setMatchSubstring(String matchSubstring) |
void |
setOptions(EnumSet<com.google.gerrit.extensions.client.ListGroupsOption> options) |
void |
setOwned(boolean owned) |
void |
setStart(int start) |
void |
setSuggest(String suggest) |
void |
setUser(com.google.gerrit.reviewdb.client.Account.Id user) |
void |
setVisibleToAll(boolean visibleToAll) |
protected final GroupCache groupCache
@Inject protected ListGroups(GroupCache groupCache, GroupControl.Factory groupControlFactory, GroupControl.GenericFactory genericGroupControlFactory, com.google.inject.Provider<IdentifiedUser> identifiedUser, IdentifiedUser.GenericFactory userFactory, GetGroups accountGetGroups, GroupJson json, GroupBackend groupBackend)
public void addProject(ProjectControl project)
public void setVisibleToAll(boolean visibleToAll)
public void setUser(com.google.gerrit.reviewdb.client.Account.Id user)
public void setOwned(boolean owned)
public void addGroup(com.google.gerrit.reviewdb.client.AccountGroup.UUID id)
public void setLimit(int limit)
public void setStart(int start)
public void setMatchSubstring(String matchSubstring)
public void setSuggest(String suggest)
public void setOptions(EnumSet<com.google.gerrit.extensions.client.ListGroupsOption> options)
public com.google.gerrit.reviewdb.client.Account.Id getUser()
public List<ProjectControl> getProjects()
public SortedMap<String,com.google.gerrit.extensions.common.GroupInfo> apply(com.google.gerrit.extensions.restapi.TopLevelResource resource) throws com.google.gwtorm.server.OrmException, com.google.gerrit.extensions.restapi.BadRequestException
apply
in interface com.google.gerrit.extensions.restapi.RestReadView<com.google.gerrit.extensions.restapi.TopLevelResource>
com.google.gwtorm.server.OrmException
com.google.gerrit.extensions.restapi.BadRequestException
public List<com.google.gerrit.extensions.common.GroupInfo> get() throws com.google.gwtorm.server.OrmException, com.google.gerrit.extensions.restapi.BadRequestException
com.google.gwtorm.server.OrmException
com.google.gerrit.extensions.restapi.BadRequestException