public class ListProjects extends 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,
GroupCache groupCache,
GroupControl.Factory groupControlFactory,
GitRepositoryManager repoManager,
ProjectNode.Factory projectNodeFactory,
WebLinks webLinks) |
Modifier and Type | Method and Description |
---|---|
void |
addShowBranch(String branch) |
Map<String,com.google.gerrit.extensions.common.ProjectInfo> |
apply() |
Object |
apply(com.google.gerrit.extensions.restapi.TopLevelResource resource) |
Map<String,com.google.gerrit.extensions.common.ProjectInfo> |
display(OutputStream displayOutputStream) |
OutputFormat |
getFormat() |
List<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(String matchPrefix) |
void |
setMatchRegex(String matchRegex) |
void |
setMatchSubstring(String matchSubstring) |
void |
setShowDescription(boolean showDescription) |
void |
setShowTree(boolean showTree) |
void |
setStart(int start) |
@Inject protected ListProjects(CurrentUser currentUser, ProjectCache projectCache, GroupCache groupCache, GroupControl.Factory groupControlFactory, GitRepositoryManager repoManager, ProjectNode.Factory projectNodeFactory, WebLinks webLinks)
public void addShowBranch(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(String matchPrefix)
public void setMatchSubstring(String matchSubstring)
public void setMatchRegex(String matchRegex)
public void setGroupUuid(com.google.gerrit.reviewdb.client.AccountGroup.UUID groupUuid)
public boolean isShowTree()
public boolean isShowDescription()
public OutputFormat getFormat()
public ListProjects setFormat(OutputFormat fmt)
public 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 Map<String,com.google.gerrit.extensions.common.ProjectInfo> apply() throws com.google.gerrit.extensions.restapi.BadRequestException
com.google.gerrit.extensions.restapi.BadRequestException
public Map<String,com.google.gerrit.extensions.common.ProjectInfo> display(OutputStream displayOutputStream) throws com.google.gerrit.extensions.restapi.BadRequestException
com.google.gerrit.extensions.restapi.BadRequestException