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) |
Modifier and Type | Method and Description |
---|---|
void |
addShowBranch(String branch) |
Map<String,ProjectJson.ProjectInfo> |
apply() |
Object |
apply(com.google.gerrit.extensions.restapi.TopLevelResource resource) |
Map<String,ProjectJson.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 |
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)
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 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)
apply
in interface com.google.gerrit.extensions.restapi.RestReadView<com.google.gerrit.extensions.restapi.TopLevelResource>
public Map<String,ProjectJson.ProjectInfo> apply()
public Map<String,ProjectJson.ProjectInfo> display(OutputStream displayOutputStream)