Class ProjectApi.NotImplemented
java.lang.Object
com.google.gerrit.extensions.api.projects.ProjectApi.NotImplemented
- All Implemented Interfaces:
ProjectApi
- Enclosing interface:
- ProjectApi
A default implementation which allows source compatibility when adding new methods to the
interface.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.gerrit.extensions.api.projects.ProjectApi
ProjectApi.ListDashboardsRequest, ProjectApi.ListLabelsRequest, ProjectApi.ListRefsRequest<T extends RefInfo>, ProjectApi.ListSubmitRequirementsRequest, ProjectApi.NotImplemented -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccess()accessChange(ProjectAccessInput input) Look up a branch by refname.branches()children()children(boolean recursive) children(int limit) Lookup a commit by itsObjectIdstring.commitsIn(Collection<String> commits, Collection<String> refs) config()config(ConfigInput in) create()create(ProjectInput in) Lookup a dashboard by its name.Get the project's default dashboard.voiddefaultDashboard(String name) Set the project's default dashboard.voidvoidvoidget()head()Get the name of the branch to whichHEADpoints.voidSet the project'sHEAD.voidindex(boolean indexChildren) Reindex the project and children in caseindexChildrenis specified.voidReindexes all changes of the project.labels()voidlabels(BatchLabelInput input) Adds, updates and deletes label definitions in a batch.parent()Get the name of the project's parent.voidSet the project's parent.voidRemove the project's default dashboard.submitRequirement(String name) Look up a tag by refname.tags()
-
Constructor Details
-
NotImplemented
public NotImplemented()
-
-
Method Details
-
create
- Specified by:
createin interfaceProjectApi- Throws:
RestApiException
-
create
- Specified by:
createin interfaceProjectApi- Throws:
RestApiException
-
get
- Specified by:
getin interfaceProjectApi- Throws:
RestApiException
-
description
- Specified by:
descriptionin interfaceProjectApi- Throws:
RestApiException
-
access
- Specified by:
accessin interfaceProjectApi- Throws:
RestApiException
-
access
- Specified by:
accessin interfaceProjectApi- Throws:
RestApiException
-
accessChange
- Specified by:
accessChangein interfaceProjectApi- Throws:
RestApiException
-
checkAccess
- Specified by:
checkAccessin interfaceProjectApi- Throws:
RestApiException
-
check
- Specified by:
checkin interfaceProjectApi- Throws:
RestApiException
-
config
- Specified by:
configin interfaceProjectApi- Throws:
RestApiException
-
config
- Specified by:
configin interfaceProjectApi- Throws:
RestApiException
-
commitsIn
public Map<String,Set<String>> commitsIn(Collection<String> commits, Collection<String> refs) throws RestApiException - Specified by:
commitsInin interfaceProjectApi- Throws:
RestApiException
-
description
- Specified by:
descriptionin interfaceProjectApi- Throws:
RestApiException
-
branches
- Specified by:
branchesin interfaceProjectApi
-
tags
- Specified by:
tagsin interfaceProjectApi
-
children
- Specified by:
childrenin interfaceProjectApi- Throws:
RestApiException
-
children
- Specified by:
childrenin interfaceProjectApi- Throws:
RestApiException
-
children
- Specified by:
childrenin interfaceProjectApi- Throws:
RestApiException
-
child
- Specified by:
childin interfaceProjectApi- Throws:
RestApiException
-
branch
Description copied from interface:ProjectApiLook up a branch by refname.Note: This method eagerly reads the branch. Methods that mutate the branch do not necessarily re-read the branch. Therefore, calling a getter method on an instance after calling a mutation method on that same instance is not guaranteed to reflect the mutation. It is not recommended to store references to
BranchApiinstances.- Specified by:
branchin interfaceProjectApi- Parameters:
ref- branch name, with or without "refs/heads/" prefix.- Returns:
- API for accessing the branch.
- Throws:
RestApiException- if a problem occurred reading the project.
-
tag
Description copied from interface:ProjectApiLook up a tag by refname.- Specified by:
tagin interfaceProjectApi- Parameters:
ref- tag name, with or without "refs/tags/" prefix.- Returns:
- API for accessing the tag.
- Throws:
RestApiException- if a problem occurred reading the project.
-
deleteBranches
- Specified by:
deleteBranchesin interfaceProjectApi- Throws:
RestApiException
-
deleteTags
- Specified by:
deleteTagsin interfaceProjectApi- Throws:
RestApiException
-
commit
Description copied from interface:ProjectApiLookup a commit by itsObjectIdstring.- Specified by:
commitin interfaceProjectApi- Parameters:
commit- theObjectIdstring.- Returns:
- API for accessing the commit.
- Throws:
RestApiException
-
dashboard
Description copied from interface:ProjectApiLookup a dashboard by its name.- Specified by:
dashboardin interfaceProjectApi- Parameters:
name- the name.- Returns:
- API for accessing the dashboard.
- Throws:
RestApiException
-
defaultDashboard
Description copied from interface:ProjectApiGet the project's default dashboard.- Specified by:
defaultDashboardin interfaceProjectApi- Returns:
- API for accessing the dashboard.
- Throws:
RestApiException
-
dashboards
- Specified by:
dashboardsin interfaceProjectApi- Throws:
RestApiException
-
defaultDashboard
Description copied from interface:ProjectApiSet the project's default dashboard.- Specified by:
defaultDashboardin interfaceProjectApi- Parameters:
name- the dashboard to set as default.- Throws:
RestApiException
-
removeDefaultDashboard
Description copied from interface:ProjectApiRemove the project's default dashboard.- Specified by:
removeDefaultDashboardin interfaceProjectApi- Throws:
RestApiException
-
head
Description copied from interface:ProjectApiGet the name of the branch to whichHEADpoints.- Specified by:
headin interfaceProjectApi- Throws:
RestApiException
-
head
Description copied from interface:ProjectApiSet the project'sHEAD.- Specified by:
headin interfaceProjectApi- Parameters:
head- the HEAD- Throws:
RestApiException
-
parent
Description copied from interface:ProjectApiGet the name of the project's parent.- Specified by:
parentin interfaceProjectApi- Throws:
RestApiException
-
parent
Description copied from interface:ProjectApiSet the project's parent.- Specified by:
parentin interfaceProjectApi- Parameters:
parent- the parent- Throws:
RestApiException
-
index
Description copied from interface:ProjectApiReindex the project and children in caseindexChildrenis specified.- Specified by:
indexin interfaceProjectApi- Parameters:
indexChildren- decides if children should be indexed recursively- Throws:
RestApiException
-
indexChanges
Description copied from interface:ProjectApiReindexes all changes of the project.- Specified by:
indexChangesin interfaceProjectApi- Throws:
RestApiException
-
labels
- Specified by:
labelsin interfaceProjectApi- Throws:
RestApiException
-
submitRequirements
- Specified by:
submitRequirementsin interfaceProjectApi- Throws:
RestApiException
-
label
- Specified by:
labelin interfaceProjectApi- Throws:
RestApiException
-
submitRequirement
- Specified by:
submitRequirementin interfaceProjectApi- Throws:
RestApiException
-
labels
Description copied from interface:ProjectApiAdds, updates and deletes label definitions in a batch.- Specified by:
labelsin interfaceProjectApi- Parameters:
input- input that describes additions, updates and deletions of label definitions- Throws:
RestApiException
-