public class ListProjects
extends java.lang.Object
implements com.google.gerrit.extensions.restapi.RestReadView<com.google.gerrit.extensions.restapi.TopLevelResource>
Modifier and Type | Class and Description |
---|---|
static class |
ListProjects.FilterType |
Modifier | Constructor and Description |
---|---|
protected |
ListProjects(CurrentUser currentUser,
ProjectCache projectCache,
GroupsCollection groupsCollection,
GroupControl.Factory groupControlFactory,
GitRepositoryManager repoManager,
ProjectNode.Factory projectNodeFactory,
WebLinks webLinks) |
Modifier and Type | Method and Description |
---|---|
void |
addShowBranch(java.lang.String branch) |
java.util.SortedMap<java.lang.String,com.google.gerrit.extensions.common.ProjectInfo> |
apply() |
java.lang.Object |
apply(com.google.gerrit.extensions.restapi.TopLevelResource resource) |
java.util.SortedMap<java.lang.String,com.google.gerrit.extensions.common.ProjectInfo> |
display(java.io.OutputStream displayOutputStream) |
OutputFormat |
getFormat() |
java.util.List<java.lang.String> |
getShowBranch() |
boolean |
isShowDescription() |
boolean |
isShowTree() |
void |
setAll(boolean all) |
void |
setFilterType(ListProjects.FilterType type) |
ListProjects |
setFormat(OutputFormat fmt) |
void |
setGroupUuid(com.google.gerrit.reviewdb.client.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) |
@Inject protected ListProjects(CurrentUser currentUser, ProjectCache projectCache, GroupsCollection groupsCollection, GroupControl.Factory groupControlFactory, GitRepositoryManager repoManager, ProjectNode.Factory projectNodeFactory, WebLinks webLinks)
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 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(com.google.gerrit.reviewdb.client.AccountGroup.UUID groupUuid)
public java.util.List<java.lang.String> getShowBranch()
public boolean isShowTree()
public boolean isShowDescription()
public OutputFormat getFormat()
public ListProjects setFormat(OutputFormat fmt)
public java.lang.Object apply(com.google.gerrit.extensions.restapi.TopLevelResource resource) throws com.google.gerrit.extensions.restapi.BadRequestException
apply
in interface com.google.gerrit.extensions.restapi.RestReadView<com.google.gerrit.extensions.restapi.TopLevelResource>
com.google.gerrit.extensions.restapi.BadRequestException
public java.util.SortedMap<java.lang.String,com.google.gerrit.extensions.common.ProjectInfo> apply() throws com.google.gerrit.extensions.restapi.BadRequestException
com.google.gerrit.extensions.restapi.BadRequestException
public java.util.SortedMap<java.lang.String,com.google.gerrit.extensions.common.ProjectInfo> display(java.io.OutputStream displayOutputStream) throws com.google.gerrit.extensions.restapi.BadRequestException
com.google.gerrit.extensions.restapi.BadRequestException