public class ListGroups extends Object implements RestReadView<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(AccountGroup.UUID uuid) |
void |
addProject(ProjectControl project) |
SortedMap<String,GroupInfo> |
apply(TopLevelResource resource)
Process the view operation by reading from the resource.
|
List<GroupInfo> |
get() |
List<ProjectControl> |
getProjects() |
Account.Id |
getUser() |
void |
setLimit(int limit) |
void |
setMatchSubstring(String matchSubstring) |
void |
setOptions(EnumSet<ListGroupsOption> options) |
void |
setOwned(boolean owned) |
void |
setStart(int start) |
void |
setSuggest(String suggest) |
void |
setUser(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(Account.Id user)
public void setOwned(boolean owned)
public void addGroup(AccountGroup.UUID uuid)
public void setLimit(int limit)
public void setStart(int start)
public void setMatchSubstring(String matchSubstring)
public void setSuggest(String suggest)
public void setOptions(EnumSet<ListGroupsOption> options)
public Account.Id getUser()
public List<ProjectControl> getProjects()
public SortedMap<String,GroupInfo> apply(TopLevelResource resource) throws com.google.gwtorm.server.OrmException, BadRequestException
RestReadView
apply
in interface RestReadView<TopLevelResource>
resource
- resource to read.BinaryResult
to avoid automatic conversion
to JSON.BadRequestException
- the request was incorrectly specified and cannot be handled by this
view.com.google.gwtorm.server.OrmException
public List<GroupInfo> get() throws com.google.gwtorm.server.OrmException, BadRequestException
com.google.gwtorm.server.OrmException
BadRequestException