Class ProjectApi.NotImplemented
- java.lang.Object
-
- com.google.gerrit.extensions.api.projects.ProjectApi.NotImplemented
-
- All Implemented Interfaces:
ProjectApi
- Enclosing interface:
- ProjectApi
public static class ProjectApi.NotImplemented extends Object implements 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.ListRefsRequest<T extends RefInfo>, ProjectApi.NotImplemented
-
-
Constructor Summary
Constructors Constructor Description NotImplemented()
-
Method Summary
-
-
-
Method Detail
-
create
public ProjectApi create() throws RestApiException
- Specified by:
create
in interfaceProjectApi
- Throws:
RestApiException
-
create
public ProjectApi create(ProjectInput in) throws RestApiException
- Specified by:
create
in interfaceProjectApi
- Throws:
RestApiException
-
get
public ProjectInfo get() throws RestApiException
- Specified by:
get
in interfaceProjectApi
- Throws:
RestApiException
-
description
public String description() throws RestApiException
- Specified by:
description
in interfaceProjectApi
- Throws:
RestApiException
-
access
public ProjectAccessInfo access() throws RestApiException
- Specified by:
access
in interfaceProjectApi
- Throws:
RestApiException
-
access
public ProjectAccessInfo access(ProjectAccessInput p) throws RestApiException
- Specified by:
access
in interfaceProjectApi
- Throws:
RestApiException
-
accessChange
public ChangeInfo accessChange(ProjectAccessInput input) throws RestApiException
- Specified by:
accessChange
in interfaceProjectApi
- Throws:
RestApiException
-
checkAccess
public AccessCheckInfo checkAccess(AccessCheckInput in) throws RestApiException
- Specified by:
checkAccess
in interfaceProjectApi
- Throws:
RestApiException
-
check
public CheckProjectResultInfo check(CheckProjectInput in) throws RestApiException
- Specified by:
check
in interfaceProjectApi
- Throws:
RestApiException
-
config
public ConfigInfo config() throws RestApiException
- Specified by:
config
in interfaceProjectApi
- Throws:
RestApiException
-
config
public ConfigInfo config(ConfigInput in) throws RestApiException
- Specified by:
config
in interfaceProjectApi
- Throws:
RestApiException
-
description
public void description(DescriptionInput in) throws RestApiException
- Specified by:
description
in interfaceProjectApi
- Throws:
RestApiException
-
branches
public ProjectApi.ListRefsRequest<BranchInfo> branches()
- Specified by:
branches
in interfaceProjectApi
-
tags
public ProjectApi.ListRefsRequest<TagInfo> tags()
- Specified by:
tags
in interfaceProjectApi
-
children
public List<ProjectInfo> children() throws RestApiException
- Specified by:
children
in interfaceProjectApi
- Throws:
RestApiException
-
children
public List<ProjectInfo> children(boolean recursive) throws RestApiException
- Specified by:
children
in interfaceProjectApi
- Throws:
RestApiException
-
children
public List<ProjectInfo> children(int limit) throws RestApiException
- Specified by:
children
in interfaceProjectApi
- Throws:
RestApiException
-
child
public ChildProjectApi child(String name) throws RestApiException
- Specified by:
child
in interfaceProjectApi
- Throws:
RestApiException
-
branch
public BranchApi branch(String ref) throws RestApiException
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
public TagApi tag(String ref) throws RestApiException
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
public void deleteBranches(DeleteBranchesInput in) throws RestApiException
- Specified by:
deleteBranches
in interfaceProjectApi
- Throws:
RestApiException
-
deleteTags
public void deleteTags(DeleteTagsInput in) throws RestApiException
- Specified by:
deleteTags
in interfaceProjectApi
- Throws:
RestApiException
-
commit
public CommitApi commit(String commit) throws RestApiException
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
public DashboardApi dashboard(String name) throws RestApiException
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
public DashboardApi defaultDashboard() throws RestApiException
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
public ProjectApi.ListDashboardsRequest dashboards() throws RestApiException
- Specified by:
dashboards
in interfaceProjectApi
- Throws:
RestApiException
-
defaultDashboard
public void defaultDashboard(String name) throws RestApiException
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
public void removeDefaultDashboard() throws RestApiException
Description copied from interface:ProjectApi
Remove the project's default dashboard.- Specified by:
removeDefaultDashboard
in interfaceProjectApi
- Throws:
RestApiException
-
head
public String head() throws RestApiException
Description copied from interface:ProjectApi
Get the name of the branch to whichHEAD
points.- Specified by:
head
in interfaceProjectApi
- Throws:
RestApiException
-
head
public void head(String head) throws RestApiException
Description copied from interface:ProjectApi
Set the project'sHEAD
.- Specified by:
head
in interfaceProjectApi
- Parameters:
head
- the HEAD- Throws:
RestApiException
-
parent
public String parent() throws RestApiException
Description copied from interface:ProjectApi
Get the name of the project's parent.- Specified by:
parent
in interfaceProjectApi
- Throws:
RestApiException
-
parent
public void parent(String parent) throws RestApiException
Description copied from interface:ProjectApi
Set the project's parent.- Specified by:
parent
in interfaceProjectApi
- Parameters:
parent
- the parent- Throws:
RestApiException
-
index
public void index(boolean indexChildren) throws RestApiException
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
-
-