Class AbstractListProjects
java.lang.Object
com.google.gerrit.server.restapi.project.AbstractListProjects
- All Implemented Interfaces:
- RestReadView<TopLevelResource>,- RestView<TopLevelResource>,- ListProjects
- Direct Known Subclasses:
- ListProjectsImpl
Base class for 
ListProjects implementations.
 Defines the options that are supported by the list projects REST endpoint.
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.google.gerrit.server.restapi.project.ListProjectsListProjects.FilterType
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract voidaddShowBranch(String branch) apply(TopLevelResource resource) Process the view operation by reading from the resource.abstract voidsetAll(boolean all) abstract voidabstract voidsetFormat(com.google.gerrit.json.OutputFormat fmt) abstract voidsetGroupUuid(AccountGroup.UUID groupUuid) abstract voidsetLimit(int limit) abstract voidsetMatchPrefix(String matchPrefix) abstract voidsetMatchRegex(String matchRegex) abstract voidsetMatchSubstring(String matchSubstring) abstract voidsetShowDescription(boolean showDescription) abstract voidsetShowTree(boolean showTree) abstract voidsetStart(int start) abstract voidsetState(ProjectState state) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.gerrit.server.restapi.project.ListProjectsapply
- 
Constructor Details- 
AbstractListProjectspublic AbstractListProjects()
 
- 
- 
Method Details- 
setFormatpublic abstract void setFormat(com.google.gerrit.json.OutputFormat fmt) - Specified by:
- setFormatin interface- ListProjects
 
- 
addShowBranch- Specified by:
- addShowBranchin interface- ListProjects
 
- 
setShowTreepublic abstract void setShowTree(boolean showTree) - Specified by:
- setShowTreein interface- ListProjects
 
- 
setFilterType- Specified by:
- setFilterTypein interface- ListProjects
 
- 
setShowDescriptionpublic abstract void setShowDescription(boolean showDescription) - Specified by:
- setShowDescriptionin interface- ListProjects
 
- 
setAllpublic abstract void setAll(boolean all) - Specified by:
- setAllin interface- ListProjects
 
- 
setState- Specified by:
- setStatein interface- ListProjects
 
- 
setLimitpublic abstract void setLimit(int limit) - Specified by:
- setLimitin interface- ListProjects
 
- 
setStartpublic abstract void setStart(int start) - Specified by:
- setStartin interface- ListProjects
 
- 
setMatchPrefix- Specified by:
- setMatchPrefixin interface- ListProjects
 
- 
setMatchSubstring- Specified by:
- setMatchSubstringin interface- ListProjects
 
- 
setMatchRegex- Specified by:
- setMatchRegexin interface- ListProjects
 
- 
setGroupUuid- Specified by:
- setGroupUuidin interface- ListProjects
 
- 
applyDescription copied from interface:RestReadViewProcess the view operation by reading from the resource.The value of the returned response is automatically converted to JSON unless it is a BinaryResult.The returned response defines the status code that is returned to the client. For RestReadViews this is usually 200 OK, but other 2XX or 3XX status codes are also possible (e.g.Response.Redirectcan be returned for302 Found).Throwing a subclass of RestApiExceptionresults in a 4XX response to the client. For any other exception the client will get a500 Internal Server Errorresponse.- Specified by:
- applyin interface- ListProjects
- Specified by:
- applyin interface- RestReadView<TopLevelResource>
- Parameters:
- resource- resource to read
- Returns:
- response to return to the client
- Throws:
- AuthException- the caller is not permitted to access this view.
- BadRequestException- the request was incorrectly specified and cannot be handled by this view.
- ResourceConflictException- the resource state does not permit this view to make the changes at this time.
- Exception- the implementation of the view failed. The exception will be logged and HTTP 500 Internal Server Error will be returned to the client.
 
 
-