Package com.google.gerrit.server.project
Class ListProjects
- java.lang.Object
- 
- com.google.gerrit.server.project.ListProjects
 
- 
- All Implemented Interfaces:
- RestReadView<TopLevelResource>,- RestView<TopLevelResource>
 
 public class ListProjects extends Object implements RestReadView<TopLevelResource> List projects visible to the calling user.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classListProjects.FilterType
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedListProjects(CurrentUser currentUser, ProjectCache projectCache, GroupsCollection groupsCollection, GroupControl.Factory groupControlFactory, GitRepositoryManager repoManager, PermissionBackend permissionBackend, ProjectNode.Factory projectNodeFactory, WebLinks webLinks)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddShowBranch(String branch)SortedMap<String,ProjectInfo>apply()Objectapply(TopLevelResource resource)Process the view operation by reading from the resource.SortedMap<String,ProjectInfo>display(OutputStream displayOutputStream)OutputFormatgetFormat()List<String>getShowBranch()booleanisShowDescription()booleanisShowTree()voidsetAll(boolean all)voidsetFilterType(ListProjects.FilterType type)ListProjectssetFormat(OutputFormat fmt)voidsetGroupUuid(AccountGroup.UUID groupUuid)voidsetLimit(int limit)voidsetMatchPrefix(String matchPrefix)voidsetMatchRegex(String matchRegex)voidsetMatchSubstring(String matchSubstring)voidsetShowDescription(boolean showDescription)voidsetShowTree(boolean showTree)voidsetStart(int start)
 
- 
- 
- 
Constructor Detail- 
ListProjects@Inject protected ListProjects(CurrentUser currentUser, ProjectCache projectCache, GroupsCollection groupsCollection, GroupControl.Factory groupControlFactory, GitRepositoryManager repoManager, PermissionBackend permissionBackend, ProjectNode.Factory projectNodeFactory, WebLinks webLinks) 
 
- 
 - 
Method Detail- 
addShowBranchpublic void addShowBranch(String branch) 
 - 
setShowTreepublic void setShowTree(boolean showTree) 
 - 
setFilterTypepublic void setFilterType(ListProjects.FilterType type) 
 - 
setShowDescriptionpublic void setShowDescription(boolean showDescription) 
 - 
setAllpublic void setAll(boolean all) 
 - 
setLimitpublic void setLimit(int limit) 
 - 
setStartpublic void setStart(int start) 
 - 
setMatchPrefixpublic void setMatchPrefix(String matchPrefix) 
 - 
setMatchSubstringpublic void setMatchSubstring(String matchSubstring) 
 - 
setMatchRegexpublic void setMatchRegex(String matchRegex) 
 - 
setGroupUuidpublic void setGroupUuid(AccountGroup.UUID groupUuid) 
 - 
isShowTreepublic boolean isShowTree() 
 - 
isShowDescriptionpublic boolean isShowDescription() 
 - 
getFormatpublic OutputFormat getFormat() 
 - 
setFormatpublic ListProjects setFormat(OutputFormat fmt) 
 - 
applypublic Object apply(TopLevelResource resource) throws BadRequestException, PermissionBackendException Description copied from interface:RestReadViewProcess the view operation by reading from the resource.- Specified by:
- applyin interface- RestReadView<TopLevelResource>
- Parameters:
- resource- resource to read.
- Returns:
- result to return to the client. Use BinaryResultto avoid automatic conversion to JSON.
- Throws:
- BadRequestException- the request was incorrectly specified and cannot be handled by this view.
- PermissionBackendException
 
 - 
applypublic SortedMap<String,ProjectInfo> apply() throws BadRequestException, PermissionBackendException 
 - 
displaypublic SortedMap<String,ProjectInfo> display(OutputStream displayOutputStream) throws BadRequestException, PermissionBackendException 
 
- 
 
-