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 itsObjectId
string.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.void
defaultDashboard
(String name) Set the project's default dashboard.void
void
void
get()
head()
Get the name of the branch to whichHEAD
points.void
Set the project'sHEAD
.void
index
(boolean indexChildren) Reindex the project and children in caseindexChildren
is specified.void
Reindexes all changes of the project.labels()
void
labels
(BatchLabelInput input) Adds, updates and deletes label definitions in a batch.parent()
Get the name of the project's parent.void
Set the project's parent.void
Remove 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:
create
in interfaceProjectApi
- Throws:
RestApiException
-
create
- Specified by:
create
in interfaceProjectApi
- Throws:
RestApiException
-
get
- Specified by:
get
in interfaceProjectApi
- Throws:
RestApiException
-
description
- Specified by:
description
in interfaceProjectApi
- Throws:
RestApiException
-
access
- Specified by:
access
in interfaceProjectApi
- Throws:
RestApiException
-
access
- Specified by:
access
in interfaceProjectApi
- Throws:
RestApiException
-
accessChange
- Specified by:
accessChange
in interfaceProjectApi
- Throws:
RestApiException
-
checkAccess
- Specified by:
checkAccess
in interfaceProjectApi
- Throws:
RestApiException
-
check
- Specified by:
check
in interfaceProjectApi
- Throws:
RestApiException
-
config
- Specified by:
config
in interfaceProjectApi
- Throws:
RestApiException
-
config
- Specified by:
config
in interfaceProjectApi
- Throws:
RestApiException
-
commitsIn
public Map<String,Set<String>> commitsIn(Collection<String> commits, Collection<String> refs) throws RestApiException - Specified by:
commitsIn
in interfaceProjectApi
- Throws:
RestApiException
-
description
- Specified by:
description
in interfaceProjectApi
- Throws:
RestApiException
-
branches
- Specified by:
branches
in interfaceProjectApi
-
tags
- Specified by:
tags
in interfaceProjectApi
-
children
- Specified by:
children
in interfaceProjectApi
- Throws:
RestApiException
-
children
- Specified by:
children
in interfaceProjectApi
- Throws:
RestApiException
-
children
- Specified by:
children
in interfaceProjectApi
- Throws:
RestApiException
-
child
- Specified by:
child
in interfaceProjectApi
- Throws:
RestApiException
-
branch
Description copied from interface:ProjectApi
Look 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
BranchApi
instances.- Specified by:
branch
in 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:ProjectApi
Look up a tag by refname.- Specified by:
tag
in 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:
deleteBranches
in interfaceProjectApi
- Throws:
RestApiException
-
deleteTags
- Specified by:
deleteTags
in interfaceProjectApi
- Throws:
RestApiException
-
commit
Description copied from interface:ProjectApi
Lookup a commit by itsObjectId
string.- Specified by:
commit
in interfaceProjectApi
- Parameters:
commit
- theObjectId
string.- Returns:
- API for accessing the commit.
- Throws:
RestApiException
-
dashboard
Description copied from interface:ProjectApi
Lookup a dashboard by its name.- Specified by:
dashboard
in interfaceProjectApi
- Parameters:
name
- the name.- Returns:
- API for accessing the dashboard.
- Throws:
RestApiException
-
defaultDashboard
Description copied from interface:ProjectApi
Get the project's default dashboard.- Specified by:
defaultDashboard
in interfaceProjectApi
- Returns:
- API for accessing the dashboard.
- Throws:
RestApiException
-
dashboards
- Specified by:
dashboards
in interfaceProjectApi
- Throws:
RestApiException
-
defaultDashboard
Description copied from interface:ProjectApi
Set the project's default dashboard.- Specified by:
defaultDashboard
in interfaceProjectApi
- Parameters:
name
- the dashboard to set as default.- Throws:
RestApiException
-
removeDefaultDashboard
Description copied from interface:ProjectApi
Remove the project's default dashboard.- Specified by:
removeDefaultDashboard
in interfaceProjectApi
- Throws:
RestApiException
-
head
Description copied from interface:ProjectApi
Get the name of the branch to whichHEAD
points.- Specified by:
head
in interfaceProjectApi
- Throws:
RestApiException
-
head
Description copied from interface:ProjectApi
Set the project'sHEAD
.- Specified by:
head
in interfaceProjectApi
- Parameters:
head
- the HEAD- Throws:
RestApiException
-
parent
Description copied from interface:ProjectApi
Get the name of the project's parent.- Specified by:
parent
in interfaceProjectApi
- Throws:
RestApiException
-
parent
Description copied from interface:ProjectApi
Set the project's parent.- Specified by:
parent
in interfaceProjectApi
- Parameters:
parent
- the parent- Throws:
RestApiException
-
index
Description copied from interface:ProjectApi
Reindex the project and children in caseindexChildren
is specified.- Specified by:
index
in interfaceProjectApi
- Parameters:
indexChildren
- decides if children should be indexed recursively- Throws:
RestApiException
-
indexChanges
Description copied from interface:ProjectApi
Reindexes all changes of the project.- Specified by:
indexChanges
in interfaceProjectApi
- Throws:
RestApiException
-
labels
- Specified by:
labels
in interfaceProjectApi
- Throws:
RestApiException
-
submitRequirements
- Specified by:
submitRequirements
in interfaceProjectApi
- Throws:
RestApiException
-
label
- Specified by:
label
in interfaceProjectApi
- Throws:
RestApiException
-
submitRequirement
- Specified by:
submitRequirement
in interfaceProjectApi
- Throws:
RestApiException
-
labels
Description copied from interface:ProjectApi
Adds, updates and deletes label definitions in a batch.- Specified by:
labels
in interfaceProjectApi
- Parameters:
input
- input that describes additions, updates and deletions of label definitions- Throws:
RestApiException
-