public class ListGroups extends java.lang.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,
GroupResolver groupResolver,
GroupJson json,
GroupBackend groupBackend,
Groups groups) |
Modifier and Type | Method and Description |
---|---|
void |
addGroup(AccountGroup.UUID uuid) |
void |
addProject(ProjectState project) |
java.util.SortedMap<java.lang.String,GroupInfo> |
apply(TopLevelResource resource)
Process the view operation by reading from the resource.
|
java.util.List<GroupInfo> |
get() |
java.util.List<ProjectState> |
getProjects() |
Account.Id |
getUser() |
void |
setLimit(int limit) |
void |
setMatchRegex(java.lang.String matchRegex) |
void |
setMatchSubstring(java.lang.String matchSubstring) |
void |
setOptions(java.util.Set<ListGroupsOption> options) |
void |
setOwned(boolean owned) |
void |
setOwnedBy(java.lang.String ownedBy) |
void |
setStart(int start) |
void |
setSuggest(java.lang.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, GroupResolver groupResolver, GroupJson json, GroupBackend groupBackend, Groups groups)
public void addProject(ProjectState 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(java.lang.String matchSubstring)
public void setMatchRegex(java.lang.String matchRegex)
public void setSuggest(java.lang.String suggest)
public void setOwnedBy(java.lang.String ownedBy)
public void setOptions(java.util.Set<ListGroupsOption> options)
public Account.Id getUser()
public java.util.List<ProjectState> getProjects()
public java.util.SortedMap<java.lang.String,GroupInfo> apply(TopLevelResource resource) throws RestApiException, java.io.IOException, org.eclipse.jgit.errors.ConfigInvalidException, PermissionBackendException
RestReadView
apply
in interface RestReadView<TopLevelResource>
resource
- resource to read.BinaryResult
to avoid automatic conversion
to JSON.AuthException
- the client is not permitted to access this view.BadRequestException
- the request was incorrectly specified and cannot be handled by this
view.ResourceConflictException
- the resource state does not permit this view to make the
changes at this time.RestApiException
java.io.IOException
org.eclipse.jgit.errors.ConfigInvalidException
PermissionBackendException
public java.util.List<GroupInfo> get() throws RestApiException, java.io.IOException, org.eclipse.jgit.errors.ConfigInvalidException, PermissionBackendException
RestApiException
java.io.IOException
org.eclipse.jgit.errors.ConfigInvalidException
PermissionBackendException