public class ListProjects extends java.lang.Object implements RestReadView<TopLevelResource>
Modifier and Type | Class and Description |
---|---|
static class |
ListProjects.FilterType |
Modifier | Constructor and Description |
---|---|
protected |
ListProjects(CurrentUser currentUser,
ProjectCache projectCache,
GroupResolver groupResolver,
GroupControl.Factory groupControlFactory,
GitRepositoryManager repoManager,
PermissionBackend permissionBackend,
ProjectNode.Factory projectNodeFactory,
WebLinks webLinks,
com.google.inject.Provider<QueryProjects> queryProjectsProvider,
org.eclipse.jgit.lib.Config config) |
Modifier and Type | Method and Description |
---|---|
void |
addShowBranch(java.lang.String branch) |
java.util.SortedMap<java.lang.String,ProjectInfo> |
apply() |
java.lang.Object |
apply(TopLevelResource resource)
Process the view operation by reading from the resource.
|
java.util.SortedMap<java.lang.String,ProjectInfo> |
display(java.io.PrintWriter stdout) |
void |
displayToStream(java.io.OutputStream displayOutputStream) |
com.google.gerrit.json.OutputFormat |
getFormat() |
java.util.List<java.lang.String> |
getShowBranch() |
boolean |
isShowDescription() |
boolean |
isShowTree() |
void |
setAll(boolean all) |
void |
setFilterType(ListProjects.FilterType type) |
ListProjects |
setFormat(com.google.gerrit.json.OutputFormat fmt) |
void |
setGroupUuid(AccountGroup.UUID groupUuid) |
void |
setLimit(int limit) |
void |
setMatchPrefix(java.lang.String matchPrefix) |
void |
setMatchRegex(java.lang.String matchRegex) |
void |
setMatchSubstring(java.lang.String matchSubstring) |
void |
setShowDescription(boolean showDescription) |
void |
setShowTree(boolean showTree) |
void |
setStart(int start) |
void |
setState(ProjectState state) |
@Inject protected ListProjects(CurrentUser currentUser, ProjectCache projectCache, GroupResolver groupResolver, GroupControl.Factory groupControlFactory, GitRepositoryManager repoManager, PermissionBackend permissionBackend, ProjectNode.Factory projectNodeFactory, WebLinks webLinks, com.google.inject.Provider<QueryProjects> queryProjectsProvider, org.eclipse.jgit.lib.Config config)
public void addShowBranch(java.lang.String branch)
public void setShowTree(boolean showTree)
public void setFilterType(ListProjects.FilterType type)
public void setShowDescription(boolean showDescription)
public void setAll(boolean all)
public void setState(ProjectState state)
public void setLimit(int limit)
public void setStart(int start)
public void setMatchPrefix(java.lang.String matchPrefix)
public void setMatchSubstring(java.lang.String matchSubstring)
public void setMatchRegex(java.lang.String matchRegex)
public void setGroupUuid(AccountGroup.UUID groupUuid)
public java.util.List<java.lang.String> getShowBranch()
public boolean isShowTree()
public boolean isShowDescription()
public com.google.gerrit.json.OutputFormat getFormat()
public ListProjects setFormat(com.google.gerrit.json.OutputFormat fmt)
public java.lang.Object apply(TopLevelResource resource) throws BadRequestException, PermissionBackendException
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.PermissionBackendException
public java.util.SortedMap<java.lang.String,ProjectInfo> apply() throws BadRequestException, PermissionBackendException
public void displayToStream(java.io.OutputStream displayOutputStream) throws BadRequestException, PermissionBackendException
public java.util.SortedMap<java.lang.String,ProjectInfo> display(java.io.PrintWriter stdout) throws BadRequestException, PermissionBackendException